/* Shared article styles — matches index.html tokens */
:root {
  --bg: #f9f9f9;
  --bg-white: #ffffff;
  --bg-low: #f2f4f2;
  --primary: #003629;
  --primary-mid: #1B4D3E;
  --primary-lt: #2D6B58;
  --primary-fix: #baeed9;
  --text: #1a1c1c;
  --text-mid: #404945;
  --text-dim: #707974;
  --outline: rgba(0,54,41,0.12);
  --font-head: Georgia, 'Times New Roman', Times, serif;
  --font-body: Georgia, 'Times New Roman', Times, serif;
  --font-mono: Georgia, 'Times New Roman', Times, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding: 2rem 1.25rem 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back:hover { color: var(--primary-lt); }

.article-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.article-header .cat { color: var(--primary-lt); font-weight: 600; }

.article-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-header .lede {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.prose {
  font-size: 0.95rem;
  color: var(--text-mid);
}
.prose p { margin-bottom: 1.1rem; }
.prose h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.25rem 0 0.85rem;
  line-height: 1.25;
}
.prose ul, .prose ol { margin: 0.75rem 0 1.1rem 1.35rem; }
.prose li { margin-bottom: 0.45rem; }
.prose strong { color: var(--text); }
.prose em { font-style: italic; }
.prose hr {
  border: none;
  border-top: 0.5px solid var(--outline);
  margin: 2rem 0;
}
.prose a { color: var(--primary-lt); }
.prose a:hover { color: var(--primary); }

.figure {
  margin: 2rem 0;
  padding: 1.5rem 1.25rem;
  background: var(--bg-white);
  border: 0.5px solid var(--outline);
}
.figure h4 {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.figure figcaption {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.75rem;
}

.bar-row { margin-bottom: 0.85rem; }
.bar-row .row-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.bar-track {
  height: 6px;
  background: var(--bg-low);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 999px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.compare-col h4 {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.compare-col.manual h4 { color: #b45309; }
.compare-col.ai h4 { color: var(--primary-lt); }
.compare-col .line {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  color: var(--text-mid);
}
.compare-col .total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 0.5px solid var(--outline);
  font-weight: 700;
  font-size: 0.95rem;
}
.compare-col.manual .total { color: var(--text-dim); }
.compare-col.ai .total { color: var(--primary); }

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
}
.flow-step .num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}
.flow-step.trad .num { background: var(--bg-low); color: var(--text-dim); }
.flow-step.ai .num { background: rgba(45,107,88,0.15); color: var(--primary); }

.mp-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mp-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.mp-tag {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.mp-tag.cyan { color: #0e7490; background: rgba(14,116,144,0.12); }
.mp-tag.amber { color: #b45309; background: rgba(180,83,9,0.12); }
.mp-tag.blue { color: #1d4ed8; background: rgba(29,78,216,0.1); }
.mp-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(45,107,88,0.4), rgba(45,107,88,0.15));
  position: relative;
}
.mp-line span {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -140%);
  font-size: 0.65rem;
  color: var(--text-dim);
  white-space: nowrap;
}
.mp-orchestrator {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 0.5px solid var(--outline);
  text-align: center;
  font-size: 0.84rem;
  color: var(--primary-mid);
}
