/* ============ Hireriv design tokens ============ */
:root {
  /* Hireriv by Raigozen: blue and white. #123B70 primary blue, #2878D4 action
     blue, #F3F6FA light background. Text and buttons use #1F6BC2, a touch
     darker than the action blue, so white-on-blue and blue-on-white text
     passes WCAG AA contrast (5.3:1; #2878D4 alone is 4.4:1). */
  --navy: #123B70;
  --navy-2: #1A4A87;
  --ink: #102A4C;
  --text: #45556E;
  --muted: #5E6D85; /* 4.8:1 on the light panels, 5.3:1 on white (WCAG AA) */
  --line: #E1E7EF;
  --bg: #ffffff;
  --tint: #F3F6FA;
  --brand: #123B70;
  --action: #2878D4;
  --primary: #1F6BC2;
  --primary-600: #185AA6;
  --primary-50: #EAF2FC;
  --glow: #7DB4F0;
  --blue: #2878D4;
  --sky-50: #EAF2FC;
  --violet: #4F8FDF;
  --violet-50: #EEF3FB;
  --accent: #1F6BC2;
  --accent-600: #185AA6;
  --coral-50: #EEF4FB;
  --sun: #ffb21e;
  --sun-50: #F3F6FA;
  --pink: #5B9BE3;
  --pink-50: #EEF4FB;
  --ok: #16a34a;
  --err: #dc2626;
  --grad: linear-gradient(120deg, #123B70 0%, #2878D4 100%);
  --grad-warm: linear-gradient(120deg, #1F6BC2, #5B9BE3);
  --grad-sun: linear-gradient(120deg, #2878D4, #7DB4F0);
  /* Soft blue wash: heroes and sign-in pages. */
  --mesh:
    radial-gradient(620px 440px at 6% 8%, rgba(125, 180, 240, .22), transparent 60%),
    radial-gradient(560px 420px at 94% 4%, rgba(40, 120, 212, .12), transparent 60%),
    #F7F9FC;
  --font-display: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px -16px rgba(16, 42, 76, .2);
  --shadow-lg: 0 18px 40px -22px rgba(16, 42, 76, .26);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Nothing (a slide-in animation, a decoration) may widen the page on a phone. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; margin: 0 0 .6em; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
::selection { background: rgba(79, 143, 223, .2); }
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.upper { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.center { text-align: center; justify-content: center; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 800px; }
.section { position: relative; padding: 104px 0; }
.section-tint { background: var(--tint); }
@media (max-width: 720px) { .section { padding: 64px 0; } }

/* ============ Decorations (purely visual, aria-hidden) ============ */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.deco-dots { width: 132px; height: 132px; background: radial-gradient(var(--violet) 1.6px, transparent 2px) 0 0 / 16px 16px; opacity: .35; }
.deco-dots.teal { background-image: radial-gradient(var(--primary) 1.6px, transparent 2px); }
.deco-ring { width: 96px; height: 96px; border-radius: 50%; border: 3px dashed var(--accent); opacity: .45; animation: spin 26s linear infinite; }
.deco-squiggle {
  width: 150px; height: 34px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 34'%3E%3Cpath d='M3 17c12-18 24-18 36 0s24 18 36 0 24-18 36 0 24 18 36 0' fill='none' stroke='%2345d6cf' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.deco-spark {
  width: 34px; height: 34px; animation: twinkle 3.2s ease-in-out infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12z' fill='%23ffb21e'/%3E%3C/svg%3E") center / contain no-repeat;
}
.deco-spark.violet { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12z' fill='%237c5cff'/%3E%3C/svg%3E"); animation-delay: 1.4s; }
.deco-blob { border-radius: 50%; filter: blur(50px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .5; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shimmer { to { background-position: 200% center; } }

/* ============ Buttons ============ */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .82em 1.45em; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .18s, background .2s, box-shadow .2s, color .2s, border-color .2s, filter .2s;
  white-space: nowrap;
}
.btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { transition: transform .2s; }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 26px -12px rgba(40, 120, 212, .75); }
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 16px 32px -12px rgba(40, 120, 212, .65); }
.btn-accent { background: var(--grad-warm); color: #fff; box-shadow: 0 12px 26px -12px rgba(40, 120, 212, .75); }
.btn-accent:hover { color: #fff; filter: brightness(1.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .45); }
.btn-light:hover { color: var(--primary); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .15); border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Eyebrows: colourful pills with a dot. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em; width: fit-content; font-size: .76rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--violet); background: var(--violet-50);
  padding: .45em 1em; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.eyebrow:has(.i)::before { display: none; }
.section-tint .eyebrow, .section-dark .eyebrow { color: var(--primary-600); background: var(--primary-50); }
.cta-band .eyebrow { color: #fff; background: rgba(255, 255, 255, .18); }
.center > .eyebrow, .section-head:not(.left):not(.row) > .eyebrow { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 640px; }
.lead-sm { font-size: 1.05rem; }
.grad { background: linear-gradient(100deg, #123B70, #2878D4, #4F8FDF, #5B9BE3, #123B70); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
.underline-swoosh { position: relative; white-space: nowrap; }
.underline-swoosh::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .3em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 9c50-8 140-9 196-3' fill='none' stroke='%23ffb21e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .94); border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(16, 42, 76, .5); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--ink); letter-spacing: -0.035em; }
.logo img { transition: transform .35s; }
.logo:hover img { transform: rotate(-10deg) scale(1.06); }
.logo b { color: var(--primary); }
.logo:hover { color: var(--ink); }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light b { color: var(--glow); }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a:not(.btn) { position: relative; color: var(--ink); font-weight: 600; font-size: .94rem; padding: .5em .85em; border-radius: 999px; transition: color .2s; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--grad-warm); transform: scaleX(0); transition: transform .25s; }
.main-nav a:not(.btn):hover { color: var(--primary); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--primary-600); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.site-header .logo { flex-shrink: 0; }
.nav-toggle .i { width: 28px; height: 28px; }
@media (min-width: 961px) {
  .main-nav a:not(.btn), .nav-login summary { white-space: nowrap; }
  .main-nav { flex: 1; justify-content: flex-end; }
}
@media (min-width: 961px) and (max-width: 1440px) {
  .main-nav a:not(.btn) { padding: .5em .35em; font-size: .82rem; }
  .nav-login summary { padding: .5em .45em; font-size: .82rem; }
  .nav-cta { margin-left: 4px; }
  .logo { gap: 7px; font-size: 1.4rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { padding: .85em 1em; border-radius: var(--radius-sm); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a.active { background: var(--primary-50); }
  .nav-cta { margin: 8px 0 0; }
}

/* ============ Hero ============ */
.hero, .page-hero, .auth-section { position: relative; isolation: isolate; overflow: hidden; background: var(--mesh); }
.hero { padding: clamp(58px, 6vw, 82px) 0 132px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before, .hero-bg::after, .page-hero::before, .auth-section::before {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .5; animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::before { width: 380px; height: 380px; left: 30%; top: -120px; background: #b9f3ec; }
.hero-bg::after { width: 320px; height: 320px; right: 4%; bottom: -60px; background: #ffd6c9; animation-duration: 22s; }
.page-hero::before, .auth-section::before { width: 340px; height: 340px; right: 8%; top: -140px; background: #D6E6F8; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.hero h1 { max-width: 12.5em; font-size: clamp(2.6rem, 4.8vw, 4.1rem); line-height: 1.06; letter-spacing: -.045em; }
.hero .lead { max-width: 590px; line-height: 1.75; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-search {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 7px 7px 22px; box-shadow: var(--shadow-lg); max-width: 680px;
}
.hero-search .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: .6em 0; background: transparent; color: var(--ink); }
.hero-search select { flex: 0 1 140px; min-width: 0; border: 0; border-left: 1px solid var(--line); outline: 0; font: inherit; padding: .6em .4em .6em .8em; background: transparent; color: var(--ink); cursor: pointer; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); }
.hero-popular a { color: var(--ink); font-weight: 600; padding: .25em .85em; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); transition: border-color .2s, color .2s, transform .2s; }
.hero-popular a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.trust-avatars { display: flex; }
.trust-avatars img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; box-shadow: 0 6px 14px -6px rgba(16, 42, 76, .4); }
.trust-avatars img + img { margin-left: -14px; }
.trust p { margin: 0; font-size: .9rem; line-height: 1.4; }
.trust b { display: block; color: var(--ink); font-size: 1rem; }
.trust .stars { font-size: .85rem; }

/* Photo compositions: arch-topped photo, gradient backdrop, floating cards. */
.hero-visual, .hero-media { position: relative; }
.hero-visual { width: 100%; max-width: 560px; justify-self: end; padding: 26px 32px 38px; }
.photo-arch { position: relative; z-index: 1; margin: 0; border-radius: 48% 48% 30px 30px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 10.4; background: var(--primary-50); }
.photo-arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.photo-arch:hover img { transform: scale(1.05); }
.photo-round { border-radius: 36px; aspect-ratio: 9 / 10; }
.hero-visual::before, .hero-media::before {
  content: ""; position: absolute; z-index: 0; inset: 8% 2% 2% 12%; border-radius: 48% 48% 34px 34px;
  background: var(--grad); transform: rotate(6deg); opacity: .9;
}
.hero-media::before { inset: 6% -14px -14px 10%; border-radius: 40px; background: linear-gradient(135deg, var(--sun), var(--accent) 60%, var(--pink)); transform: rotate(4deg); opacity: .85; }
.hero-visual .deco-dots { left: -6px; top: 0; }
.hero-visual .deco-ring { right: -10px; top: 46%; }
.hero-visual .deco-spark { left: 8px; bottom: 30%; z-index: 2; }
.hero-visual .deco-spark.violet { right: 30px; top: 10px; }
.float-card { position: absolute; z-index: 3; color: var(--text); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(16, 42, 76, .45); padding: 16px 18px; }
.fc-main { left: -6%; bottom: 14%; width: min(330px, 78%); padding: 18px 20px; animation: float 6s ease-in-out infinite; }
.fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fc-head b, .fc-small b { display: block; color: var(--ink); font-size: .95rem; }
.fc-head div > span, .fc-small div > span { display: block; }
.fc-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .9rem;
}
.match { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.match b { color: var(--primary); }
.bar { height: 8px; background: #eef1f6; border-radius: 99px; overflow: hidden; margin-bottom: 14px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.fc-small { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; font-size: .88rem; }
.fc-small .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--sky-50); color: var(--blue); }
.fc-small .i.ok { background: #dcfce7; color: var(--ok); }
.fc-small .i.sun { background: var(--sun-50); color: #d98a00; }
.fc-a { top: 8%; right: -4%; animation: float 7s ease-in-out infinite reverse; }
.fc-b { bottom: -2%; right: 6%; animation: float 8s ease-in-out infinite; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; width: 100%; margin: 0 auto; padding: 20px 26px 40px; }
}
@media (max-width: 520px) {
  .hero-search { border-radius: var(--radius); flex-wrap: wrap; padding: 10px 14px; }
  .hero-search .btn { width: 100%; }
  .hero-search select { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .fc-main { left: -4%; }
  .fc-a { right: -6%; }
}

/* ============ Stats: a floating white card over the section above ============ */
.stats { position: relative; z-index: 2; margin-top: -76px; padding: 0 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: center;
  background: #fff; border-radius: 28px; padding: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  width: calc(100% - 32px); max-width: calc(var(--container) - 48px);
}
.stat { border-radius: 20px; padding: 24px 12px; background: var(--primary-50); }
.stat:nth-child(2) { background: var(--violet-50); }
.stat:nth-child(3) { background: var(--coral-50); }
.stat:nth-child(4) { background: var(--sun-50); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--primary-600); }
.stat:nth-child(2) b { color: var(--violet); }
.stat:nth-child(3) b { color: var(--accent-600); }
.stat:nth-child(4) b { color: #c47a00; }
.stat > span { color: var(--text); font-size: .92rem; font-weight: 600; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 10px; } }
.section + .stats { margin-top: -40px; }

/* ============ Role marquee ============ */
.marquee-band { padding: 44px 0 20px; overflow: hidden; }
.marquee { display: flex; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: 12px; padding-right: 12px; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .55em; white-space: nowrap; padding: .6em 1.15em; border-radius: 999px; background: var(--primary-50); color: var(--ink); font-weight: 600; font-size: .92rem; }
.marquee-item:nth-child(5n+2) { background: var(--violet-50); }
.marquee-item:nth-child(5n+3) { background: var(--coral-50); }
.marquee-item:nth-child(5n+4) { background: var(--sun-50); }
.marquee-item:nth-child(5n+5) { background: var(--sky-50); }
.marquee-item .i { color: var(--primary); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ============ Section heads ============ */
.section-head { position: relative; z-index: 1; text-align: center; max-width: 740px; margin: 0 auto 54px; }
.section-head p { font-size: 1.06rem; }
.section-head.left { text-align: left; margin: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; text-align: left; max-width: none; margin-bottom: 36px; }
.section-head.row h2 { margin: 0; }

/* ============ Cards ============ */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.path-card { position: relative; overflow: hidden; border-radius: 30px; padding: 0 0 40px; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.path-card > :not(.path-photo) { margin-left: 40px; margin-right: 40px; }
.path-photo { position: relative; height: 230px; overflow: hidden; margin: 0 0 -30px; }
.path-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.path-card:hover .path-photo img { transform: scale(1.06); }
.path-employer { background: linear-gradient(180deg, #fff, var(--primary-50)); }
.path-candidate { background: linear-gradient(180deg, #fff, var(--coral-50)); }
.path-icon {
  position: relative; z-index: 1; display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: var(--grad);
  box-shadow: 0 14px 28px -10px rgba(40, 120, 212, .65); color: #fff; margin-bottom: 20px; border: 4px solid #fff;
}
.path-candidate .path-icon { background: var(--grad-warm); box-shadow: 0 14px 28px -10px rgba(40, 120, 212, .6); }
.path-icon .i { width: 26px; height: 26px; }
.path-card h3 { font-size: 1.75rem; }
@media (max-width: 800px) { .paths { grid-template-columns: 1fr; } .path-card > :not(.path-photo) { margin-left: 26px; margin-right: 26px; } .path-photo { height: 190px; } }

.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .18em; width: 23px; height: 23px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.path-candidate .checks li::before { background-color: var(--accent); }

.services-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  --c: var(--primary); --c50: var(--primary-50);
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card:nth-child(6n+2) { --c: var(--violet); --c50: var(--violet-50); }
.service-card:nth-child(6n+3) { --c: var(--accent); --c50: var(--coral-50); }
.service-card:nth-child(6n+4) { --c: var(--blue); --c50: var(--sky-50); }
.service-card:nth-child(6n+5) { --c: #e09a00; --c50: var(--sun-50); }
.service-card:nth-child(6n+6) { --c: var(--pink); --c50: var(--pink-50); }
.service-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: var(--c50); transition: transform .5s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.service-card:hover::before { transform: scale(2.6); }
.service-card > * { position: relative; }
.service-card p { margin: 0; }
.service-icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; flex-shrink: 0;
  background: var(--c50, var(--primary-50)); color: var(--c, var(--primary)); margin-bottom: 20px;
  transition: background .3s, color .3s, transform .3s;
}
.service-card:hover .service-icon { background: var(--c); color: #fff; transform: rotate(-8deg) scale(1.06); }
.service-icon .i { width: 25px; height: 25px; }
.service-link .card-link { color: var(--c); }
/* Cards with a photo across the top. */
.card-photo { height: 180px; margin: -30px -30px 0; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.service-card:hover .card-photo img { transform: scale(1.07); }
.card-photo + .service-icon { margin-top: -27px; border: 4px solid #fff; box-shadow: var(--shadow); background: #fff; }
.service-card:has(.card-photo)::before { display: none; }
@media (max-width: 960px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ============ Tabs (industries) ============ */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab {
  display: inline-flex; align-items: center; gap: .5em; font: inherit; font-weight: 600; font-size: .93rem;
  padding: .72em 1.25em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  text-transform: capitalize; transition: border-color .2s, color .2s, background .2s, box-shadow .2s, transform .2s;
}
.tab .i { color: var(--primary); }
.tab:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.tab.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 12px 24px -12px rgba(40, 120, 212, .7); }
.tab.active .i { color: #fff; }
.tab .count { background: rgba(127, 127, 127, .2); border-radius: 99px; padding: 0 .55em; font-size: .8rem; }
.tab-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.3fr; gap: 44px; align-items: center; padding: 44px;
  border-radius: 30px; background: linear-gradient(135deg, var(--primary-50), var(--violet-50) 60%, var(--coral-50)); animation: fade .4s ease;
}
.tab-panel::after { content: ""; position: absolute; right: 24px; top: 24px; width: 90px; height: 90px; background: radial-gradient(var(--violet) 1.6px, transparent 2px) 0 0 / 15px 15px; opacity: .3; pointer-events: none; }
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: 1.9rem; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 800px) { .tab-panel { grid-template-columns: 1fr; padding: 28px; gap: 20px; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: .3em .85em; border-radius: 999px; background: var(--tint); color: var(--ink);
  font-size: .8rem; font-weight: 600; border: 1px solid var(--line);
}
.chips-lg .chip { font-size: .92rem; padding: .5em 1.05em; background: #fff; box-shadow: 0 4px 10px -8px rgba(16, 42, 76, .4); }
.tag { display: inline-block; padding: .28em .8em; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag-remote { background: #e7efff; color: #2352c7; }
.tag-hybrid { background: #fff1e6; color: #b85410; }
.tag-on-site { background: var(--primary-50); color: var(--primary-600); }
.tag-field-work { background: #dcfce7; color: #15803d; }
.tag-client-site { background: #f3e8ff; color: #7e22ce; }

/* ============ Process (light, colourful numbered steps) ============ */
.section-dark { background: linear-gradient(180deg, var(--violet-50), #f3f8ff 60%, #fff); }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(79, 143, 223, .12) 1.2px, transparent 1.6px) 0 0 / 24px 24px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.section-dark .container { position: relative; }
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process-4 { grid-template-columns: repeat(4, 1fr); }
.process-step {
  --c: var(--primary);
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: 0 10px 30px -22px rgba(16, 42, 76, .45); transition: transform .3s, box-shadow .3s;
}
.process-step:nth-child(6n+2) { --c: var(--violet); }
.process-step:nth-child(6n+3) { --c: var(--accent); }
.process-step:nth-child(6n+4) { --c: var(--blue); }
.process-step:nth-child(6n+5) { --c: #e09a00; }
.process-step:nth-child(6n+6) { --c: var(--pink); }
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.process-step p { margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; background: var(--c);
  box-shadow: 0 12px 22px -10px var(--c); transition: transform .3s;
}
.process-step:hover .step-num { transform: rotate(-8deg) scale(1.08); }
@media (max-width: 960px) { .process, .process-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process, .process-4 { grid-template-columns: 1fr; } }

/* ============ Why us ============ */
.why-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 30px; }
.why-list > div { display: flex; gap: 14px; }
.why-list .i { width: 46px; height: 46px; padding: 11px; border-radius: 15px; background: var(--primary-50); color: var(--primary); }
.why-list > div:nth-child(2) .i { background: var(--violet-50); color: var(--violet); }
.why-list > div:nth-child(3) .i { background: var(--coral-50); color: var(--accent); }
.why-list > div:nth-child(4) .i { background: var(--sun-50); color: #d98a00; }
.why-list b { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); display: block; margin-bottom: 4px; }
.why-list p { margin: 0; font-size: .93rem; }
.why-collage { position: relative; padding: 0 0 60px 40px; }
.why-collage .photo-round { box-shadow: var(--shadow-lg); }
.why-small { position: absolute; z-index: 2; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; margin: 0; border-radius: 28px; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.why-small img { width: 100%; height: 100%; object-fit: cover; }
.why-collage .deco-dots { right: -20px; bottom: 10px; }
.why-collage .deco-squiggle { right: 10px; top: -24px; }
.quote-card { position: absolute; z-index: 3; right: -10px; bottom: 40px; width: min(300px, 70%); margin: 0; background: var(--grad); color: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 26px 50px -20px rgba(40, 120, 212, .7); animation: float 7s ease-in-out infinite; }
.quote-mark { width: 30px; height: 30px; opacity: .5; margin-bottom: 8px; }
.quote-card blockquote { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.quote-card figcaption { font-weight: 700; font-size: .88rem; opacity: .85; }
.quote-card figcaption::before { content: "— "; }
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; gap: 48px; } .why-collage { max-width: 520px; margin: 0 auto; width: 100%; } }
@media (max-width: 600px) { .why-list { grid-template-columns: 1fr; } .why-collage { padding-left: 16px; } .quote-card { right: 0; } }

/* ============ Jobs ============ */
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .jobs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .jobs-grid { grid-template-columns: 1fr; } }
/* Phones: compact cards, so two or three jobs fit on a screen; pay stands out. */
@media (max-width: 640px) {
  .jobs-grid { gap: 14px; }
  .job-card { padding: 16px; }
  .job-card:hover { transform: none; }
  .job-card-top { margin-bottom: 8px; }
  .job-logo { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
  .job-card .job-meta { margin: 10px 0; gap: 6px 14px; }
  .job-card .chips { display: none; }
  .job-card .card-link { padding-top: 8px; }
}
.job-meta .job-pay { font-weight: 700; color: var(--ink); }
.landing-more { margin-top: 10px; }
.landing-more > summary { cursor: pointer; font-weight: 700; color: var(--primary); padding: 10px 0; min-height: 44px; }
.job-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.job-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(40, 120, 212, .35); }
.job-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.job-logo {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--grad);
  transition: transform .3s;
}
.job-card:hover .job-logo { transform: rotate(-8deg); }
.job-card:nth-child(4n+2) .job-logo { background: var(--grad-warm); }
.job-card:nth-child(4n+3) .job-logo { background: linear-gradient(135deg, var(--violet), #b18cff); }
.job-card:nth-child(4n+4) .job-logo { background: var(--grad-sun); }
.job-card h3 { margin-bottom: 4px; }
.job-card h3 a { color: var(--ink); }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-card h3 a:hover { color: var(--primary); }
.job-card .save-btn, .job-card .card-link { position: relative; z-index: 1; }
.job-card .tag { margin: 4px 0 0; align-self: flex-start; }
.perk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.perk-tags .tag { margin: 0; }
.tag-perk { background: #e8f6ee; color: #146c43; }
.tag-item { background: #fff4e0; color: #8a4b00; }
.perk-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.perk-list li { display: inline-flex; align-items: center; gap: 4px; }
.perk-list .i { color: #146c43; width: 16px; height: 16px; }
.filter-perks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 1 / -1; }
.filter-perks legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 4px; }
.job-meta { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; }
.job-meta li { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .i { color: var(--primary); }
.job-meta-lg { font-size: 1rem; gap: 12px 28px; margin-top: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-top: auto; padding-top: 18px; }
.card-link .i { transition: transform .2s; }
.card-link:hover .i, .service-link:hover .card-link .i { transform: translateX(4px); }

/* ============ Inner-page heroes ============ */
.page-hero { padding: 80px 0 88px; }
.page-hero-sm { padding: 56px 0 56px; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.page-hero .container:not(.center) .lead { margin-left: 0; }
.page-hero .deco-dots { right: 4%; bottom: 18px; }
.page-hero .deco-spark { left: 6%; top: 34%; }
.page-hero .deco-squiggle { right: 12%; top: 26px; }
.page-hero .vm-card { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 18px; color: var(--muted); }
.back-link:hover { color: var(--primary); }
.page-hero .back-link + .eyebrow, .page-hero .back-link + .chip { display: flex; width: fit-content; margin-top: 4px; }
.page-hero .form-card { position: relative; box-shadow: var(--shadow-lg); }
.page-hero .split { align-items: center; }
/* Photo with a floating card, on the right of a split page hero. */
.hero-media { padding: 10px 16px 30px 26px; }
.hero-media .photo-arch { aspect-ratio: 9 / 9.5; }
.hero-media .float-card { left: -4%; bottom: 0; max-width: 78%; animation: float 7s ease-in-out infinite; }
.hero-media .float-card .checks { margin: 8px 0 0; gap: 6px; font-size: .9rem; }
.hero-media .float-card h2 { font-size: 1.05rem; margin: 0; }
.hero-media .float-card .chips { margin-top: 10px; }
.hero-media .deco-ring { right: -14px; top: -10px; z-index: 2; }
.hero-media .deco-spark { right: 12%; bottom: 8%; left: auto; top: auto; z-index: 4; }
.job-filters {
  position: relative; z-index: 1; display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; margin-top: 32px; background: #fff;
  padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.filter-search { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.filter-search .i { color: var(--muted); }
.job-filters input, .job-filters select { border: 0; font: inherit; color: var(--ink); background: transparent; padding: .7em .5em; outline: 0; width: 100%; min-width: 0; }
.job-filters select { border-left: 1px solid var(--line); cursor: pointer; }
@media (max-width: 900px) {
  .job-filters { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .job-filters select { border: 1px solid var(--line); border-radius: var(--radius-sm); }
}
/* Phones: the job search sits near the top and the first jobs show on the first screen. */
@media (max-width: 640px) {
  .page-hero.page-hero-search { padding: 18px 0 22px; }
  .page-hero-search .eyebrow, .page-hero-search .lead, .page-hero-search > .deco, .page-hero-search .filter-hint { display: none; }
  .page-hero-search h1 { font-size: 1.6rem; margin-bottom: .5em; }
  .section-results { padding-top: 20px; }
}
@media (max-width: 720px) { .page-hero { padding: 56px 0 60px; } .page-hero-sm { padding: 40px 0; } .hero-media { max-width: 440px; margin: 0 auto; width: 100%; } }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.results-head p { margin: 0; }
.empty { text-align: center; padding: 52px 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--tint)); }
.job-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.job-title-row h1 { margin: 14px 0 4px; font-size: clamp(1.9rem, 4.2vw, 3rem); }
.job-title-row .lead { margin: 0; }
.job-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 52px; align-items: start; }
.job-body h2 { font-size: 1.45rem; margin-top: 1.6em; }
.job-body h2:first-child { margin-top: 0; }
.sticky { position: sticky; top: 100px; }
@media (max-width: 960px) { .job-layout { grid-template-columns: 1fr; } .sticky { position: static; } }

/* ============ Forms ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.form-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); color: var(--text); }
.form-card h2 { font-size: 1.55rem; }
@media (max-width: 520px) { .form-card { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fafbfd; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: .8em .95em; width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:hover, .form select:hover, .form textarea:hover { border-color: #cfd5e1; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.form input[type=file] { padding: .6em; background: var(--primary-50); border-style: dashed; border-color: rgba(40, 120, 212, .4); cursor: pointer; }
.form-note { margin: 12px 0 0; text-align: center; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.mini-stats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 8px 20px -16px rgba(16, 42, 76, .4); }
.mini-stats b { display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--primary); }
.mini-stats div:nth-child(2) b { color: var(--violet); }
.mini-stats div:nth-child(3) b { color: var(--accent); }
.mini-stats span { font-size: .82rem; }
@media (max-width: 460px) { .mini-stats { grid-template-columns: 1fr; } }

/* ============ Testimonials / FAQ / Blog ============ */
.section-testimonials { background: linear-gradient(180deg, #fff, var(--coral-50) 50%, #fff); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { position: relative; overflow: hidden; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 28px; display: flex; flex-direction: column; box-shadow: 0 10px 30px -22px rgba(16, 42, 76, .45); transition: box-shadow .3s, transform .3s; }
.testimonial::before { content: "\201C"; position: absolute; right: 18px; top: -24px; font-family: Georgia, serif; font-size: 9rem; line-height: 1; color: var(--violet-50); pointer-events: none; }
.testimonial:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.testimonial blockquote { position: relative; margin: 14px 0 22px; color: var(--ink); font-size: 1.05rem; line-height: 1.6; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line); }
.testimonial figcaption div > b, .testimonial figcaption div > span { display: block; }
.testimonial:nth-child(3n+2) .avatar { background: var(--grad-warm); }
.testimonial:nth-child(3n+3) .avatar { background: var(--grad-sun); }
.stars { position: relative; color: var(--sun); letter-spacing: 3px; font-size: 1.1rem; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } }
.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: #cfd5e1; }
.faq-item[open] { border-color: rgba(79, 143, 223, .35); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .i { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--violet-50); color: var(--violet); transition: transform .3s, background .3s, color .3s; }
.faq-item[open] summary .i { transform: rotate(135deg); background: var(--violet); color: #fff; }
.faq-item p { padding: 0 22px 20px; margin: 0; }
.faq-photo { margin-top: 28px; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.faq-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .faq-photo { display: none; } }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.post-card h3 { color: var(--ink); margin-top: 6px; transition: color .2s; }
.post-card:hover h3 { color: var(--primary); }
.post-thumb { position: relative; overflow: hidden; height: 196px; display: flex; align-items: flex-end; padding: 16px; background: var(--grad); background-size: cover; background-position: center; }
.post-thumb::before { content: ""; position: absolute; inset: 0; background: inherit; background-size: cover; transition: transform .9s ease; }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(16, 42, 76, .45)); }
.post-card:hover .post-thumb::before { transform: scale(1.08); }
.thumb-hiring { background-image: url(/img/photos/blog-hiring.webp); }
.thumb-careers { background-image: url(/img/photos/blog-careers.webp); }
.thumb-employers { background-image: url(/img/photos/blog-employers.webp); }
.post-thumb span { position: relative; z-index: 1; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; padding: .35em .9em; border-radius: 999px; }
.post-body { padding: 24px; }
.post-body p { margin: 0; font-size: .95rem; }
.prose p { font-size: 1.1rem; line-height: 1.8; color: var(--ink); }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { font-size: 1.05rem; line-height: 1.75; color: var(--ink); margin-bottom: .5em; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose > p:first-child { font-size: 1.22rem; color: var(--text); }
.prose > p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .85; font-weight: 800; margin: .08em .12em 0 0; color: var(--violet); }

/* ============ About / contact ============ */
.vm-cards { display: grid; gap: 20px; }
.vm-card { position: relative; background: var(--primary-50); border-radius: var(--radius); padding: 30px; }
.vm-card p { margin: 0; }
.vm-cards .vm-card:nth-child(2) { background: var(--violet-50); }
.vm-cards .vm-card:nth-child(2) .service-icon { --c: var(--violet); --c50: #fff; }
.vm-cards .vm-card .service-icon { background: #fff; }
.about-collage { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 460px; }
.about-collage figure { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.about-collage figure:first-child { grid-row: 1 / 3; border-radius: 200px 200px 28px 28px; }
.about-collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.about-collage figure:hover img { transform: scale(1.06); }
.about-collage .deco-ring { left: -24px; bottom: -20px; }
.about-collage .deco-spark { right: -8px; top: -12px; }
@media (max-width: 720px) { .about-collage { height: 340px; } }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-cols > p { margin: 0; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--primary); box-shadow: 0 10px 30px -22px rgba(16, 42, 76, .45); }
.about-cols > p:nth-child(2) { border-top-color: var(--violet); }
.about-cols > p:nth-child(3) { border-top-color: var(--accent); }
@media (max-width: 900px) { .about-cols { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 14px; }
.contact-card { --c: var(--primary); --c50: var(--primary-50); display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.contact-card:nth-child(2) { --c: var(--violet); --c50: var(--violet-50); }
.contact-card:nth-child(3) { --c: #16a34a; --c50: #dcfce7; }
.contact-card:nth-child(4) { --c: var(--accent); --c50: var(--coral-50); }
a.contact-card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); box-shadow: var(--shadow); transform: translateX(6px); color: var(--text); }
a.contact-card:hover .service-icon { background: var(--c); color: #fff; }
.contact-card .service-icon { margin: 0; }
.contact-card b, .contact-card span { display: block; }
.contact-card b { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; }

/* ============ CTA / newsletter / footer ============ */
.cta-band { padding: 88px 0; }
.cta-band .cta-inner {
  position: relative; isolation: isolate; overflow: hidden; width: calc(100% - 32px); max-width: calc(var(--container) - 48px);
  padding: 60px clamp(26px, 5vw, 64px); border-radius: 34px; color: #eaf2ff; box-shadow: 0 40px 80px -36px rgba(40, 120, 212, .7);
  background:
    radial-gradient(400px 300px at 90% 120%, rgba(255, 178, 30, .55), transparent 70%),
    radial-gradient(420px 320px at 0% -20%, rgba(125, 180, 240, .55), transparent 70%),
    linear-gradient(120deg, #123B70, #2878D4 55%, #4F8FDF);
}
.cta-band .cta-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .16) 1.2px, transparent 1.6px) 0 0 / 22px 22px; }
.cta-band .cta-inner::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -70px; top: -110px; border-radius: 50%; border: 44px solid rgba(255, 255, 255, .1); animation: spin 30s linear infinite; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .cta-band { padding: 56px 0; } .cta-band .cta-inner { border-radius: 26px; padding: 40px 24px; } }

.newsletter { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--primary-50), var(--violet-50) 55%, var(--coral-50)); padding: 56px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { font-size: 1.7rem; margin-bottom: 4px; }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); flex: 0 1 470px; box-shadow: var(--shadow); }
.newsletter-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 0 18px; background: transparent; }
@media (max-width: 520px) {
  .newsletter-form { flex-direction: column; border-radius: var(--radius); flex-basis: 100%; }
  .newsletter-form input { padding: 12px 14px; }
}

.site-footer { position: relative; background: var(--navy); color: #a3b2cc; padding: 76px 0 0; font-size: .95rem; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--blue), var(--violet), var(--pink), var(--sun)); }
.site-footer::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(rgba(79, 143, 223, .35), transparent 70%); pointer-events: none; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4, .site-footer .footer-h { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a:not(.logo) { color: #a3b2cc; display: block; margin-bottom: 10px; transition: color .2s, transform .2s; }
.site-footer a:not(.logo):not(.social a):hover { color: #fff; transform: translateX(3px); }
.footer-brand p { margin: 16px 0 20px; max-width: 300px; }
.social { display: flex; gap: 10px; }
.social a { display: grid !important; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); margin: 0 !important; transition: background .2s, transform .2s; }
.social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.contact-line .i { margin-top: .25em; color: var(--glow); }
.contact-line a { display: inline !important; margin: 0 !important; }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 52px; padding: 22px 16px; font-size: .88rem; }
.footer-bottom a { margin: 0 !important; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 26px -6px rgba(37, 211, 102, .6);
  transition: transform .2s;
}
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float .i { width: 30px; height: 30px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 70; max-width: calc(100% - 32px);
  background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg);
  transition: transform .3s ease, visibility .3s; font-weight: 600; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.error { background: var(--err); }

/* ============ Status / admin ============ */
.status-page { position: relative; padding: 48px 0; }
.status-page::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -40px; width: 560px; height: 560px; max-width: 100vw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(79, 143, 223, .14), rgba(125, 180, 240, .08) 45%, transparent 70%); }
.status-icon { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; margin-bottom: 22px; animation: float 5s ease-in-out infinite; }
.status-icon .i { width: 42px; height: 42px; }
.status-icon.ok { background: #dcfce7; color: var(--ok); box-shadow: 0 0 0 12px rgba(22, 163, 74, .08); }
.status-icon.err { background: #fee2e2; color: var(--err); transform: rotate(45deg); box-shadow: 0 0 0 12px rgba(220, 38, 38, .07); animation: none; }
.status-page .lead { margin: 0 auto; }
.big-404 { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin: 0 0 10px; background: linear-gradient(100deg, #123B70, #2878D4, #4F8FDF, #5B9BE3, #123B70); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
.admin .tabs { justify-content: flex-start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.admin table, .guide-table table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.admin th, .admin td, .guide-table th, .guide-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th, .guide-table th { background: var(--tint); color: var(--ink); white-space: nowrap; }
.guide-table { box-shadow: var(--shadow); border-radius: var(--radius); }
.guide-table th { background: var(--violet-50); }
.guide-table th, .guide-table td { padding: 16px 20px; font-size: .95rem; }
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table tbody tr:hover { background: #fbfaff; }
.guide-table td a { font-weight: 700; }
.admin td { max-width: 320px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-head h1 { margin: 0; }
.admin-actions { display: flex; gap: 10px; }
.notice { background: var(--primary-50); color: var(--primary-600); border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 600; }
.notice-err { background: #fee2e2; color: var(--err); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--err); }
.btn-danger:hover { background: #fee2e2; color: var(--err); }
.row-actions { white-space: nowrap; }
.row-actions form { display: inline; }
.pipeline { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-block; padding: .3em .85em; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--tint); color: var(--ink); border: 1px solid transparent; }
.pipeline .pill.active { border-color: currentColor; }
.pill b { opacity: .7; margin-left: 4px; }
.st-new { background: #e7efff; color: #2352c7; }
.st-screening { background: #fff1e6; color: #b85410; }
.st-interview { background: #f3e8ff; color: #7e22ce; }
.st-offered { background: var(--primary-50); color: var(--primary-600); }
.st-hired { background: #dcfce7; color: #15803d; }
.st-rejected { background: #fee2e2; color: #b91c1c; }
.st-shortlisted { background: #e0f2fe; color: #0369a1; }
.st-on-hold { background: #f1f5f9; color: #475569; }
.st-withdrawn { background: #f1f5f9; color: #64748b; }
.status-form { display: grid; gap: 6px; min-width: 190px; }
.status-form select, .status-form textarea { padding: .45em .6em; font-size: .85rem; }
.status-form .notify { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem; color: var(--muted); font-weight: 500; }
.status-form .notify input { width: auto; margin-top: 2px; }
.admin details summary { cursor: pointer; color: var(--primary); font-weight: 600; margin-top: 4px; }
.admin form.form-card .btn + .btn { margin-left: 8px; }
/* Workspace pages (admin, client portal, My applications) sit on a soft backdrop. */
.section.admin { background: linear-gradient(180deg, #f3f6fc, #fff 420px); padding-top: 56px; }
.admin h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.admin .dash-card, .admin .kpi { box-shadow: 0 6px 18px -14px rgba(16, 42, 76, .35); }

/* ============ Reveal on scroll ============ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-left { transform: translateX(-40px); }
.js .reveal-right { transform: translateX(40px); }
.js .reveal-zoom { transform: scale(.92); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(3n+2) { transition-delay: .1s; }
.js .reveal:nth-child(3n+3) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}

/* ============ Auth pages ============ */
.auth-section { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 72px 0; }
.auth-section::after { content: ""; position: absolute; z-index: -1; left: 6%; bottom: 10%; width: 140px; height: 140px; background: radial-gradient(var(--violet) 1.6px, transparent 2px) 0 0 / 16px 16px; opacity: .3; }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 470px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 2.1rem; }
.auth-links { margin: 16px 0 0; text-align: center; color: var(--muted); }

/* ============ Job alerts ============ */
.section-alert { padding: 0 0 80px; }
.alert-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; padding: 34px 38px; border-radius: 30px; background: linear-gradient(120deg, var(--primary-50), var(--violet-50) 55%, var(--coral-50)); }
.alert-band::after { content: ""; position: absolute; right: -50px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 30px solid rgba(79, 143, 223, .1); pointer-events: none; }
.alert-copy { display: flex; gap: 16px; align-items: flex-start; }
.alert-copy h2 { font-size: 1.55rem; margin-bottom: .3em; }
.alert-copy p { margin: 0; }
.alert-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: var(--grad-warm); color: #fff; box-shadow: 0 12px 24px -10px rgba(40, 120, 212, .7); }
.alert-form { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; }
.alert-form input, .alert-form select { padding: .75em .85em; background: #fff; }
@media (max-width: 620px) { .alert-band { padding: 24px; } .alert-form { grid-template-columns: 1fr; } }

/* ============ Saved jobs ============ */
.save-btn { display: none; }
/* "Not interested" (main.js): only with the script, which does the hiding. */
.hide-btn { display: none; color: var(--muted); }
.js .hide-btn { display: inline-flex; min-height: 44px; align-items: center; }
.contact-actions { margin: 4px 0 8px; }
.ai-panel .row-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
.pill-new { background: #E7F6EC; color: #145C2E; font-weight: 700; }
.new-since { margin: 0 0 8px; color: #145C2E; font-weight: 600; }
.hidden-note { margin: 0 0 12px; }
.js .save-btn { display: inline-flex; }
.save-btn:not(.btn) { align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.save-btn:not(.btn):hover { color: var(--primary); border-color: var(--primary); }
.save-btn .i { width: 18px; height: 18px; fill: none; }
.save-btn.saved { color: var(--accent); border-color: #fed7aa; background: #fff7ed; }
.save-btn.saved .i { fill: currentColor; }
.save-btn-lg { gap: 8px; }
.job-card-side { display: inline-flex; align-items: center; gap: 10px; }
.job-card.is-closed { opacity: .75; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-saved { display: inline-flex; align-items: center; gap: 6px; }
.nav-saved .i { width: 16px; height: 16px; fill: none; }
.saved-count { background: var(--accent); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 0 .5em; line-height: 1.6; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.mobile-saved { display: none; position: relative; margin-left: auto; margin-right: 4px; padding: 8px; color: var(--ink); }
.mobile-saved .i { width: 24px; height: 24px; fill: none; }
.mobile-saved .saved-count { position: absolute; top: 0; right: -2px; }
@media (max-width: 960px) { .mobile-saved { display: inline-flex; } }

/* ============ Admin dashboard ============ */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.kpi:hover { border-color: var(--primary); box-shadow: var(--shadow); color: var(--text); }
.kpi-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.kpi-note { font-size: .8rem; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.dash-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; min-width: 0; }
.setup-todo { margin-bottom: 20px; border-color: #f5c46b; background: #fffbeb; }
.setup-todo ul { margin: 10px 0 0; padding-left: 1.2em; }
.setup-todo li { margin-bottom: 4px; }
.backup-list { margin: 10px 0 0; padding-left: 1.2em; font-size: .92rem; }
.backup-list li { margin-bottom: 4px; }
.dash-wide { grid-column: 1 / -1; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.dash-head h2 { font-size: 1.05rem; margin: 0; }
/* A head with filters and a button: the button wraps under the filters on a phone instead of running off the screen. */
.dash-head-wrap { flex-wrap: wrap; align-items: center; }
/* Tables that become one card per row on phones (the employer's Jobs list), so every action stays on screen. */
@media (max-width: 640px) {
  .table-wrap:has(> .cards-on-phone) { overflow-x: visible; }
  .cards-on-phone thead { display: none; }
  .cards-on-phone, .cards-on-phone tbody, .cards-on-phone tr, .cards-on-phone td { display: block; width: 100%; }
  .cards-on-phone tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .cards-on-phone tr:last-child { border-bottom: 0; }
  .cards-on-phone td { border: 0; padding: 3px 0; }
  .cards-on-phone td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .cards-on-phone td.row-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .cards-on-phone td:first-child { font-weight: 600; }
  .cards-on-phone td:empty, .cards-on-phone td.is-zero { display: none; }
}
.dash-empty { margin: 8px 0; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }

/* Column chart: one series in the brand blue (validated), thin capped bars, 4px rounded data end. */
.colchart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 180px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.colchart-max { position: absolute; top: 0; left: 0; font-size: .72rem; color: var(--muted); }
.colchart-slot { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: 0; }
.colchart-bar { width: 100%; max-width: 24px; background: var(--blue); border-radius: 4px 4px 0 0; }
.colchart-slot:hover .colchart-bar, .colchart-slot:focus-visible .colchart-bar { background: #1f55d6; }
.colchart-val { position: absolute; left: 0; right: 0; text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink); }
.colchart-tip { display: none; position: absolute; bottom: calc(100% - 18px); left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap; background: var(--navy); color: #fff; font-size: .75rem; padding: 6px 10px; border-radius: 8px; pointer-events: none; }
.colchart-slot:hover .colchart-tip, .colchart-slot:focus-visible .colchart-tip { display: block; }
.colchart-axis { display: flex; gap: 2px; margin-top: 6px; }
.colchart-axis span { flex: 1; min-width: 0; display: flex; justify-content: center; overflow: visible; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.table-toggle { margin-top: 12px; font-size: .85rem; }
.table-toggle summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.table-toggle table { margin-top: 8px; }

/* Funnel: horizontal bars, value outside the bar end. */
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; color: var(--ink); font-size: .88rem; font-weight: 600; }
.funnel-row:hover { color: var(--primary); }
.funnel-track { display: grid; grid-template-columns: 1fr 34px; align-items: center; gap: 8px; min-width: 0; }
.funnel-fill { display: block; min-width: 0; }
.funnel-bar { display: block; height: 18px; background: var(--blue); border-radius: 0 4px 4px 0; }
.funnel-val { font-size: .82rem; color: var(--text); }
.top-jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: top; }
.top-jobs li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; font-size: .9rem; }
.top-jobs li a { font-weight: 600; }
.top-jobs li .small { grid-column: 1; }
.top-jobs li b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink); }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li a { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.activity li:last-child a { border-bottom: 0; }
.activity .pill { justify-self: start; }
.activity-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 620px) { .activity li a { grid-template-columns: 1fr; gap: 4px; } }

/* Honeypot: off-screen, not display:none, so naive bots still fill it */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Talent pool & skill match ============ */
.match-chip { display: inline-flex; gap: 4px; margin-top: 6px; padding: .2em .7em; border-radius: 999px; font-size: .76rem; white-space: nowrap; cursor: help; }
.match-high { background: #dcfce7; color: #15803d; }
.match-mid { background: #fef3c7; color: #a16207; }
.match-low { background: #f1f5f9; color: #475569; }
.pipeline-sort { margin-left: auto; font-size: .85rem; color: var(--muted); align-self: center; }
.pipeline-sort a { color: var(--muted); font-weight: 600; }
.pipeline-sort a.active { color: var(--primary); }
.talent-search { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); margin-bottom: 14px; }
.talent-search label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.talent-search input, .talent-search select { padding: .6em .75em; }
.talent-actions { display: flex; align-items: center; gap: 14px; }
.talent-summary { margin: 0 0 12px; }
@media (max-width: 900px) { .talent-search { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .talent-search { grid-template-columns: minmax(0, 1fr); } }

/* ============ Site settings ============ */
.settings-form { display: grid; gap: 18px; max-width: 900px; }
.settings-form .form-card h2 { font-size: 1.15rem; margin-bottom: .2em; }
.settings-form .form-card > p { margin: 0 0 16px; }
.settings-form .form-grid { margin-bottom: 0; }
.stat-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stat-edit { text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 10px; }
.stat-edit legend { font-weight: 700; font-size: .85rem; color: var(--ink); padding: 0 6px; }
.stat-edit label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.settings-actions { position: sticky; bottom: 16px; }
@media (max-width: 620px) { .stat-edit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============ Share a job ============ */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.share-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s; }
.share-btn:hover { border-color: var(--primary); color: var(--primary); }
.share-btn .i { width: 16px; height: 16px; }
.share-btn[hidden] { display: none; }
.share-wa .i { color: #16a34a; }
.share-li .i { color: #0a66c2; }

/* ============ Interviews ============ */
.iv-heading { font-size: 1.1rem; margin: 8px 0 12px; }
.iv-heading + .empty, .iv-heading + .table-wrap { margin-bottom: 28px; }
.iv-next { margin: 8px 0 0; font-size: .8rem; color: #7e22ce; }
.iv-link { display: inline-block; margin-top: 6px; font-weight: 600; }
.iv-cancelled td { color: var(--muted); text-decoration: line-through; }
.iv-cancelled td:last-child { text-decoration: none; }

/* ============ Client portal ============ */
.portal .admin-head { align-items: flex-start; }
.portal .admin-head h1 { margin: 0 0 4px; }
.portal .admin-head p { margin: 0; }
.portal .dash-card .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.activity-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink); }
.activity li:last-child .activity-row { border-bottom: 0; }
.client-add { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
@media (max-width: 900px) { .client-add { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .portal .dash-card .form-grid { grid-template-columns: minmax(0, 1fr); } .activity-row { grid-template-columns: 1fr; gap: 4px; } }
.portal .dash-card + .dash-card { margin-top: 16px; }
.portal .dash-grid .dash-card + .dash-card { margin-top: 0; }
.company-switch { display: flex; gap: 6px; align-items: center; }
.company-switch select { padding: 6px 10px; font-size: .88rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .chip { text-decoration: none; }
.filter-chips .chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filter-bar label { min-width: min(240px, 100%); }
.team-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.team-row details { min-width: 180px; }
.role-notes { margin: 14px 0 0; padding-left: 18px; }
.role-notes li { margin: 2px 0; }
/* ATS board: one column per stage, scrolls sideways on small screens. */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
.kanban-col { background: #f6f8fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; display: flex; flex-direction: column; gap: 8px; }
.kanban-head { font-size: .9rem; margin: 0 0 4px; display: flex; justify-content: space-between; align-items: center; }
.kanban-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.kanban-card p { margin: 4px 0; }
.kanban-move { display: flex; gap: 6px; margin-top: 6px; }
.kanban-move select { flex: 1; min-width: 0; padding: 4px 6px; font-size: .82rem; }
.iv-answer { margin-top: 8px; align-items: flex-start; }

/* ============ Shortlist sharing ============ */
.shortlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.cand-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cand-card.has-feedback { background: var(--tint); }
.cand-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cand-top h3 { margin: 0; font-size: 1.1rem; }
.cand-top p { margin: 2px 0 0; }
.cand-top .match-chip { margin-top: 0; }
.cand-card .job-meta { margin: 10px 0; }
.cand-note { font-size: .9rem; margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--primary); background: var(--primary-50); border-radius: 0 8px 8px 0; }
.cand-resume { font-weight: 600; margin-top: 8px; }
.cand-feedback { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cand-feedback textarea { padding: .55em .7em; font-size: .88rem; }
.cand-feedback .btn { justify-self: start; }
.decision-row { display: flex; flex-wrap: wrap; gap: 8px; }
.decision { position: relative; cursor: pointer; }
.decision input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.decision span { display: inline-block; padding: .4em .9em; border-radius: 999px; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink); background: #fff; }
.decision input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px; }
.decision-interested input:checked + span { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.decision-maybe input:checked + span { background: #fef3c7; border-color: #d97706; color: #a16207; }
.decision-not-a-fit input:checked + span { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.share-status { margin-top: 10px; font-size: .82rem; }
.share-status form { display: inline; }
.fb-interested { background: #dcfce7; color: #15803d; }
.fb-maybe { background: #fef3c7; color: #a16207; }
.fb-not-a-fit { background: #fee2e2; color: #b91c1c; }
.share-client { margin-top: 8px; }
.share-client summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.share-client form { display: grid; gap: 6px; margin-top: 6px; }
.share-client select, .share-client textarea { padding: .45em .6em; font-size: .85rem; }
.share-client .btn { justify-self: start; }

/* ============ Candidate account ============ */
.app-list { margin-bottom: 16px; }
.my-app { padding: 16px 0; border-bottom: 1px solid var(--line); }
.my-app:last-child { border-bottom: 0; padding-bottom: 0; }
.my-app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.my-app-head h3 { margin: 0; font-size: 1.05rem; }
.my-app-head h3 a { color: var(--ink); }
.my-app-head p { margin: 2px 0 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 0; margin: 14px 0 6px; counter-reset: step; }
.steps li { position: relative; padding-top: 12px; font-size: .78rem; color: var(--muted); text-align: center; }
.steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 99px; background: var(--line); }
.steps li.done::before, .steps li.current::before { background: var(--primary); }
.steps li.current { color: var(--ink); font-weight: 700; }
.my-iv { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f3e8ff; color: #581c87; font-size: .88rem; }
.my-iv a { color: #7e22ce; font-weight: 600; }
.withdraw { margin-top: 10px; color: var(--err); }
.delete-data { display: grid; gap: 10px; }
.delete-data label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.delete-data .btn { justify-self: start; }
@media (max-width: 520px) { .steps li span { display: none; } .steps li.current span { display: inline; position: absolute; left: 0; white-space: nowrap; } .steps { margin-bottom: 22px; } }

/* ============ Placements & invoices ============ */
.kpi-money { font-size: 1.45rem; }
.kpi-alert { color: var(--err); font-weight: 700; }
.placement-todo { margin-bottom: 16px; font-weight: 500; }
.placement-form h2 { font-size: 1.1rem; margin: 8px 0 12px; }
.placement-form h2:not(:first-child) { margin-top: 24px; }
.placement-form > label { display: block; margin: 16px 0; }
.placement-form [hidden] { display: none; }
.fee-preview { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--tint); }
.invoice-form { display: grid; gap: 6px; margin-top: 6px; }
.invoice-form .notify { display: flex; gap: 6px; align-items: flex-start; font-size: .78rem; color: var(--muted); font-weight: 500; }
.invoice-form .notify input { width: auto; margin-top: 2px; }
.strike { text-decoration: line-through; }
.prewrap { white-space: pre-line; }

.invoice-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.invoice-tools .back-link { margin: 0; }
.invoice { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); color: var(--ink); overflow: hidden; }
.invoice p { margin: 0 0 12px; }
.invoice-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
.invoice-brand { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.invoice-brand b { color: var(--primary); }
.invoice-meta { text-align: right; }
.invoice-meta h1 { font-size: 1.5rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.invoice-meta dl { display: grid; grid-template-columns: auto auto; gap: 4px 16px; margin: 0; font-size: .92rem; }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; font-weight: 700; }
.invoice-to { margin-bottom: 20px; }
.invoice-lines { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .95rem; }
.invoice-lines th, .invoice-lines td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.invoice-lines th { background: var(--tint); }
.invoice-lines .num { text-align: right; white-space: nowrap; }
.invoice-lines tfoot td { border-bottom: 0; padding: 6px 12px; }
.invoice-lines tfoot td:first-child { text-align: right; color: var(--muted); }
.invoice-total td { font-size: 1.1rem; font-weight: 800; color: var(--ink) !important; border-top: 2px solid var(--ink); padding-top: 10px !important; }
.invoice-bank { margin-top: 20px; padding: 16px 18px; background: var(--tint); border-radius: var(--radius-sm); }
.invoice-foot { margin-top: 24px !important; }
.invoice-stamp { position: absolute; top: 28px; right: -46px; transform: rotate(35deg); width: 200px; text-align: center; padding: 6px 0; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; background: var(--err); color: #fff; margin: 0 !important; }
.invoice-stamp.paid { background: var(--ok); }
.invoice.is-cancelled .invoice-lines, .invoice.is-cancelled .invoice-head { opacity: .6; }
@media (max-width: 620px) {
  .invoice { padding: 22px; }
  .invoice-meta { text-align: left; }
}
@media print {
  .site-header, .site-footer, .whatsapp-float, .toast, .no-print { display: none !important; }
  body { background: #fff; }
  .invoice-page { padding: 0; }
  .invoice-page .container { max-width: none; padding: 0; }
  .invoice { border: 0; box-shadow: none; padding: 0; }
  .invoice-lines th, .invoice-bank { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.pay-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.pay-grid .form-card h2 { font-size: 1.15rem; }
.admin td.num, .admin th.num { text-align: right; white-space: nowrap; }
.notify-line { display: flex; gap: 8px; align-items: center; margin: 12px 0; font-size: .88rem; color: var(--muted); }
.notify-line input { width: auto; }
.invoice-stamp.credited { background: var(--blue); }
.invoice-account { margin-top: 20px; }
.account-lines { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.account-lines dd { margin: 0; text-align: right; white-space: nowrap; }
.remind-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--tint); font-size: .9rem; }
.refund-card { border-color: #d8b4fe; }
.inline-form { display: inline; }
.replace-head { font-size: 1.1rem; margin: 24px 0 10px; }
.month-inv { padding: 4px 0; border-bottom: 1px dashed var(--line); margin-bottom: 4px; }
.month-inv:last-of-type { border-bottom: 0; }
.month-pick { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 16px; max-width: 320px; }
.month-pick label { flex: 1; }
.admin-userbar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.admin-userbar form { display: inline; }
.owner-filter { align-items: center; }
.nowrap { white-space: nowrap; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--tint); position: sticky; top: 76px; z-index: 5; }
.bulk-bar.has-selection { border-color: var(--primary); background: var(--primary-50); }
.bulk-bar select { width: auto; max-width: 100%; padding: .45em .6em; font-size: .88rem; }
.bulk-bar .notify { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); }
.bulk-bar .notify input { width: auto; }
.bulk-bar [hidden] { display: none; }
.bulk-count { font-size: .88rem; font-weight: 600; color: var(--ink); }
.admin .check-col { width: 36px; text-align: center; }
.check-col input { width: 16px; height: 16px; }
.mail-preview { margin: 16px 0; padding: 16px 18px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--tint); }
.template-item, .template-new { margin-bottom: 12px; padding: 16px 20px; }
.template-item summary, .template-new summary { cursor: pointer; }
.template-item form.form { margin-top: 14px; }
.danger-link { color: var(--err); margin-top: 8px; }
code { background: var(--tint); padding: 0 .3em; border-radius: 4px; font-size: .85em; }
.report-periods { margin-bottom: 6px; }
.hbars .funnel-row { grid-template-columns: minmax(90px, 150px) 1fr; }
.hbars .funnel-track { grid-template-columns: 1fr minmax(56px, auto); }
.hbars .funnel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.ts-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); gap: 10px; margin: 14px 0; }
.ts-day { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .85rem; }
.ts-day.is-off { background: var(--tint); color: var(--muted); }
.ts-day select { padding: .4em .5em; font-size: .85rem; }
.timesheet h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1.15rem; }
.ts-grid { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 10px 0; padding: 0; }
.ts-grid li { display: grid; gap: 2px; text-align: center; padding: 6px 2px; border-radius: 8px; background: var(--primary-50); font-size: .78rem; }
.ts-grid li.is-off { background: var(--tint); color: var(--muted); }
.ts-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ts-reject { display: flex; gap: 6px; flex: 1; min-width: 220px; }
.ts-reject input, .ts-note { padding: .4em .6em; font-size: .85rem; max-width: 180px; }
.ts-pending { margin-bottom: 16px; }
.timeline-box { margin-top: 6px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 6px; font-size: .8rem; min-width: 220px; }
.timeline li { position: relative; display: grid; gap: 1px; }
.timeline li::before { content: ''; position: absolute; left: -17px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.timeline .tl-stage::before { background: var(--blue); }
.timeline .tl-applied::before { background: var(--primary); }
.timeline .tl-withdrawn::before { background: var(--err); }
.tl-when { color: var(--muted); font-size: .74rem; }
.tl-what { color: var(--ink); }
.scorecard fieldset.rating { border: 0; padding: 0; margin: 0 0 16px; }
.scorecard legend { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.rating-row { display: flex; gap: 8px; }
.rating-opt { position: relative; cursor: pointer; }
.rating-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-opt span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 700; color: var(--ink); background: #fff; }
.rating-opt input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.rating-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px; }
.rec-strong-hire input:checked + span, .rec-hire input:checked + span { background: #dcfce7; border-color: #16a34a; color: #15803d; }
.rec-no-hire input:checked + span, .rec-strong-no-hire input:checked + span { background: #fee2e2; border-color: #dc2626; color: #b91c1c; }
.fb-chip { display: inline-block; margin-top: 4px; }

/* ============ Pagination ============ */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
.pager-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-links > a:not(.btn), .pager-current, .pager-gap { min-width: 2.2em; padding: .35em .6em; text-align: center; border-radius: var(--radius-sm); font-weight: 600; }
.pager-links > a:not(.btn):hover { background: var(--primary-50); }
.pager-current { background: var(--primary); color: #fff; }
.pager-gap { color: var(--muted, #6b7690); }

/* ============ Admin navigation ============ */
.admin-nav { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.admin-nav-group { display: flex; flex-direction: column; gap: 6px; }
.admin-nav-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.admin-nav-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-nav .tab { padding: .42em .9em; font-size: .88rem; background: #fff; text-transform: none; }
.admin-nav .tab.active { background: var(--navy); }
@media (max-width: 620px) { .admin-nav { padding: 12px; gap: 12px; } .admin-nav-group { width: 100%; } }

/* ============ Services & industries ============ */
.service-link { display: flex; flex-direction: column; color: var(--text); }
.service-link:hover { color: var(--text); }
.service-link .card-link { margin-top: auto; padding-top: 16px; }
.service-link p { margin-bottom: 0; }
.h3 { font-size: 1.25rem; }
.industry-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: .5em; padding: .6em 1.1em; font-size: .95rem; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.chip-link:hover { border-color: var(--primary); color: var(--primary); }
.chip-link .i { width: 18px; height: 18px; color: var(--primary); }
.stack-cards { display: grid; gap: 14px; margin-top: 20px; }
.guide-table { max-width: 920px; margin: 0 auto; }
.guide-note { margin-top: 20px; }
.panel-links { display: flex; gap: 20px; flex-wrap: wrap; }
.page-hero .eyebrow .i { width: 16px; height: 16px; vertical-align: -3px; }
/* Keyboard users can jump past the header. */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .7em 1.2em; border-radius: var(--radius-sm); font-weight: 700; transition: top .15s; }
.skip-link:focus { top: 12px; color: #fff; }
/* Salary pages (salaries.ejs). */
.salary-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.salary-stats .stat-tile { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: #fff; }
.salary-stats .stat-tile b { font-size: 1.25rem; color: var(--ink); }
.salary-table th[scope="row"] { font-weight: 600; }
.landing-salary { margin-top: 6px; }
/* Walk-in interviews and English needed (job-needs.js). */
.tag-walkin { background: #E7F6EC; color: #145C2E; }
.tag-english { background: var(--tint); color: var(--ink); }
.walkin-box { border: 1px solid #BFE3CB; background: #F3FBF5; border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0; }
.walkin-box.is-over { border-color: var(--line); background: var(--tint); }
/* Interview tips: questions open to show a good answer; the safety box stands out. */
/* Companies hiring now (companies.ejs). */
/* Recently viewed jobs on the Saved page. */
/* The employer's job preview: a bar above the page saying it is a preview. */
.preview-bar { background: #FFF7E0; border-bottom: 1px solid #F0D58A; padding: 12px 0; }
.preview-bar p { margin: 4px 0; }
.similar-cta { margin-top: 10px; }
.similar-prompt { margin-top: 14px; }
.recent-jobs { margin-top: 40px; }
.recent-jobs h2 { margin: 0; }
.recent-link { margin: 0 0 8px; }
.company-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.company-row { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fff; }
.company-row h2 { font-size: 1.1rem; margin: 0 0 4px; }
.company-row p { margin: 2px 0; }
.company-list + p { margin-top: 20px; }
.tips { max-width: 820px; }
.tips > h2 { margin-top: 32px; }
.tips-toc { display: block; padding: 12px 16px; background: var(--tint); border-radius: var(--radius-sm); margin-bottom: 8px; line-height: 2; }
.tip-qa { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 8px 0; background: #fff; }
.tip-qa > summary { cursor: pointer; font-weight: 700; padding: 12px 16px; min-height: 44px; }
.tip-qa > p { margin: 0; padding: 0 16px 14px; }
.safety-box { border: 1px solid #F3C6C6; background: #FFF6F6; border-radius: var(--radius-sm); padding: 14px 16px; margin: 28px 0; }
.safety-box h2 { margin-top: 0; }
/* How many applied and the openings (job page and cards). */
.applied-count { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: -4px 0 12px; }
.responds-fast { color: #145C2E; }
.tag-fast { background: #E8F0FE; color: #1A4FA0; }
.applied-count .i { width: 16px; height: 16px; }
.tips-link { margin: 18px 0; padding: 12px 16px; background: var(--tint); border-radius: var(--radius-sm); }
.walkin-box h2 { margin-top: 0; font-size: 1.05rem; }
.filter-check { align-self: center; white-space: nowrap; }
/* Resume builder (account-resume-builder.ejs): the preview looks like a sheet of paper. */
.resume-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: 0 1px 3px rgba(16, 42, 76, .08); }
.resume-sheet .resume-name { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 0; }
.resume-sheet .resume-headline { margin: 2px 0 4px; }
.resume-sheet h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); border-bottom: 1px solid var(--primary); padding-bottom: 3px; margin: 16px 0 6px; }
.resume-sheet .resume-block p { margin: 0 0 2px; }
.resume-sheet .resume-block { margin-bottom: 8px; overflow-wrap: anywhere; }
/* Staging mode (staging.js): the test site never looks like the live one. */
.staging-banner { background: #7a3e00; color: #fff; text-align: center; font-weight: 700; font-size: .9rem; padding: .45em 16px; }
main:focus { outline: none; }
.stars-off { color: #d5dbe5; }
.testimonial-edit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0 0 12px; display: grid; grid-template-columns: 1.2fr 1.2fr .6fr; gap: 10px; }
.testimonial-edit legend { font-weight: 700; font-size: .85rem; color: var(--ink); padding: 0 6px; }
.testimonial-edit .span-2 { grid-column: 1 / -1; }
.testimonial-edit label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
@media (max-width: 620px) { .testimonial-edit { grid-template-columns: 1fr; } }

/* Sign-in security (two-step sign-in) */
.qr-box { width: 200px; margin: 12px 0; padding: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.setup-steps { padding-left: 1.2em; display: grid; gap: 10px; }
.setup-key { font-size: 1rem; letter-spacing: .06em; word-break: break-all; }
.code-input { font-size: 1.3rem; letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.inline-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 16px 0 0; }
.inline-code label { flex: 1 1 240px; }
.recovery-codes { columns: 2; column-gap: 32px; padding-left: 1.6em; margin: 14px 0; }
.recovery-codes li { margin: 4px 0; }
.recovery-codes code { font-size: 1.05rem; letter-spacing: .05em; }
.recovery-card { border: 2px solid var(--primary); }
.two-step-card { margin-bottom: 20px; }
@media (max-width: 480px) { .recovery-codes { columns: 1; } }
@media print {
  .page-admin .site-header, .page-admin .site-footer, .page-admin .back-link, .page-admin main section.form-card:not(.recovery-card), .page-admin main form { display: none !important; }
}

/* Kinds of work: Find Work tabs and homepage cards */
.work-tabs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.work-tabs a:hover { border-color: var(--primary); }
.work-tabs a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.work-tabs .count { font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.work-tabs a[aria-current="page"] .count { background: rgba(255, 255, 255, .22); color: #fff; }
.work-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { display: flex; flex-direction: column; padding: 30px; border-radius: 26px; border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .3s, box-shadow .3s; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.work-card h3 { font-size: 1.35rem; margin: 0 0 8px; color: var(--ink); }
.work-card .path-icon { width: 54px; height: 54px; border-radius: 18px; margin-bottom: 16px; }
.work-office { background: linear-gradient(180deg, #fff, var(--sky-50)); }
.work-skilled { background: linear-gradient(180deg, #fff, var(--violet-50)); }
.work-skilled .path-icon { background: linear-gradient(120deg, #4F8FDF, #2878D4); }
.work-field { background: linear-gradient(180deg, #fff, var(--sun-50)); }
.work-field .path-icon { background: var(--grad-sun); box-shadow: 0 14px 28px -10px rgba(40, 120, 212, .6); }
.work-more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); }
@media (max-width: 860px) { .work-cards { grid-template-columns: 1fr; } }

/* Quick apply (skilled and field jobs) */
.quick-note { margin: 0 0 14px; }
.more-details { margin: 6px 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.more-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.more-details[open] summary { margin-bottom: 12px; }
.wa-apply { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.wa-apply .i { color: #25d366; }

/* Header: brand line, Login menu */
.logo-text { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-text small { font-size: .62rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.nav-login { position: relative; }
.nav-login summary { list-style: none; cursor: pointer; color: var(--ink); font-weight: 600; font-size: .94rem; padding: .5em .85em; border-radius: 999px; }
.nav-login summary::-webkit-details-marker { display: none; }
.nav-login summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.nav-login summary:hover { color: var(--primary); }
.nav-login-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 250px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.main-nav .nav-login-menu a:not(.btn) { display: grid; gap: 2px; padding: .65em .8em; border-radius: 8px; }
.main-nav .nav-login-menu a:not(.btn)::after { display: none; }
.main-nav .nav-login-menu a:hover { background: var(--tint); }
.nav-login-menu b { color: var(--ink); font-size: .92rem; }
.nav-login-menu span { color: var(--muted); font-size: .8rem; font-weight: 500; }
@media (max-width: 960px) {
  .nav-login summary { padding: .85em 1em; }
  .nav-login-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}

/* Hero search: keyword, location, category. Wraps to two rows below 1180px. */
@media (max-width: 1180px) {
  .hero-search { border-radius: var(--radius); flex-wrap: wrap; padding: 10px 10px 10px 18px; }
  .hero-search input { flex: 1 1 calc(100% - 40px); }
  .hero-search select { flex: 1 1 30%; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
}

/* Homepage: job category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; }
.cat-tile:hover { border-color: var(--action); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-tile-wide { grid-column: span 2; background: var(--tint); }
.cat-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.cat-icon .i { width: 22px; height: 22px; }
.cat-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cat-body b { font-size: 1rem; }
.cat-count { font-size: .82rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cat-grid { grid-template-columns: 1fr; } .cat-tile-wide { grid-column: auto; } }

/* Homepage: employer section */
.employer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.employer-card { display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.employer-card:hover { border-color: var(--action); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.employer-card .service-icon { margin-bottom: 14px; }
.employer-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.employer-card p { margin: 0; font-size: .92rem; }
.employer-more { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 28px 0 0; }
.employer-more a:not(.btn) { font-weight: 600; }
.employer-desks { position: relative; z-index: 1; margin: 18px 0 0; color: rgba(255, 255, 255, .8); }
.employer-desks a { color: #fff; text-decoration: underline; }
@media (max-width: 1100px) { .employer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .employer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .employer-grid { grid-template-columns: 1fr; } }

/* Sample listings (starter jobs that aren't real vacancies) */
.pill-sample { background: #FFF4D6; color: #7A5400; }
.pill-unseen { background: #EAF2FC; color: #185AA6; font-size: .72rem; padding: .15em .6em; }
.app-seen { color: #146c43; font-weight: 600; white-space: nowrap; }
.app-seen .i { width: 14px; height: 14px; vertical-align: -2px; }
.sample-note { margin: 0 0 16px; }

/* Job Categories page: every category, by kind of work */
.all-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.all-cats h3 { font-size: 1.05rem; margin: 0 0 10px; }
.all-cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.all-cats li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .all-cats { grid-template-columns: 1fr; } }

/* ---------- job-seeker accounts ---------- */
.nav-register { font-weight: 600; }
.register-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: start; }
.register-wrap .auth-card { max-width: none; }
.register-intro h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: .3em 0 .4em; }
@media (max-width: 900px) { .register-wrap { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 640px) { .register-intro .checks { display: none; } .auth-section { padding: 28px 0 40px; } }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; }
.check-row input { width: auto; margin-top: 4px; flex: none; }
/* Tick boxes big enough to tap, with the whole line as the target. */
.check-row input[type="checkbox"], .check-row input[type="radio"] { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); }
form .check-row { min-height: 44px; padding: 6px 0; cursor: pointer; }
.form-grid .check-row { flex-direction: row; }
.notice p { margin: 0; }
.one-click { display: grid; gap: 10px; }
.one-click p { margin: 0; }
.one-click-hint, .register-note { margin-top: 12px; }
.match-list, .alert-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 0; }
.match-list li, .alert-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.match-list li:last-child, .alert-list li:last-child { border-bottom: 0; }
.match-list li > div { display: grid; gap: 2px; min-width: 0; }
.dash-sub { font-size: 1rem; margin: 22px 0 6px; }
.inline-upload { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-upload .file-field { flex: 1 1 220px; }

/* ---------- job search and job details ---------- */
.job-filters { grid-template-columns: 2fr 1fr auto; }
.job-filters .filter-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.job-filters .filter-row select { flex: 1 1 160px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6em .7em; }
.job-filters input:focus-visible, .job-filters select:focus-visible, .filter-cats summary:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
@media (max-width: 900px) { .job-filters { grid-template-columns: 1fr auto; } .job-filters .filter-row select, .filter-cats { flex-basis: 45%; } }
.filter-cats { position: relative; flex: 1 1 160px; }
.filter-cats summary { list-style: none; cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7em 1em; font-weight: 500; color: var(--ink); }
.filter-cats summary::-webkit-details-marker { display: none; }
.filter-cats summary::after { content: ""; float: right; width: 7px; height: 7px; margin-top: 6px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filter-cats summary .count { background: var(--primary); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .8rem; }
.filter-cats-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(560px, 90vw); max-height: 60vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 14px 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 20px; text-align: left; }
.filter-cats-panel fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.filter-cats-panel legend { font-weight: 700; color: var(--ink); font-size: .85rem; margin-bottom: 6px; }
@media (max-width: 700px) { .filter-cats-panel { position: static; width: auto; box-shadow: none; margin-top: 6px; } }
.active-filters { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.active-filters a { display: inline-block; padding: .35em .8em; border-radius: 999px; background: var(--primary-50); color: var(--primary-600); font-weight: 600; font-size: .9rem; }
.active-filters a:hover { background: var(--line); }
.verified { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: .15em .6em; border-radius: 999px; background: #e8f6ee; color: #137a3c; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.verified .i { width: 14px; height: 14px; }
.job-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 0 0 8px; }
.job-facts div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.job-facts dt { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.job-facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.report-job { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.report-job summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .92rem; }
.report-job summary:hover { color: var(--err); }
.pay-fields { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; margin: 0; }
.pay-fields legend { font-weight: 600; padding: 0 4px; }
.pay-fields .span-all { grid-column: 1 / -1; }
/* Phones: pay from / up to, and walk-in first / last day, side by side. */
@media (max-width: 560px) { .pay-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; } }
.more-details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 14px; }
.more-details > summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 44px; }
.more-details[open] > summary { margin-bottom: 6px; }
.more-details > .form-grid { padding-bottom: 12px; }
/* Walk-in details only once walk-in interviews are ticked (browsers without :has show them always). */
.form-grid:has(input[name="walkIn"]:not(:checked)) .walkin-fields { display: none; }
.nav-login-menu .nav-login-extra { font-size: .85rem; color: var(--primary); font-weight: 600; }

/* ---------- candidate account: tabs, profile meter, profile sections ---------- */
.account-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 18px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.account-tabs a { padding: 10px 14px; white-space: nowrap; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.account-tabs a:hover { color: var(--ink); }
.account-tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }
/* More tabs than fit: the edge fades while there is more to scroll to (main.js sets data-more). */
.account-tabs[data-more="right"] { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
.account-tabs[data-more="left"] { -webkit-mask-image: linear-gradient(to left, #000 80%, transparent); mask-image: linear-gradient(to left, #000 80%, transparent); }
.account-tabs[data-more="both"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent); }
.profile-meter { margin-bottom: 16px; }
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 4px 0 12px; }
.meter span { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.meter-next { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.welcome-card { margin-bottom: 16px; border-color: var(--primary); }
.welcome-card h2 { margin-top: 0; }
.profile-summary { display: grid; gap: 6px; margin: 0 0 8px; }
.profile-summary div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
.profile-summary dt { color: var(--muted); }
.profile-summary dd { margin: 0; overflow-wrap: anywhere; }
.profile-note { margin: 0 0 16px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 14px; padding: 8px 0; }
.check-set { border: 0; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.check-set legend { font-weight: 700; font-size: .92rem; margin-bottom: 4px; padding: 0; }
details.pick, details.add-entry, details.more-fields { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
details.pick summary, details.add-entry summary, details.more-fields summary { cursor: pointer; font-weight: 600; }
details.more-fields .form-grid { margin-top: 12px; }
.lang-row { margin-bottom: 6px; }
.resume-list, .entry-list { list-style: none; padding: 0; margin: 0 0 12px; }
.resume-list li, .entry-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.resume-list li:last-child, .entry-list li:last-child { border-bottom: 0; }
.resume-list li > div:first-child, .entry-list li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.entry-list p { margin: 4px 0 0; }
@media (max-width: 560px) {
  .resume-list li { flex-direction: column; }
  /* Phones: choices as two columns of boxes, the chosen ones filled in. */
  .form .check-grid, form .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .check-grid .check-row { align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
  .check-grid .check-row:has(input:checked) { border-color: var(--primary); background: var(--primary-50); }
}


/* ---------- notifications ---------- */
.nav-bell { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.nav-bell .i { width: 18px; height: 18px; }
.main-nav .nav-bell .nav-bell-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bell-count { min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: #C2410C; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.5; text-align: center; }
.notif-filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { font-size: .86rem; padding: .4em .95em; background: #fff; }
.chip-row .chip-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; position: relative; padding-left: 16px; }
.notif-unread .notif-main b { color: var(--ink); }
.notif:not(.notif-unread) .notif-main { color: var(--muted, #5b6680); }
.notif-dot { position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: #C2410C; }
.notif-body { font-size: .95rem; }
.pref-list { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
form.inline { display: inline; }
@media (max-width: 560px) { .notif { flex-direction: column; } }
.iv-move { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.iv-move input { width: auto; padding: 6px 8px; }

/* ============ Step 53: matching, recommendations, saved searches, finding candidates ============ */
.match-explain { display: grid; gap: 8px; }
.match-score { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 1.05rem; color: var(--ink); }
.match-score b { font-size: 1.4rem; }
.match-factors { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.match-factors li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.mf-icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; background: #f1f5f9; color: #475569; }
.mf-met .mf-icon { background: #dcfce7; color: #15803d; }
.mf-partial .mf-icon { background: #fef3c7; color: #a16207; }
.mf-unmet .mf-icon { background: #fee2e2; color: #b91c1c; }
.match-pill { font-weight: 600; margin-right: 6px; }
.match-strong { background: #dcfce7; color: #15803d; }
.match-good { background: var(--primary-50); color: var(--primary-600); }
.match-partial, .match-unknown { background: #f1f5f9; color: #475569; }
.match-box { margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tint); }
.match-box h2 { margin-top: 0; }
.rec-list, .search-list, .cand-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.rec-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rec-item:last-child { border-bottom: 0; }
.rec-main { display: grid; gap: 4px; min-width: 0; }
.rec-why summary { cursor: pointer; color: var(--primary); font-size: .9rem; }
.rec-why[open] summary { margin-bottom: 8px; }
.search-item { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.search-item:last-child { border-bottom: 0; }
.search-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cand-list { gap: 14px; }
.cand-card { display: grid; gap: 8px; }
.cand-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.invite-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.invite-form select { width: auto; max-width: 100%; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 12px; margin-bottom: 10px; }
.review-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.filter-skills input { min-width: 200px; }
.save-search { display: inline; }
@media (max-width: 640px) {
  .rec-item, .search-head, .cand-head { flex-direction: column; }
  .filter-skills, .filter-skills input { width: 100%; min-width: 0; }
}

/* Sales CRM pipeline board (crm.js): columns scroll inside the board, never the page. */
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 2px 12px; max-width: 100%; }
.crm-col { background: var(--primary-50); border-radius: 14px; padding: 10px; min-height: 160px; }
.crm-col.over { outline: 2px dashed var(--primary); outline-offset: -4px; }
.crm-col h2 { font-size: 1rem; margin: 0 0 8px; }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; cursor: grab; }
.crm-card[draggable="false"] { cursor: default; }
.crm-card.dragging { opacity: .5; }
.crm-move { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.crm-move select { max-width: 100%; font-size: .85rem; }

/* Job seekers' landing-page links (kinds of work and industries). */
.landing-links { margin-top: 20px; }
.landing-links .chips { margin-bottom: 12px; }
.breadcrumbs { margin-bottom: 8px; color: var(--muted, #6b7690); }

/* Trust & safety pages */
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; }
.plain-list li { padding: 4px 0; }

/* Phones and the installable app (Step 60) */
.more-filters { grid-column: 1 / -1; }
.more-filters > summary { display: none; }
.more-filters-apply { display: none; }
.app-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 560px; margin: 0 auto; padding: 12px 14px; background: var(--brand); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; }
.app-bar[hidden] { display: none; }
.app-bar span { flex: 1 1 200px; }
.app-bar .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.pref-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pref-row legend { padding: 0 4px; }
.pref-row .check-row { min-height: 32px; align-items: center; }
.pref-row .check-row input { margin-top: 0; }
.push-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.push-box p { flex: 1 1 100%; margin: 0; }
.device-list { list-style: none; padding: 0; margin: 0 0 12px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.offline-page { text-align: left; padding: 24px 0; }
/* Wide content scrolls inside its box, never the page. */
.scroll-x { overflow-x: auto; max-width: 100%; }
@media (max-width: 700px) {
  /* Easy to tap: at least 44px high. */
  .job-filters input, .job-filters select, .filter-cats summary, .btn, .work-tabs a { min-height: 44px; }
  .work-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin-right: -16px; padding-right: 16px; }
  .work-tabs::-webkit-scrollbar { display: none; }
  .work-tabs a { flex: none; }
  .more-filters > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; padding: .6em 1em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; color: var(--ink); }
  .more-filters > summary::-webkit-details-marker { display: none; }
  .more-filters > summary .count { background: var(--primary); color: #fff; border-radius: 999px; padding: 0 .5em; font-size: .8rem; }
  .more-filters[open] > summary { margin-bottom: 8px; }
  .more-filters .filter-row select, .more-filters .filter-cats { flex-basis: 100%; }
  .more-filters-apply { display: inline-flex; flex: 1 1 100%; justify-content: center; }
  .app-bar { left: 8px; right: 8px; }
}

/* Analytics dashboards (analytics.js) */
.analytics-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-bottom: 10px; }
.analytics-filters label { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.analytics-filters .filter-actions { display: flex; gap: 8px; flex: 1 1 100%; }
.analytics-kpis .kpi:hover { border-color: var(--line); box-shadow: none; }
.kpi-def { margin-top: 6px; font-size: .78rem; }
.kpi-def summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.kpi-def p { margin: 6px 0 0; color: var(--text); }
.hbars { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 140px) 1fr minmax(120px, auto); gap: 10px; align-items: center; font-size: .9rem; }
.hbar { display: block; height: 14px; background: var(--primary-50); border-radius: 4px; overflow: hidden; }
.hbar > span { display: block; height: 100%; background: var(--primary); border-radius: 0 4px 4px 0; }
.analytics-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.analytics-split caption { text-align: left; padding: 8px 12px 0; color: var(--muted); }
.definitions dt { font-weight: 700; margin-top: 10px; }
.definitions dd { margin: 2px 0 0; color: var(--text); font-size: .9rem; }
.inline-h { display: inline; font-size: 1.1rem; }
#definitions > summary { cursor: pointer; }
@media (max-width: 640px) {
  .hbars li { grid-template-columns: 1fr; gap: 4px; }
}

/* Security & privacy pages (Step 62) */
.narrow-card { max-width: 30rem; }

/* Plans and billing (Step 63) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 14px; margin: 8px 0 16px; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plan-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary) inset; }
.plan-card h3 { margin: 0; }
.plan-card ul { margin: 0 0 6px; padding-left: 1.1rem; }
.plan-card .btn, .plan-card form { margin-top: auto; align-self: flex-start; }
.plan-price { font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.big-number { font-family: var(--font-display); font-size: 1.3rem; margin: 4px 0 8px; }
.inline-details summary { list-style: none; cursor: pointer; }
.inline-details summary::-webkit-details-marker { display: none; }
.inline-details[open] form { margin-top: 10px; }

/* What we checked (Step 64): plain labels, never a guarantee */
.trust-labels { margin: 24px 0; padding: 16px 18px; border: 1px solid #d6e4f5; border-radius: 12px; background: #f6f9fe; }
.trust-labels h2 { margin-top: 0; font-size: 1.1rem; }
.trust-labels .checks { margin-bottom: 8px; }
[data-receipt] { margin-top: 12px; }
[data-receipt]:focus { outline: 3px solid #1d5fd6; outline-offset: 2px; }
.risk-panel table td { vertical-align: top; }

/* Integrations and the developer portal (Step 65). */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 24px; text-align: center; }
.stat-row .stat b { font-size: 1.8rem; }
.list-row { border-top: 1px solid var(--line, #e5e7eb); padding: 12px 0; }
.list-row:first-of-type { border-top: 0; }
.secret-value { display: inline-block; max-width: 100%; padding: 8px 10px; border-radius: 8px; background: var(--primary-50); font-size: 0.95rem; word-break: break-all; user-select: all; }
.code-block { max-width: 100%; overflow-x: auto; padding: 14px 16px; border-radius: 12px; background: #0f172a; color: #e2e8f0; font-size: 0.85rem; line-height: 1.5; }
.code-block code { background: none; color: inherit; white-space: pre; }
.dev-toc { margin: 20px 0; font-size: 0.95rem; }
.developers h2 { margin-top: 2rem; }

/* The AI assistant (Step 66). */
.ai-panel summary { cursor: pointer; }
.ai-panel [data-ai-result] { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--primary-600, #1d5fd6); background: var(--primary-50, #eef4ff); border-radius: 8px; }
.ai-panel [data-ai-result] h3 { margin: 12px 0 4px; font-size: 1rem; }
.ai-feedback { margin-top: 10px; align-items: center; }
.ai-log { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; }
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg p { margin: 0; }
.ai-user { justify-self: end; background: var(--primary-600, #1d5fd6); color: #fff; }
.ai-assistant { justify-self: start; background: var(--primary-50, #eef4ff); }
@media (prefers-reduced-motion: no-preference) { .ai-log { scroll-behavior: smooth; } }

/* ============ Languages & accessibility (Step 67) ============ */
/* Hindi and Telugu letters need room above and below the line. */
html:lang(hi), html:lang(mr) { --font-display: "Inter", "Noto Sans Devanagari", system-ui, sans-serif; font-family: "Inter", "Noto Sans Devanagari", system-ui, sans-serif; }
html:lang(te) { --font-display: "Inter", "Noto Sans Telugu", system-ui, sans-serif; font-family: "Inter", "Noto Sans Telugu", system-ui, sans-serif; }
html:lang(ta) { --font-display: "Inter", "Noto Sans Tamil", system-ui, sans-serif; font-family: "Inter", "Noto Sans Tamil", system-ui, sans-serif; }
html:lang(bn) { --font-display: "Inter", "Noto Sans Bengali", system-ui, sans-serif; font-family: "Inter", "Noto Sans Bengali", system-ui, sans-serif; }
:lang(hi) body, :lang(te) body, :lang(ta) body, :lang(bn) body, :lang(mr) body { line-height: 1.75; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(te) h1, :lang(te) h2, :lang(te) h3 { line-height: 1.4; letter-spacing: 0; }
/* Headings stay visible when a link or error jumps to them under the sticky header. */
html { scroll-padding-top: 96px; }
.h4 { font-size: 1.05rem; }
.h5 { font-size: .95rem; margin: 12px 0 4px; }
.pre-line { white-space: pre-line; }

.lang-switch { display: flex; align-items: center; gap: 2px; margin: 0 6px; }
.lang-switch .lang-label { display: inline-flex; color: var(--muted); }
.lang-switch button { min-height: 32px; min-width: 32px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.lang-switch button:hover { background: var(--tint); }
.lang-switch button[aria-current="true"] { border-color: var(--line); background: var(--primary-50); color: var(--navy); }
@media (max-width: 900px) { .lang-switch { margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--line); } }

.filter-hint { margin: 4px 0 0; color: var(--muted); }
.with-voice { position: relative; }
.with-voice textarea, .with-voice input { padding-right: 52px; }
.voice-btn { position: absolute; right: 8px; bottom: 8px; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }
.voice-btn:hover { background: var(--tint); }
.voice-btn.listening, .voice-btn[aria-pressed="true"] { background: var(--err); border-color: var(--err); color: #fff; }
.voice-dialog { max-width: 440px; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-lg); }
.voice-dialog::backdrop { background: rgba(16, 42, 76, .45); }
[data-read-aloud][aria-pressed="true"] { background: var(--primary-50); border-color: var(--action); }

.form-errors { grid-column: 1 / -1; margin: 0 0 14px; }
.form-errors p { margin: 0 0 4px; font-weight: 700; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors a { color: inherit; text-decoration: underline; }
[aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err); }
.draft-note { grid-column: 1 / -1; margin: 0 0 10px; }

.apply-review { grid-column: 1 / -1; margin: 6px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.apply-review:focus { outline: 3px solid var(--action); outline-offset: 2px; }
.review-list { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 6px 14px; margin: 8px 0 12px; }
.review-list dt { font-weight: 700; color: var(--ink); }
.review-list dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 560px) { .review-list { grid-template-columns: 1fr; } .review-list dd { margin-bottom: 6px; } }

.original-text { margin: 18px 0; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.original-text summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.translate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .translate-grid { grid-template-columns: 1fr; } }
.flag-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.flag-list li { display: flex; gap: 8px; align-items: baseline; }

.glossary { display: grid; gap: 12px; margin: 0 0 24px; }
.glossary > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.glossary dt { font-weight: 700; color: var(--ink); }
.glossary dd { margin: 4px 0 0; }

/* Small controls are at least 24 by 24 pixels to tap or click (WCAG 2.5.8). */
button, [role="button"], input[type="checkbox"], input[type="radio"], select { min-height: 24px; }
input[type="checkbox"], input[type="radio"] { min-width: 20px; min-height: 20px; }
/* Windows high contrast and other forced colours: keep focus and states visible. */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; }
  .btn, .chip, .lang-switch button, .voice-btn { border: 1px solid ButtonText; }
  .lang-switch button[aria-current="true"], .chip.active, [aria-pressed="true"] { outline: 2px solid Highlight; }
  [aria-invalid="true"] { outline: 2px solid Mark; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.offline-alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ============ Job seeker first (Step 69) ============ */
/* Smooth page changes in browsers that support cross-document view
   transitions; others (and reduced motion) just load the page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}
.section-tight { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }

/* Hero: job title, city, search, then "near me". */
.hero-search-seek { padding: 7px; gap: 0; border-radius: 18px; }
.hero-search-seek .hs-field { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 0 14px; position: relative; }
.hero-search-seek .hs-field + .hs-field { border-left: 1px solid var(--line); }
.hero-search-seek select { flex: 1; border: 0; padding-left: 0; }
.hero-search-seek .btn { flex: 0 0 auto; }
.hero-near { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.near-status { color: var(--muted); margin: 0; }
.near-status:empty { display: none; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 18px 0 0; color: var(--ink); }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.i.ok { color: var(--ok); }
.fc-facts { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 4px; }
.fc-facts li { display: flex; align-items: center; gap: 8px; }
.fc-facts .i { color: var(--primary); }
.fc-actions { display: flex; gap: 8px; }
@media (max-width: 760px) {
  .hero-search-seek { flex-direction: column; align-items: stretch; padding: 8px; }
  .hero-search-seek .hs-field { padding: 8px 10px; }
  .hero-search-seek .hs-field + .hs-field { border-left: 0; border-top: 1px solid var(--line); }
  .hero-search-seek .btn { width: 100%; margin-top: 6px; }
}

/* Popular roles and top cities. */
.role-grid, .city-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.role-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.city-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.role-tile, .city-tile {
  display: flex; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.role-tile { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; }
.city-tile { align-items: center; gap: 12px; padding: 14px 16px; }
.city-tile > span:last-child { display: flex; flex-direction: column; }
.role-tile:hover, .city-tile:hover { color: var(--ink); border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.role-icon, .city-initial { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-50); color: var(--primary); font-weight: 800; flex-shrink: 0; }
.role-icon .i { width: 22px; height: 22px; }
.role-tile b { margin-top: 6px; line-height: 1.3; }
@media (max-width: 480px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .city-grid { grid-template-columns: 1fr; } }

/* How it works. */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: none; }
.how-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 22px; border-radius: var(--radius); background: var(--tint); }
.how-steps li > .i { width: 28px; height: 28px; color: var(--primary); }
.how-steps b { color: var(--ink); font-size: 1.08rem; }
.how-num { position: absolute; top: 14px; right: 18px; font-size: 2rem; font-weight: 800; color: rgba(31, 107, 194, .18); }
.how-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Find Jobs: near me. */
.near-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.near-row > label:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.near-row input { flex: 0 1 200px; min-width: 0; }
.near-row select { flex: 0 1 170px; }
.near-using { font-weight: 600; color: var(--primary-600); }
.job-distance { color: var(--primary-600); font-weight: 600; }

/* Job cards: view, and one-tap apply for signed-in job seekers. */
.job-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.job-card-actions .card-link { margin-top: 0; }
.one-tap { margin: 0; }
.pill .i { width: 1em; height: 1em; }

/* After applying: call or WhatsApp the hiring contact. */
.hr-contact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 12px 0; background: var(--primary-50); }
.hr-contact p { margin: 0 0 8px; }
.hr-contact p:last-child { margin: 8px 0 0; }
.hr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hr-actions .btn { flex: 1 1 140px; justify-content: center; }
.btn-whatsapp { background: #1f8f4e; color: #fff; }
.btn-whatsapp:hover { color: #fff; background: #17783f; }

/* Sign in: email or mobile, and codes. */
.segmented { display: flex; gap: 4px; padding: 4px; margin: 0 0 18px; background: var(--tint); border-radius: 12px; }
.segmented a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 9px; font-weight: 600; color: var(--text); }
.segmented a[aria-current] { background: #fff; color: var(--primary-600); box-shadow: var(--shadow); }
.input-prefix { display: flex; align-items: stretch; margin-top: 6px; }
.input-prefix > span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--tint); font-weight: 600; color: var(--ink); }
.input-prefix input { flex: 1; min-width: 0; margin-top: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.otp-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; max-width: 12ch; }

/* Search suggestions under a search box. */
.has-suggest { position: relative; }
.suggest-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 320px; overflow-y: auto; text-align: left;
}
.suggest-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--ink); cursor: pointer; min-height: 44px; }
.suggest-list li[aria-selected="true"], .suggest-list li:hover { background: var(--primary-50); }
.suggest-kind { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* Phones: bottom navigation for job seekers. */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    backdrop-filter: blur(10px);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; font-size: .72rem; font-weight: 600; color: var(--muted); border-radius: 10px; }
  .bottom-nav a .i { width: 22px; height: 22px; }
  .bottom-nav a[aria-current] { color: var(--primary-600); background: var(--primary-50); }
  body:has(.bottom-nav) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body:has(.bottom-nav) .app-bar, body:has(.bottom-nav) .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media print { .bottom-nav { display: none; } }
.sticky-apply { display: none; }
@media (max-width: 760px) {
  .sticky-apply:not([hidden]) {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 59; left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom));
    padding: 10px 10px 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(19, 37, 63, .18);
  }
  .sticky-apply-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
  .sticky-apply-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-apply .btn { flex: none; min-height: 44px; }
}
@media (forced-colors: active) { .bottom-nav a[aria-current], .segmented a[aria-current], .suggest-list li[aria-selected="true"] { outline: 2px solid CanvasText; } }
.hero-employer { margin: 14px 0 0; color: var(--muted); }
.near-showing { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Find Jobs: the "near" row and its messages take the whole width of the filter box. */
.job-filters .near-row, .job-filters .near-status, .job-filters > .notice { grid-column: 1 / -1; }
.job-filters .near-row { padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 0; }
.job-filters .near-row input, .job-filters .near-row select { width: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55em .7em; }
.job-filters .near-row input { flex: 0 1 220px; }
/* Phones: the search and popular jobs come first; the photo is for wide screens. */
@media (max-width: 760px) { .hero-seek .hero-visual { display: none; } }
@media (min-width: 1000px) { .role-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.form > label + .btn { margin-top: 14px; }
.landing-nearby { margin-top: 14px; }

/* Homepage: a more editorial, high-contrast look for the job-search journey. */
.page-home {
  --home-ink: #13253f;
  --home-muted: #637087;
  --home-paper: #fbfaf7;
  --home-gold: #e8bd72;
  --home-border: #e7e5df;
}
.page-home .hero {
  padding: clamp(64px, 7vw, 104px) 0 142px;
  color: #fff;
  background:
    radial-gradient(ellipse at 82% 17%, rgba(63, 97, 142, .36), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(33, 65, 103, .6), transparent 42%),
    #101f35;
}
.page-home .hero-bg::before {
  width: 380px;
  height: 380px;
  left: 36%;
  top: -190px;
  background: #52749b;
  opacity: .16;
}
.page-home .hero-bg::after {
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -180px;
  background: var(--home-gold);
  opacity: .12;
}
.page-home .hero-grid { gap: clamp(32px, 4vw, 64px); }
.page-home .hero-copy { max-width: 660px; }
.page-home .hero h1 {
  max-width: 13em;
  color: #fff;
  font-size: clamp(2.8rem, 5.2vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}
.page-home .hero h1 .grad {
  color: var(--home-gold);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.page-home .hero .lead { max-width: 560px; color: #c8d2df; font-size: 1.08rem; }
.page-home .hero .eyebrow {
  color: #f0cb8b;
  background: rgba(232, 189, 114, .1);
  border: 1px solid rgba(232, 189, 114, .25);
}
.page-home .hero .eyebrow::before { background: currentColor; }
.page-home .hero-search-seek {
  max-width: 680px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(2, 13, 30, .32);
}
.page-home .hero-search-seek .hs-field { min-height: 54px; }
.page-home .hero-search-seek .hs-field .i { color: #7b8797; }
.page-home .hero-search-seek input,
.page-home .hero-search-seek select { color: var(--home-ink); }
.page-home .hero-search-seek input::placeholder { color: #7b8797; opacity: 1; }
.page-home .hero-search-seek .btn {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 12px;
  background: #d7a951;
  color: #17243a;
  box-shadow: none;
}
.page-home .hero-search-seek .btn:hover { background: #efc778; filter: none; }
.page-home .hero-near { color: #d8e0e9; }
.page-home .hero-near a { color: #d9e2ed; text-underline-offset: 3px; }
.page-home .hero-near .btn-outline {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.page-home .hero-near .btn-outline:hover { background: rgba(255, 255, 255, .16); }
.page-home .hero-popular { gap: 7px; color: #c4cfdd; }
.page-home .hero-popular a {
  padding: .25em .75em;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #f4f6f9;
}
.page-home .hero-popular a:hover { border-color: var(--home-gold); color: var(--home-gold); }
.page-home .hero-points { color: #e2e8ef; gap: 8px 18px; }
.page-home .hero-points .i.ok { color: #8ed0ae; }
.page-home .hero-employer { color: #c1ccda; }
.page-home .hero-employer a { color: #f0cb8b; }
.page-home .hero-visual { max-width: 530px; padding: 22px 28px 34px; }
.page-home .photo-arch {
  aspect-ratio: 9 / 10;
  border-radius: 47% 47% 24px 24px;
  box-shadow: 0 28px 70px rgba(1, 10, 23, .42);
}
.page-home .hero-visual::before {
  inset: 9% 0 0 12%;
  border-radius: 47% 47% 28px 28px;
  background: linear-gradient(145deg, #d6aa61, #657e99 68%, #405e7d);
  opacity: .85;
  transform: rotate(4deg);
}
.page-home .hero-visual .deco-dots { opacity: .2; }
.page-home .hero-visual .deco-ring { border-color: var(--home-gold); opacity: .45; }
.page-home .fc-main { left: -8%; bottom: 12%; }
.page-home .fc-small { box-shadow: 0 18px 42px rgba(2, 13, 30, .24); }
.page-home .stats { margin-top: -66px; }
.page-home .stats-grid {
  max-width: calc(var(--container) - 48px);
  padding: 12px;
  gap: 8px;
  border-color: rgba(19, 37, 63, .08);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(20, 34, 53, .12);
}
.page-home .stat,
.page-home .stat:nth-child(n) { padding: 21px 12px; background: #fff; }
.page-home .stat + .stat { border-left: 1px solid var(--home-border); border-radius: 0; }
.page-home .stat b,
.page-home .stat:nth-child(n) b { color: var(--home-ink); }
.page-home .stat > span { color: var(--home-muted); }
.page-home .section-tint { background: var(--home-paper); }
.page-home .section-head h2 { color: var(--home-ink); letter-spacing: -.04em; }
.page-home .section-head p { color: var(--home-muted); }
.page-home .role-tile,
.page-home .city-tile {
  border-color: var(--home-border);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(19, 37, 63, .025);
}
.page-home .role-tile { padding: 18px; }
.page-home .role-icon,
.page-home .city-initial { background: #f2eee5; color: #8a6935; }
.page-home .role-tile:hover,
.page-home .city-tile:hover {
  border-color: #c9a15c;
  box-shadow: 0 12px 26px rgba(19, 37, 63, .09);
  transform: translateY(-3px);
}
.page-home .job-card {
  border-color: var(--home-border);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(19, 37, 63, .035);
}
.page-home .job-card:hover { border-color: #c9a15c; box-shadow: 0 16px 34px rgba(19, 37, 63, .1); }
.page-home .btn-outline { border-color: #d7d9de; }
@media (max-width: 960px) {
  .page-home .hero { padding-bottom: 112px; }
  .page-home .hero-visual { max-width: 470px; }
}
@media (max-width: 760px) {
  .page-home .hero { padding: 54px 0 104px; }
  .page-home .hero h1 { font-size: clamp(2.55rem, 10vw, 3.65rem); }
  .page-home .stats { margin-top: -48px; }
  .page-home .stats-grid { padding: 8px; gap: 4px; }
  .page-home .stat,
  .page-home .stat:nth-child(n) { padding: 16px 8px; }
  .page-home .stat + .stat { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-bg::before,
  .page-home .hero-bg::after,
  .page-home .fc-main,
  .page-home .fc-small { animation: none; }
}

/* ---------- Newer CSS, used where the browser has it ---------- */
/* Headings break into even lines; paragraphs avoid a lone last word. */
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
/* Text boxes grow with what is typed, between a few lines and most of the screen. */
@supports (field-sizing: content) {
  textarea { field-sizing: content; min-height: 5.5em; max-height: 60vh; }
}
/* Folded sections ("More details", filters, FAQs) open smoothly. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    :root { interpolate-size: allow-keywords; }
    details::details-content { height: 0; overflow: clip; transition: height .2s ease, content-visibility .2s allow-discrete; }
    details[open]::details-content { height: auto; }
  }
}
