/* Shared styles for /answers/* detail pages */
body { font-family: 'Inter', system-ui, sans-serif; }
.ulink { position: relative; transition: color .25s; }
.ulink::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; transition: right .35s cubic-bezier(.2,.7,.2,1);
}
.ulink:hover::after { right: 0; }

.grain::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(244,240,232,.7) 1px, transparent 1px); background-size: 3px 3px;
}

.display-h {
  font-family: 'Fraunces', Georgia, serif; font-weight: 300;
  letter-spacing: -0.025em; line-height: 1.02;
}
.display-h em { font-style: italic; color: #d97842; font-weight: 400; }

.topic-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(26,24,22,0.05); border: 1px solid rgba(26,24,22,0.08);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #4a4541;
}
.topic-pill.dark {
  background: rgba(244,240,232,0.06); border-color: rgba(244,240,232,0.14); color: rgba(244,240,232,0.75);
}
.topic-dot { width: 5px; height: 5px; border-radius: 999px; background: #b85c2a; }

/* TL;DR / accepted answer block - the AI-citation target */
.tldr {
  position: relative; background: #ebe5d8; border: 1px solid rgba(26,24,22,0.08);
  border-left: 3px solid #b85c2a;
  border-radius: 4px; padding: 1.75rem 2rem;
}
.tldr-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #b85c2a;
  margin-bottom: .75rem; display: block;
}
.tldr p {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: #1a1816;
}

/* Article body */
.prose-vb h2 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  margin-top: 3.5rem; margin-bottom: 1.25rem; color: #1a1816;
}
.prose-vb h3 {
  font-family: 'Fraunces', Georgia, serif; font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2;
  margin-top: 2rem; margin-bottom: 0.75rem; color: #1a1816;
}
.prose-vb p {
  font-size: 17px; line-height: 1.7; color: #2c2926; margin-bottom: 1.1rem;
  text-wrap: pretty;
}
.prose-vb ul {
  margin: 1rem 0 1.5rem; padding-left: 1.25rem; list-style: none;
}
.prose-vb ul li {
  position: relative; padding-left: 1rem; margin-bottom: .6rem;
  font-size: 16.5px; line-height: 1.65; color: #2c2926;
}
.prose-vb ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: #b85c2a;
}
.prose-vb strong { color: #1a1816; font-weight: 600; }
.prose-vb a { color: #b85c2a; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(184,92,42,.3); }
.prose-vb a:hover { color: #d97842; text-decoration-color: #d97842; }
.prose-vb blockquote {
  border-left: 2px solid #b85c2a; padding-left: 1.25rem; margin: 1.5rem 0;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 19px; color: #4a4541;
}
.prose-vb table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 15px;
}
.prose-vb th, .prose-vb td {
  text-align: left; padding: .9rem 1rem;
  border-bottom: 1px solid rgba(26,24,22,0.08);
  vertical-align: top;
}
.prose-vb th {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: #4a4541;
  font-weight: 500; background: rgba(26,24,22,0.025);
}
.prose-vb td:first-child { font-weight: 600; color: #1a1816; }
.prose-vb td.num { font-variant-numeric: tabular-nums; }

/* Show-your-work / data callouts */
.data-callout {
  background: #1a1816; color: #f4f0e8; border-radius: 4px;
  padding: 1.5rem 1.75rem; margin: 1.5rem 0;
}
.data-callout .label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #d97842;
  margin-bottom: .6rem;
}
.data-callout p { color: rgba(244,240,232,0.85); font-size: 15.5px; line-height: 1.65; margin-bottom: 0; }
.data-callout p + p { margin-top: .8rem; }

/* TOC sidebar */
.toc { position: sticky; top: 6rem; }
.toc-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: #4a4541;
  margin-bottom: 1rem;
}
.toc ol {
  list-style: none; padding: 0; margin: 0;
  border-left: 1px solid rgba(26,24,22,0.1);
}
.toc li a {
  display: block; padding: .5rem 0 .5rem 1rem;
  font-size: 13.5px; color: #4a4541; line-height: 1.4;
  border-left: 2px solid transparent; margin-left: -1px;
  transition: color .2s, border-color .2s;
}
.toc li a:hover { color: #b85c2a; border-color: #b85c2a; }

/* Related answers */
.related-card {
  display: block; padding: 1.5rem 1.75rem; background: #ebe5d8;
  border: 1px solid rgba(26,24,22,0.06); border-radius: 4px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.related-card:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -24px rgba(26,24,22,.3); }

.vb-soc {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(244,240,232,0.18);
  color: rgba(244,240,232,0.7); transition: background-color .25s, color .25s, border-color .25s;
}
.vb-soc:hover { background: rgba(244,240,232,0.08); color: #f4f0e8; border-color: rgba(244,240,232,0.4); }
