/* ═════════════════════════════════════════════════════════
   MoreJobsLocal — Blog stylesheet
   Consumes the same design tokens as the rest of the site.
   Header + drawer + footer styles live in
   ../../assets/css/global.css (single site-wide source).
   Only blog-specific layout rules live here.
   ═════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --surface: #111111;
  --surface2: #161616;
  --surface3: #1c1c1c;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.10);
  --cyan-glow: rgba(0, 212, 255, 0.20);
  --cyan-bright: #5de8ff;

  --magenta: #ff2e88;
  --magenta-glow: rgba(255, 46, 136, 0.18);
  --lime: #b6ff3c;

  --white: #f2f2f2;
  --gray: #8a8a8a;
  --gray-dim: #5a5a5a;
  --light-gray: #c8c8c8;

  --hdr-h: 60px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; overflow-x: hidden; max-width: 100vw; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; height: auto; }

a { color: var(--cyan); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--cyan-bright); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--cyan); color: var(--bg); }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--cyan);
}

/* ─── Blog index (archive) ──────────────────────────────── */
.blog-hero {
  max-width: 1140px; margin: 64px auto 0;
  padding: 48px 24px 32px;
  text-align: center;
  position: relative;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--cyan-glow), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.blog-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 2px;
  color: var(--cyan); text-transform: uppercase;
  display: inline-block;
  padding: 8px 16px;
  background: var(--cyan-dim);
  border: 1px solid var(--cyan-glow);
  border-radius: 100px;
  margin-bottom: 24px;
}
.blog-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.blog-title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(100deg, var(--cyan) 0%, var(--magenta) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-lede {
  max-width: 680px; margin: 0 auto;
  color: var(--light-gray);
  font-size: 17px;
}

.blog-grid {
  max-width: 1140px;
  margin: 48px auto 0;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover {
  border-color: var(--cyan-glow);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--cyan-dim) inset;
}
.post-card__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 1.5px;
  color: var(--gray); text-transform: uppercase;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.post-card__meta .dot { color: var(--gray-dim); }
.post-card__title {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.22;
  margin: 0;
}
.post-card__title a { color: var(--white); }
.post-card__title a:hover { color: var(--cyan); text-decoration: none; }
.post-card__excerpt {
  color: var(--light-gray); font-size: 14.5px; margin: 0;
  text-wrap: pretty;
}
.post-card__tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: auto;
}
.post-card__tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 4px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.blog-empty {
  max-width: 680px; margin: 48px auto 96px;
  padding: 32px 24px;
  text-align: center;
  color: var(--gray);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 1px;
}

/* ─── Blog post ─────────────────────────────────────────── */
.post-hero {
  max-width: 860px; margin: 64px auto 0;
  padding: 48px 24px 24px;
  text-align: center;
  position: relative;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--cyan-glow), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.post-hero__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1.5px;
  color: var(--gray); text-transform: uppercase;
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 18px;
}
.post-hero__meta .dot { color: var(--gray-dim); }
.post-hero__title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.post-hero__lede {
  max-width: 680px; margin: 0 auto;
  color: var(--light-gray);
  font-size: 17px;
}

.post-image {
  max-width: 1020px; margin: 32px auto 0;
  padding: 0 24px;
}
.post-image img {
  width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.post-body {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 24px 64px;
  color: var(--light-gray);
  font-size: 16.5px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.post-body > * { text-wrap: pretty; min-width: 0; }
.post-body p { margin: 0 0 18px; }
.post-body p strong { color: var(--white); font-weight: 600; }
.post-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  line-height: 1.2;
  color: var(--white);
  scroll-margin-top: 110px;
}
.post-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 600;
  margin: 32px 0 12px;
  color: var(--white);
  letter-spacing: -0.005em;
}
.post-body ul, .post-body ol {
  margin: 0 0 22px; padding-left: 0; list-style: none;
}
.post-body ul li, .post-body ol li {
  position: relative;
  padding: 6px 0 6px 22px;
  line-height: 1.65;
}
.post-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 15px;
  width: 8px; height: 1px;
  background: var(--cyan); opacity: .7;
}
.post-body ol { counter-reset: postlist; }
.post-body ol li { counter-increment: postlist; }
.post-body ol li::before {
  content: counter(postlist, decimal-leading-zero);
  position: absolute; left: 0; top: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--cyan);
}
.post-body blockquote {
  margin: 28px 0;
  padding: 16px 22px;
  background: var(--cyan-dim);
  border-left: 2px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  color: var(--white);
  font-size: 16px;
}
.post-body a { color: var(--cyan); }
.post-body a:hover { color: var(--cyan-bright); }
.post-body img {
  max-width: 100%; height: auto;
  border-radius: 12px; border: 1px solid var(--border);
  margin: 24px 0;
}
.post-body pre {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 20px 0;
}
.post-body pre code {
  background: transparent; border: 0; padding: 0; color: var(--light-gray);
  font-size: 13.5px; line-height: 1.6;
}

/* Quick answers — stacked, visible by default, NOT accordion */
.quick-answers {
  max-width: 760px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.quick-answers__head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); text-transform: uppercase;
  margin: 0 0 14px;
}
.quick-answers__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
.quick-answers__q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--white);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.quick-answers__a {
  margin: 0;
  color: var(--light-gray);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* AI search button group (in-article CTA row) */
.ai-search-buttons {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.ai-search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--cyan-glow);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ai-search-btn:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--cyan-dim);
}

/* Author block (rendered above quick-answers and above FAQ) */
.post-author {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--light-gray);
  font-size: 15px;
  line-height: 1.6;
}
.post-author p { margin: 0 0 6px; }
.post-author p:last-child { margin-bottom: 0; }
.post-author__name { color: var(--white); font-size: 16px; }
.post-author__title {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}
.post-author__bio { color: var(--light-gray); }
.post-author__bio a { color: var(--cyan); }
.post-author__bio a:hover { color: var(--cyan-bright); }
.post-author__dates {
  color: var(--gray-dim);
  font-size: 13px;
  margin-top: 10px !important;
}

/* Inline callout block (light background, subtle border) */
.post-callout {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 18px 22px 18px 24px;
  background: linear-gradient(180deg, var(--cyan-dim), rgba(0, 212, 255, 0.02));
  border: 1px solid var(--cyan-glow);
  border-left-width: 2px;
  border-left-color: var(--cyan);
  border-radius: 0 12px 12px 0;
}
.post-callout p {
  margin: 0;
  color: var(--white);
  font-size: 15.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* FAQ block (used by post template when faq[] is non-empty) */
.post-faq {
  max-width: 760px; margin: 0 auto 64px; padding: 0 24px;
}
.post-faq h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  color: var(--white);
}
.post-faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: var(--surface);
}
.post-faq details[open] { border-color: var(--cyan-glow); }
.post-faq summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--white);
  list-style: none;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
  content: '+';
  float: right;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  transition: transform .2s var(--ease);
}
.post-faq details[open] summary::after { content: '−'; }
.post-faq .faq-a-inner {
  margin-top: 10px;
  color: var(--light-gray);
  font-size: 15px;
}

/* Post nav (back-to-blog + optional prev/next) */
.post-nav {
  max-width: 760px; margin: 0 auto;
  padding: 24px 24px 96px;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.post-nav a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--light-gray);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.post-nav a:hover {
  border-color: var(--cyan-glow);
  background: var(--cyan-dim);
  color: var(--cyan);
  text-decoration: none;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 720px) {
  .blog-hero { padding: 32px 16px 20px; margin-top: 40px; }
  .blog-grid { padding: 0 16px 64px; gap: 16px; }
  .post-hero { padding: 32px 16px 16px; margin-top: 40px; }
  .post-image { padding: 0 16px; }
  .post-body { padding: 0 16px 48px; font-size: 16px; }
  .post-faq { padding: 0 16px; }
  .post-nav { padding: 16px 16px 72px; }
  .ai-search-buttons { padding: 0 16px; }
  /* Wide data tables: scroll within their own container instead of
     pushing the page wider than the viewport. */
  .post-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
