/* Editorial layer for the TypeCrt blog and long-form pages.
   Loaded AFTER page.css and only adds what prose needs that policy pages do
   not: bylines, a table of contents, pull quotes, verification blocks, post
   cards and end-of-article calls to action.

   Prose here runs slightly wider and looser than a policy page — reading a
   1,500-word article is a different task from scanning a clause — but the
   type scale, colour tokens and chrome are inherited unchanged so the site
   reads as one thing. */

.wrap.article { max-width: 44rem; }

/* --- Article header ------------------------------------------------------ */

.crumbs {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--sub);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.crumbs a { color: var(--sub); }
.crumbs a:hover { color: var(--main); }
.crumbs span { opacity: 0.5; margin: 0 0.35rem; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--sub);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.byline .dot { opacity: 0.4; }

.tag {
  display: inline-block;
  background: rgba(203, 166, 247, 0.12);
  color: var(--main);
  padding: 0.16rem 0.5rem;
  border-radius: 5px;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Article body sits a touch larger than policy prose: this is read, not scanned. */
.article p { font-size: 1rem; line-height: 1.72; }
.article li { font-size: 0.98rem; }

/* --- Table of contents ---------------------------------------------------- */

.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 0 0 2.5rem;
}
.toc-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 0.6rem;
}
.toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.toc li {
  counter-increment: toc;
  padding-left: 1.7rem;
  margin-bottom: 0.38rem;
  font-size: 0.9rem;
  opacity: 1;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--sub);
  opacity: 0.7;
}
.toc a { color: var(--text); opacity: 0.85; }
.toc a:hover { color: var(--main); opacity: 1; text-decoration: none; }

/* --- Evidence blocks ------------------------------------------------------ */

/* Used wherever the article makes a checkable claim. The point is that the
   reader can reproduce it, so the block leads with the method, not the result. */
.verify {
  background: var(--surface-2);
  border: 1px solid rgba(148, 226, 213, 0.22);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
}
.verify-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}
.verify p { font-size: 0.9rem; margin-bottom: 0.6rem; }
.verify p:last-child { margin-bottom: 0; }
.verify ol { margin: 0; padding-left: 1.15rem; }
.verify ol li {
  padding-left: 0.35rem;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  list-style: decimal;
}
.verify ol li::before { display: none; }

.pull {
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 550;
  color: var(--text);
  border-left: 3px solid var(--main);
  padding-left: 1.15rem;
  margin: 2rem 0;
  opacity: 0.95;
}

/* Comparison tables want the verdict colour-coded but never colour-only —
   the glyph carries the meaning for anyone who cannot separate the hues. */
.win { color: var(--accent); font-weight: 600; }
.lose { color: var(--sub); }
.only { color: var(--main); font-weight: 600; }

/* --- End of article ------------------------------------------------------- */

.cta {
  margin: 3rem 0 0;
  padding: 1.85rem 1.75rem;
  background: linear-gradient(150deg, var(--surface) 0%, rgba(203, 166, 247, 0.09) 100%);
  border: 1px solid rgba(203, 166, 247, 0.16);
  border-radius: 16px;
}
.cta h2 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.cta p { margin-bottom: 1.1rem; font-size: 0.94rem; opacity: 0.8; }
.cta-btn {
  display: inline-block;
  background: var(--main);
  color: var(--bg);
  padding: 0.62rem 1.5rem;
  border-radius: 9px;
  font-weight: 620;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), filter 0.18s;
}
.cta-btn:hover { transform: translateY(-1px); filter: brightness(1.08); text-decoration: none; }
.cta-btn:active { transform: translateY(0); }

.related { margin-top: 3rem; }
.related-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sub);
  margin-bottom: 0.85rem;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.card:hover { border-color: rgba(203, 166, 247, 0.4); transform: translateY(-2px); text-decoration: none; }
.card h3 {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}
.card p { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.55rem; line-height: 1.55; }
.card .byline { margin: 0; padding: 0; border: none; font-size: 0.62rem; }

@media (prefers-reduced-motion: reduce) {
  .card, .cta-btn { transition: none; }
  .card:hover, .cta-btn:hover { transform: none; }
}
@media (prefers-contrast: more) {
  .toc, .verify, .cta, .card { border-color: rgba(255, 255, 255, 0.32); }
  .card p, .article p, .article li { opacity: 1; }
}
