/* OFM Career — Static Pages Design System */
/* Dark theme, Inter font, mobile-first */

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

:root {
  --bg: #0A0A0B;
  --surface: #111113;
  --surface-2: #18181B;
  --border: #27272A;
  --text: #E4E4E7;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --accent: #8B5CF6;
  --accent-hover: #7C3AED;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --success: #22C55E;
  --warning: #F59E0B;
  --max-content: 800px;
  --max-wide: 1200px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* ---- CTA BUTTONS ---- */
.cta-button, .cta-button-secondary {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.15s;
  text-align: center;
}
.cta-button {
  background: var(--accent);
  color: #fff;
}
.cta-button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cta-button-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.cta-button-secondary:hover { background: var(--accent-soft); }

/* ---- BREADCRUMBS ---- */
.breadcrumbs {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ---- MAIN CONTENT ---- */
.content-container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.content-container h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff;
}
.content-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
  scroll-margin-top: 5rem;
}
.content-container h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.content-container p { margin-bottom: 1rem; }
.content-container a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.content-container a:hover { color: var(--accent-hover); }
.content-container ul, .content-container ol {
  margin: 0.75rem 0 1.25rem 1.5rem;
}
.content-container li { margin-bottom: 0.4rem; }
.content-container strong { color: #fff; }

/* TLDR / lead paragraph */
.tldr {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

/* Updated date */
.updated-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* ---- TABLE OF CONTENTS ---- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.toc h4 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: 0.35rem; font-size: 0.95rem; }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ---- TABLES ---- */
.content-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
}
.content-container th, .content-container td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.content-container th {
  background: var(--surface);
  font-weight: 600;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.content-container tr:nth-child(even) td { background: var(--surface); }
.content-container tr:hover td { background: var(--surface-2); }

/* ---- FAQ ACCORDION ---- */
.faq-section details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
}
.faq-section summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.faq-section summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-section details[open] summary::after {
  content: '−';
}
.faq-section details > div, .faq-section details > p {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- HIGHLIGHT / STAT BOXES ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Info box */
.info-box {
  background: var(--accent-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.info-box strong { color: var(--accent); }

/* ---- CTA SECTION ---- */
.cta-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-section p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}
.cta-section .cta-button { margin-right: 0.75rem; margin-bottom: 0.5rem; }

/* ---- RELATED ROLES ---- */
.related-roles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.related-roles a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}
.related-roles a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* ---- AUTHOR BOX ---- */
.author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 2rem 0;
}
.author-box img { width: 56px; height: 56px; border-radius: 50%; }
.author-box .author-name { font-weight: 600; color: #fff; }
.author-box .author-role { font-size: 0.85rem; color: var(--text-muted); }

/* ---- RELATED POSTS ---- */
.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.related-posts a {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.related-posts a:hover { border-color: var(--accent); }
.related-posts .post-title { color: #fff; font-weight: 600; margin-bottom: 0.35rem; }
.related-posts .post-desc { color: var(--text-muted); font-size: 0.9rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 1.5rem;
}
.footer-grid {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; line-height: 1.5; }
.footer-brand a { color: var(--accent); text-decoration: none; }
.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-links a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-wide);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- MOBILE STICKY CTA ---- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  text-align: center;
}
.mobile-sticky-cta .cta-button { width: 100%; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .content-container h1 { font-size: 1.75rem; }
  .content-container h2 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-sticky-cta { display: block; }
  .content-container table { font-size: 0.85rem; }
  .content-container th, .content-container td { padding: 0.5rem; }
}
@media (max-width: 480px) {
  .content-container { padding: 1.25rem 1rem 3rem; }
  .content-container h1 { font-size: 1.5rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-roles { grid-template-columns: 1fr; }
}

/* ---- PRINT ---- */
@media print {
  .site-header, .site-footer, .cta-section, .mobile-sticky-cta { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .content-container { max-width: 100%; padding: 0; }
  .content-container a { color: #000; text-decoration: underline; }
  .content-container a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
