/* WorkCron · Post (artigo individual) */

/* progress bar topo */
.post-progress {
  position: fixed; left: 0; top: 0; right: 0; height: 3px;
  background: rgba(255,255,255,.05); z-index: 50; pointer-events: none;
}
.post-progress__bar { height: 100%; width: 0%; background: #FF6B35;
  transition: width .12s ease; }

.post { padding-top: 0; }

/* ============== HEADER ============== */
.post-head { padding: 64px 40px 32px; }
.post-head__inner { max-width: 760px; margin: 0 auto; }

.post-breadcrumb { display: flex; gap: 8px; align-items: center;
  font-size: 12.5px; color: var(--text-dim);
  text-transform: lowercase; }
.post-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--text); }
.post-breadcrumb span { opacity: .5; }

.post-title {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 22px 0 22px;
  color: var(--text);
  text-wrap: balance;
}
.post-deck {
  font-size: 19px; line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 660px;
  text-wrap: pretty;
}
.post-meta {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.post-meta__author { display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: var(--text-dim); }
.post-meta__author strong { display: block; color: var(--text); font-weight: 500; }
.post-meta__divider { width: 1px; height: 28px; background: rgba(255,255,255,.08); }
.post-meta__info { display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-dim); text-transform: lowercase; }
.post-meta__sep { opacity: .4; }
.post-meta__cat { color: #FF6B35; font-weight: 500; }

/* ============== COVER ============== */
.post-cover { margin: 0 0 56px; padding: 0 40px; }
.post-cover__inner {
  max-width: 1080px; margin: 0 auto;
  position: relative;
  background: linear-gradient(135deg, #FF6B35, #2a0f05);
  border-radius: 18px;
  aspect-ratio: 16/7;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 32px;
}
.post-cover__pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 100%, transparent, #000 70%);
}
.post-cover__cron {
  position: relative; z-index: 1;
  font-size: 13px; color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.4); padding: 8px 14px; border-radius: 6px;
}
.post-cover__chip {
  position: relative; z-index: 1;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; padding: 6px 12px; border-radius: 99px;
  background: rgba(13,13,16,.4); color: #fff;
  backdrop-filter: blur(8px);
}
.post-cover figcaption {
  text-align: center;
  font-size: 12.5px; color: var(--text-dim); margin-top: 14px;
  text-transform: lowercase;
}

/* ============== LAYOUT ============== */
.post-layout {
  max-width: 1080px; margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* TOC */
.post-toc {
  position: sticky; top: 96px;
  font-size: 13px;
}
.post-toc__label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); margin-bottom: 12px;
}
.post-toc ol { list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  border-left: 1px solid rgba(255,255,255,.08);
  padding-left: 14px;
  counter-reset: toc;
}
.post-toc li { counter-increment: toc; }
.post-toc a {
  color: var(--text-dim); text-decoration: none;
  display: block;
  transition: color .15s, transform .15s;
}
.post-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font: 11px/1 'Geist Mono', monospace;
  color: rgba(255,255,255,.3);
  margin-right: 8px;
}
.post-toc a:hover { color: var(--text); }
.post-toc a.is-current { color: #FF6B35; }
.post-toc__share { margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06); }
.post-toc__share-row { display: flex; gap: 8px; }
.post-toc__share button {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-dim); cursor: pointer;
  font: inherit; font-size: 13px;
  transition: color .15s, border-color .15s, background .15s;
}
.post-toc__share button:hover {
  color: var(--text); border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
}

/* ============== ARTICLE BODY ============== */
.post-body {
  max-width: 660px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #D1D1D6;
}
.post-body > p,
.post-body > ul,
.post-body > ol,
.post-body > blockquote,
.post-body > .post-callout,
.post-body > .post-agents,
.post-body > .post-table,
.post-body > .post-tags,
.post-body > .post-bio {
  margin: 0 0 22px;
}
.post-lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
}
.post-lede::first-letter {
  font-size: 1.4em;
  font-weight: 600;
  color: #FF6B35;
}

.post-body h2 {
  font-family: 'Geist', sans-serif;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 600;
  color: var(--text);
  margin: 56px 0 18px;
  scroll-margin-top: 96px;
}
.post-body h2::before {
  content: ""; display: block;
  width: 32px; height: 2px;
  background: #FF6B35;
  margin-bottom: 14px;
  border-radius: 2px;
}
.post-body h3 {
  font-family: 'Geist', sans-serif;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 12px;
}
.post-body strong { color: var(--text); font-weight: 600; }
.post-body em { font-style: italic; color: var(--text); }
.post-body a {
  color: #FF6B35; text-decoration: none;
  border-bottom: 1px solid rgba(255,107,53,.4);
  transition: border-color .15s;
}
.post-body a:hover { border-bottom-color: #FF6B35; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin: 6px 0; }
.post-body li::marker { color: #FF6B35; }

.post-pull {
  margin: 32px -16px;
  padding: 22px 28px;
  border-left: 3px solid #FF6B35;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text);
  background: linear-gradient(90deg, rgba(255,107,53,.05), transparent 60%);
}
.post-pull cite {
  display: block;
  font-style: normal;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
  font-weight: 500;
}

.post-callout {
  background: rgba(255,107,53,.05);
  border: 1px solid rgba(255,107,53,.25);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: 'Geist', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
}
.post-callout__label {
  display: inline-block;
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 600; color: #FF6B35;
  margin-bottom: 6px;
}
.post-callout p { margin: 0; color: var(--text); }

/* agents grid */
.post-agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-family: 'Geist', sans-serif;
  font-size: 14px; line-height: 1.5;
}
.post-agent {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
}
.post-agent__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-agent__avatar {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--c1, #FF6B35), var(--c2, #2a0f05));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px;
  flex: 0 0 auto;
  font-family: 'Geist Mono', monospace;
  letter-spacing: -.02em;
}
.post-agent__head strong { display: block; color: var(--text); font-weight: 600; font-size: 14px; }
.post-agent__head span { font-size: 12px; color: var(--text-dim); }
.post-agent__head > div { flex: 1 1 auto; }
.post-agent__lvl {
  font-size: 11px; padding: 3px 8px; border-radius: 99px;
  background: rgba(107,212,168,.12); color: #6BD4A8;
  font-weight: 600;
}
.post-agent p { margin: 0; color: var(--text-dim); }

/* table */
.post-table {
  width: 100%; border-collapse: collapse;
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
}
.post-table th, .post-table td {
  text-align: left; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.post-table th {
  background: rgba(255,255,255,.02);
  font-weight: 500; color: var(--text-dim);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
}
.post-table td { color: var(--text); }
.post-table tr:last-child td { border-bottom: 0; }
.post-table__pos { color: #6BD4A8; font-weight: 600; }
.post-table__neutral { color: var(--text-dim); }

/* tags */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: 'Geist', sans-serif;
  margin-top: 56px !important;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.post-tag {
  font-size: 12.5px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  color: var(--text-dim);
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,.1) !important;
  transition: color .15s, border-color .15s;
}
.post-tag:hover { color: var(--text); border-color: rgba(255,255,255,.25) !important; }
.post-tag::before { content: "#"; color: rgba(255,255,255,.3); margin-right: 2px; }

/* author bio */
.post-bio {
  display: flex; gap: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 22px;
  margin-top: 32px !important;
  font-family: 'Geist', sans-serif;
}
.post-bio .blog-avatar { width: 52px; height: 52px; font-size: 18px; }
.post-bio strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.post-bio p { margin: 6px 0 12px; font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }

.post-outro { margin-top: 22px !important; font-size: 17px; }

/* ============== RELATED ============== */
.post-related {
  margin: 100px 0 0;
  padding: 60px 40px 80px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.01);
}
.post-related__inner { max-width: 1180px; margin: 0 auto; }
.post-related .blog-grid { grid-template-columns: repeat(3, 1fr); }

/* ============== CTA ============== */
.post-cta {
  padding: 80px 40px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,107,53,.1), transparent 60%),
    rgba(255,255,255,.01);
}
.post-cta__inner {
  max-width: 680px; margin: 0 auto; text-align: center;
}
.post-cta h3 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15; letter-spacing: -.02em;
  font-weight: 700; color: var(--text);
  margin: 0 0 14px;
}
.post-cta p { color: var(--text-dim); font-size: 16px; margin: 0 0 28px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; gap: 32px; }
  .post-toc { position: static; order: 2; padding: 20px;
    background: rgba(255,255,255,.02); border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06); max-width: 660px; margin: 0 auto; }
  .post-body { order: 1; margin: 0 auto; }
  .post-related .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-agents { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-head, .post-cover, .post-layout { padding-left: 24px; padding-right: 24px; }
  .post-cover__inner { aspect-ratio: 16/9; padding: 18px; }
  .post-pull { margin-left: 0; margin-right: 0; }
  .post-related, .post-cta { padding: 60px 24px; }
  .post-related .blog-grid { grid-template-columns: 1fr; }
}
