/* FindHR guide pages. Shared, self-contained. Dark, calm, one blue accent. No em dashes in copy. */
:root {
  --bg: #080a12;
  --bg-soft: #0d1018;
  --surface: #141a2b;
  --surface-2: #1b2238;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-3: rgba(255, 255, 255, 0.22);
  --ink: #f7f8fa;
  --ink-body: #eceef3;
  --label: #9bc2ff;
  --accent: #6aa8ff;
  --accent-ink: #050912;
  --accent-soft: rgba(106, 168, 255, 0.12);
  --glow: rgba(106, 168, 255, 0.55);
  --grid-line: rgba(150, 165, 255, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 88% 60% at 50% 0%, #000 42%, transparent 86%);
          mask-image: radial-gradient(ellipse 88% 60% at 50% 0%, #000 42%, transparent 86%);
}

#bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  max-width: 90vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  filter: blur(90px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

/* Nav */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
nav.glass { width: 100%; position: sticky; top: 0; z-index: 50; }
.nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 32px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .nav-logo { height: auto; width: 144px; } }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* App-style pill tabs, mirrored from main.html. Auth-aware targets via nav-auth.js. */
.nav-links {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-body);
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); }
.nav-link.active { background: rgba(106, 168, 255, 0.14); color: var(--accent); }
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; row-gap: 12px; padding: 14px 16px; }
  .nav-links { order: 3; width: 100%; gap: 4px; padding: 4px; justify-content: center; }
  .nav-link { flex: 1 1 0; min-width: 0; text-align: center; padding: 8px 4px; font-size: 12px; letter-spacing: -0.01em; }
}
@media (max-width: 359px) { .nav-link { font-size: 11px; padding: 8px 2px; } }

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s ease, transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 8px 15px; font-size: 13px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--border-3); background: rgba(255, 255, 255, 0.04); }

/* Page shell */
.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 24px 40px;
}

/* Breadcrumbs */
.crumbs {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; margin: 0 7px; }

/* Article header */
.article-head { margin-bottom: 36px; }
.article-head h1 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 16px;
}
.article-head .standfirst {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
  margin: 0 0 18px;
}
.article-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--label);
}

/* Prose */
article h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 16px;
}
article h3 {
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 30px 0 12px;
}
article p { font-size: 16px; line-height: 1.75; color: var(--ink-body); margin: 0 0 16px; }
article a { color: var(--accent); }
article a:hover { text-decoration: underline; }
article strong { color: var(--ink); font-weight: 700; }
article ul, article ol { margin: 0 0 16px; padding-left: 24px; }
article li { font-size: 15.5px; line-height: 1.7; margin-bottom: 8px; }

/* Numbered steps */
.step {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 16px;
}
.step .step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 12px; }
.step p { font-size: 15.5px; margin-bottom: 12px; }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }

/* Email / code blocks */
.email {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-body);
  white-space: pre-wrap;
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-left: 2px solid var(--border-3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 0 0 16px;
}
.email .ph { color: var(--accent); }
.subject {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-body);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin: 0 0 14px;
}
.subject .lbl { color: var(--label); }
.email-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  display: block;
  margin: 16px 0 8px;
}

/* Comparison table */
.cmp { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.cmp th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
}
.cmp td {
  padding: 13px 14px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  line-height: 1.55;
  color: var(--ink-body);
  vertical-align: top;
}
.cmp td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.table-scroll .cmp { margin: 0; min-width: 560px; }

/* Callout / CTA cards */
.callout {
  background: var(--surface);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 32px 0;
}
.callout .co-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  display: block;
  margin-bottom: 10px;
}
.callout p { font-size: 15.5px; line-height: 1.7; margin: 0 0 16px; }
.callout p:last-child { margin-bottom: 0; }
.callout .btn { margin-top: 2px; }

/* FAQ details */
details.faq {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}
details.faq summary {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary { margin-bottom: 10px; }
details.faq p { font-size: 15px; line-height: 1.7; margin: 0; }

/* Related guides */
.related { margin-top: 48px; }
.related .rel-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--label);
  display: block;
  margin-bottom: 14px;
}
.rel-list { display: flex; flex-direction: column; gap: 10px; }
.rel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 15px 18px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rel-card:hover { border-color: var(--accent-soft); background: rgba(255, 255, 255, 0.06); }
.rel-card .rt { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.rel-card .ra { flex-shrink: 0; font-size: 17px; color: var(--label); }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 30px 0 36px;
  margin-top: 48px;
}
.footer-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wm { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.wm-accent { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--label); margin-top: 12px; }

@media (max-width: 700px) {
  .page { padding: 34px 18px 32px; }
  .footer-inner { padding: 0 18px; }
  .step, .callout { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
