/* ==========================================================================
   Operator Network — article pages
   Shared by the long-form explainer pages. Tailwind (CDN) handles the
   header and footer layout; this file holds the article typography plus the
   few custom header/footer styles the other pages define inline.
   ========================================================================== */

html { scroll-behavior: smooth; }
body { font-family: Inter, sans-serif; background: #fff; color: rgb(10, 10, 10); }

/* ---------- Header / footer (same as index.html) ---------- */
.nav-link {
  position: relative; padding: 8px 4px; font-size: .92rem; font-weight: 500;
  color: rgb(64, 64, 64); letter-spacing: .01em; transition: color .3s ease;
}
.nav-link::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px;
  background: rgb(10, 10, 10); border-radius: 2px;
  transition: left .35s cubic-bezier(.16,1,.3,1), right .35s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover { color: rgb(10, 10, 10); }
.nav-link:hover::after { left: 0; right: 0; }
.nav-link.nav-cta {
  color: #fff; background: rgb(10, 10, 10); padding: 10px 20px; border-radius: 999px;
  overflow: hidden; transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
.nav-link.nav-cta span { display: inline-flex; align-items: center; gap: 6px; }

.btn-pop { transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease; }
.btn-pop:hover { transform: translateY(-3px) scale(1.03); }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.footer-link { color: rgb(163, 163, 163); transition: color .25s ease; }
.footer-link:hover { color: #fff; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  color: rgb(212, 212, 212);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.16,1,.3,1);
}
.social-icon:hover { background: #fff; color: rgb(10, 10, 10); border-color: #fff; transform: translateY(-2px); }

.wordmark { font-weight: 800; letter-spacing: -.045em; line-height: .95; transition: letter-spacing .8s cubic-bezier(.16,1,.3,1); }
.wordmark:hover { letter-spacing: -.02em; }
.reveal.wordmark { opacity: 1; transform: none; }
.footer-wordmark { font-size: clamp(3.2rem, 11.5vw, 10rem); line-height: .92; user-select: none; }
.wm-line { display: block; overflow: hidden; }
.wm-inner { display: inline-block; transform: translateY(115%); transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.wm-line:nth-child(2) .wm-inner { transition-delay: .12s; }
.reveal.in-view .wm-inner { transform: translateY(0); }

/* ---------- Article ---------- */
.post {
  --ink: rgb(10, 10, 10);
  --muted: rgb(82, 82, 82);
  --line: rgb(229, 229, 229);
  --soft: rgb(245, 245, 245);
  --accent: rgb(0, 113, 63);
  --accent-soft: rgba(0, 163, 47, .06);
  color: var(--ink);
  padding-bottom: 64px;
}
.post-wrap { max-width: 768px; margin: 0 auto; padding: 0 24px; }

.post-crumbs { font-size: .85rem; color: var(--muted); padding-top: 40px; }
.post-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.post-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgb(190, 190, 190); }
.post-crumbs a { color: var(--muted); text-decoration: none; }
.post-crumbs a:hover { color: var(--ink); text-decoration: underline; }

.post-head { padding: 28px 0 8px; }
.post-kicker {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 500; margin: 0 0 20px;
  background: var(--accent-soft); border: 1px solid rgba(0, 145, 64, .44); color: rgba(0, 113, 63, .87);
}
.post h1 {
  font-size: clamp(2.3rem, 6vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em;
  font-weight: 800; margin: 0 0 20px;
}
.post-dek { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.55; color: var(--muted); margin: 0 0 24px; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 14px; margin: 0;
}
.post-meta strong { color: var(--ink); font-weight: 600; }

.post-answer {
  margin: 32px 0 8px; padding: 24px 26px; border-radius: 1.5rem;
  background: var(--soft); border: 1px solid var(--line);
}
.post-answer h2 {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.post-answer p { font-size: 1.08rem; line-height: 1.68; margin: 0; }
.post-answer p + p { margin-top: 12px; }

.post-toc { margin: 24px 0 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 1.25rem; }
.post-toc p { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.post-toc ol { margin: 0; padding-left: 1.2em; columns: 2 260px; column-gap: 32px; list-style: decimal; }
.post-toc li { font-size: .95rem; line-height: 1.5; margin: 3px 0; break-inside: avoid; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { text-decoration: underline; }

.post-body h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em;
  font-weight: 700; margin: 64px 0 14px; scroll-margin-top: 100px;
}
.post-body h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 600; margin: 32px 0 8px; }
.post-body p, .post-body li { font-size: 1.06rem; line-height: 1.75; color: rgb(38, 38, 38); }
.post-body p { margin: 0 0 16px; }
.post-body ul { list-style: disc; margin: 0 0 18px; padding-left: 1.3em; }
.post-body ol { list-style: decimal; margin: 0 0 18px; padding-left: 1.3em; }
.post-body li { margin: 6px 0; }
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(10,10,10,.3); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body strong { font-weight: 600; color: var(--ink); }

.post-facts { display: grid; grid-template-columns: minmax(150px, 34%) 1fr; margin: 18px 0 28px; border-top: 1px solid var(--line); }
.post-facts dt, .post-facts dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.55; }
.post-facts dt { font-weight: 600; padding-right: 16px; }

.post-table { margin: 20px 0 30px; border: 1px solid var(--line); border-radius: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .94rem; line-height: 1.5; }
.post-table caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--muted); padding: 12px 14px; }
.post-table th, .post-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.post-table thead th { background: var(--soft); font-weight: 600; font-size: .82rem; white-space: nowrap; }
.post-table tbody tr:last-child th, .post-table tbody tr:last-child td { border-bottom: 0; }
.post-table tbody th { font-weight: 600; }
.post-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 1040px) { .post-table.is-wide { margin-left: -120px; margin-right: -120px; } }

.post-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0 12px; }
.post-stat { background: var(--soft); border-radius: 1.25rem; padding: 18px 18px 16px; }
.post-stat b { display: block; font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.post-stat span { display: block; font-size: .86rem; line-height: 1.4; color: var(--muted); margin-top: 8px; }

.post-callout { margin: 26px 0; padding: 22px 24px; border-radius: 1.25rem; border: 1px solid var(--line); }
.post-callout h3 { margin-top: 0; }
.post-callout p:last-child, .post-callout ul:last-child { margin-bottom: 0; }
.post-callout.is-dark { background: rgb(10, 10, 10); border-color: rgb(10, 10, 10); }
.post-callout.is-dark h3, .post-callout.is-dark p, .post-callout.is-dark li, .post-callout.is-dark strong { color: #fff; }
.post-callout.is-dark a { color: #fff; }

.post-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.post-split > div { border: 1px solid var(--line); border-radius: 1.25rem; padding: 18px 20px; }
.post-split h3 { margin-top: 0; }
.post-split ul { margin-bottom: 0; }
.post-split .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

.post-faq { margin: 12px 0 0; border-top: 1px solid var(--line); }
.post-faq details { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 1.05rem; line-height: 1.45; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; font-weight: 400; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details > p { margin: 0 0 18px; }
.post-faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.post-sources ol { padding-left: 1.3em; }
.post-sources li { font-size: .95rem; line-height: 1.55; }

.post-author { display: flex; gap: 18px; align-items: flex-start; margin: 56px 0 0; padding: 22px 24px; border-radius: 1.25rem; background: var(--soft); }
.post-author-mark { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 999px; background: rgb(10,10,10); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; letter-spacing: -.03em; }
.post-author p { margin: 0 0 6px; font-size: .98rem; line-height: 1.6; }
.post-author p:last-child { margin: 0; }

.post-related { margin-top: 56px; }
.post-related h2 { margin-top: 0; }
.post-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.post-related-grid a { display: block; padding: 20px; border-radius: 1.25rem; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s ease, transform .2s ease; }
.post-related-grid a:hover { border-color: rgb(10,10,10); transform: translateY(-2px); }
.post-related-grid span { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.post-related-grid strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.post-related-grid em { display: block; font-style: normal; font-size: .9rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }

@media (max-width: 560px) {
  .post-facts { grid-template-columns: 1fr; }
  .post-facts dt { padding-bottom: 0; border-bottom: 0; }
  .post-author { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-pop:hover { transform: none; }
  .wm-inner { transform: none; transition: none; }
  .wordmark, .wordmark:hover { letter-spacing: -.045em; transition: none; }
  .post-related-grid a { transition: none; }
  .post-related-grid a:hover { transform: none; }
}
