/* SponsoredJobs Ghost Theme — shared styles */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --surface-alt: #F2F1EC;
  --border: #E2E0D8;
  --border-strong: #D5D2C7;
  --ink: #0E1320;
  --ink-soft: #1F2937;
  --muted: #5A6472;
  --navy: #0B1220;
  --gold: #F4C842;
  --gold-soft: #FFE9A0;
  --green: #0E7C66;
  --green-bg: #E6F2EE;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-md: 0 6px 20px rgba(11, 18, 32, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --content-w: 680px;
  --container: 1120px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- NAV ---------- */
.site-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand-wordmark { height: 28px; width: auto; display: block; }
.footer-brand__logo { display: inline-flex; align-items: center; margin-bottom: 16px; }
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #a4adc0;
  max-width: 280px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { background: var(--surface-alt); }
.nav-links a.is-active { background: var(--surface-alt); color: var(--ink); }

.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}
.nav-cta:hover { background: #1a2236; }
.nav-cta__arrow { color: var(--gold); }

/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
}
.badge--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: #E2B62E;
}
.badge--outline-green {
  background: transparent;
  color: var(--green);
  border-color: #B7DACE;
}
.badge--outline {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border-strong);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #1a2236; }
.btn--navy .arrow { color: var(--gold); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #f0bf2e; }
.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surface-alt); }

/* ---------- FOOTER ---------- */

.site-footer {
  background: #0C0E12;
  color: #94979C;
  padding: 0 0 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Post-job banner inside footer */
.footer-post-job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 40px;
}
.footer-post-job__copy h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.footer-post-job__copy p {
  color: #94979C;
  font-size: 13.5px;
  max-width: 480px;
  margin: 0;
  line-height: 1.55;
}
.footer-post-job__actions { display: flex; gap: 8px; flex-shrink: 0; }
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
}
.footer-btn--outline:hover { background: rgba(255,255,255,0.06); color: #fff; }
.footer-btn--primary {
  background: var(--gold);
  border: 1px solid transparent;
  color: #0C0E12;
}
.footer-btn--primary:hover { background: #f0bf2e; color: #0C0E12; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 13px;
  color: #94979C;
}
.footer-col a:hover { color: #fff; }

.site-footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #94979C;
  line-height: 1.6;
}
.site-footer__legal p { margin: 0 0 10px; }
.site-footer__copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.site-footer__copy a { color: #94979C; }
.site-footer__copy a:hover { color: #fff; }

/* ---------- BLOG INDEX ---------- */
.blog-hero {
  padding: 72px 0 32px;
}
.blog-hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 700;
  max-width: 760px;
}
.blog-hero h1 .mark {
  background: var(--gold);
  padding: 0 10px;
  border-radius: 6px;
}
.blog-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  margin: 0;
  line-height: 1.55;
}

.tag-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
}
.tag-chip:hover { border-color: var(--border-strong); background: var(--surface-alt); }
.tag-chip.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tag-chip__count { color: var(--muted); font-size: 12px; }
.tag-chip.is-active .tag-chip__count { color: #a4adc0; }

.posts-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.posts-section__head h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.posts-section__head .meta {
  color: var(--muted);
  font-size: 13.5px;
}

/* Featured post card (large) */
.post-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-featured:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-featured__media {
  background: linear-gradient(135deg, #1a2236 0%, #0B1220 100%);
  position: relative;
  min-height: 320px;
  overflow: hidden;
}
.post-featured__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(244, 200, 66, 0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 200, 66, 0.08), transparent 50%);
}
.post-featured__media-label {
  position: absolute;
  top: 20px;
  left: 20px;
  color: rgba(255,255,255,0.7);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-featured__media-glyph {
  position: absolute;
  bottom: -40px;
  right: -10px;
  font-size: 280px;
  line-height: 1;
  font-weight: 800;
  color: rgba(244, 200, 66, 0.15);
  letter-spacing: -0.05em;
}
.post-featured__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.post-featured .post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.post-featured h3 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
.post-featured__excerpt {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}
.post-featured__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.post-featured__foot .dot { margin: 0 8px; }

/* Grid of standard cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.post-card .post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.post-card h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.post-card__excerpt {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-family: "Geist Mono", ui-monospace, monospace;
}
.post-card__foot .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 48px 0 80px;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.pagination a:hover { background: var(--surface-alt); }
.pagination .is-current {
  border-color: var(--border-strong);
  background: var(--surface);
  font-weight: 600;
}
.pagination .nav-arrow {
  color: var(--muted);
  font-size: 13.5px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
}

/* ---------- SINGLE POST ---------- */
.post-header {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--border);
}
.post-header__inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}
.post-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: "Geist Mono", ui-monospace, monospace;
}
.post-header__back:hover { color: var(--ink); }
.post-header__tag { margin-bottom: 20px; }
.post-header h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 700;
  text-wrap: balance;
}
.post-header__lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.post-header__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.byline-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.byline-meta__name { font-weight: 600; color: var(--ink); }
.byline-meta__sub { color: var(--muted); font-size: 13px; }
.byline-meta__sub .dot { margin: 0 6px; }

/* Article body */
.post-content {
  padding: 48px 0 64px;
}
.prose {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2em 0 0.6em;
  color: var(--ink);
  line-height: 1.2;
}
.prose h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 1.6em 0 0.5em;
  color: var(--ink);
}
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.prose a:hover { background: var(--gold-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-style: normal;
}
.prose blockquote p { margin: 0; }
.prose code {
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: "Geist Mono", ui-monospace, monospace;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}
.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 1.6em 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.callout__icon {
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
  font-weight: 700;
}
.callout__body p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.callout__body strong { display: block; margin-bottom: 4px; color: var(--ink); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.8em 0;
}
.stat-grid > div {
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}
.stat-grid > div:last-child { border-right: 0; }
.stat-grid__num {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-grid__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  margin-top: 6px;
}

/* End-of-article CTA banner */
.article-cta {
  margin: 48px auto 0;
  max-width: var(--content-w);
  padding: 0 24px;
}
.article-cta__inner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.article-cta__inner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(244,200,66,0.2), transparent 70%);
}
.article-cta__text { position: relative; }
.article-cta h3 {
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.article-cta p {
  margin: 0;
  color: #a4adc0;
  font-size: 14.5px;
  max-width: 360px;
}
.article-cta .btn { position: relative; flex-shrink: 0; }

/* Tags + share row */
.post-meta-row {
  max-width: var(--content-w);
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.post-meta-row__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-meta-row__share { display: flex; gap: 8px; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}
.share-btn:hover { background: var(--surface-alt); color: var(--ink); }

/* Related posts */
.related {
  background: var(--surface-alt);
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: 22px;
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.related .post-grid { grid-template-columns: repeat(3, 1fr); }
.related .post-card { background: var(--surface); }

/* Responsive */
@media (max-width: 900px) {
  .post-featured { grid-template-columns: 1fr; }
  .post-featured__media { min-height: 200px; }
  .post-grid, .related .post-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-post-job { flex-direction: column; align-items: flex-start; }
  .blog-hero h1 { font-size: 38px; }
  .post-header h1 { font-size: 32px; }
  .nav-links { display: none; }
  .article-cta__inner { flex-direction: column; align-items: flex-start; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat-grid > div:last-child { border-bottom: 0; }
}

/* ---------- KOENIG EDITOR CONTENT ---------- */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 24px);
  margin-right: calc(50% - 50vw + 24px);
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.kg-image { max-width: 100%; border-radius: var(--radius); }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
