/* ============================================================
   Digital Insight — article pages, "Market Paper" theme
   Loaded together with ../style.css. Same language as the front page:
   hairline rules, flat emerald, no radius, no shadow, no gradient.
   ============================================================ */

.article-main { padding-top: 0; }

.article-hero { padding: 22px 0 26px; border-bottom: 1px solid var(--rule-hard); }

.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .15s ease;
}
.back-link svg { width: 15px; height: 15px; transform: rotate(180deg); }
.back-link:hover { color: var(--accent); text-decoration: none; }

/* category — a flat emerald label with a tick, same as the front page */
.article-cat {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 20px; padding: 0;
  background: none; border-radius: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--accent);
}
.article-cat::before { content: ""; width: 10px; height: 2px; background: var(--accent); }

.article-title {
  font-family: var(--display);
  font-size: clamp(27px, 6.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-top: 12px;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 14px; height: 14px; }

.article-media {
  aspect-ratio: 16 / 9;
  border-radius: 0; overflow: hidden;
  background: var(--paper-2);
  box-shadow: none;
  margin-top: 20px;
}
.article-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- notice ---------- */
.notice {
  margin-top: 22px; padding: 14px 16px;
  border-radius: 0;
  font-size: 13.5px; line-height: 1.58;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 0;
  border-inline-start: 3px solid var(--accent);
}
.notice strong { color: var(--ink); }

/* ---------- article body ---------- */
.article-body {
  counter-reset: art;
  max-width: 66ch;
  margin: 26px auto 0;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
.article-body > p + p { margin-top: 18px; }

.article-body h2 {
  font-family: var(--display);
  font-size: 23px; line-height: 1.26;
  color: var(--ink); letter-spacing: -0.012em;
  margin: 36px 0 10px;
}
.article-body h3 {
  font-family: var(--text);
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  margin: 26px 0 8px;
}
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-body ul,
.article-body ol { list-style: none; margin: 18px 0; }
.article-body li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; font-size: 16px; line-height: 1.65;
}
.article-body li + li { border-top: 1px solid var(--rule); }

/* a short emerald rule, not a checkmark badge */
.article-body ul li::before {
  content: ""; flex: none;
  width: 10px; height: 2px; margin-top: 12px;
  background: var(--accent); border-radius: 0;
}
.article-body ol li::before {
  content: counter(art, decimal-leading-zero);
  counter-increment: art;
  flex: none;
  font-family: var(--display);
  font-size: 15px; font-weight: 600; line-height: 1.7;
  color: var(--accent);
  background: none; border-radius: 0;
  width: auto; height: auto; min-width: 22px;
  display: block;
}

/* ---------- callout ---------- */
.callout {
  margin: 26px 0; padding: 16px 18px;
  border-radius: 0;
  background: var(--accent-soft);
  border: 0;
  border-inline-start: 3px solid var(--accent);
  font-size: 15.5px; line-height: 1.66; color: var(--ink);
}
.callout strong {
  display: block; margin-bottom: 4px;
  font-family: var(--text); font-size: 12.5px; font-weight: 700;
  text-transform: none; letter-spacing: 0;
  color: var(--accent);
}

/* ---------- end-of-article CTA ---------- */
.article-cta {
  margin: 34px auto 0; max-width: 66ch;
  padding-top: 20px; border-top: 1px solid var(--rule-hard);
  text-align: start;
}
.article-cta h3 { font-family: var(--display); font-size: 21px; color: var(--ink); }

/* ---------- related reads ---------- */
.related { padding: 30px 0 6px; border-top: 1px solid var(--rule-hard); }
.related-title { font-family: var(--display); font-size: 21px; color: var(--ink); margin-bottom: 12px; }
.related-grid { display: grid; gap: 0; }

.related-card {
  display: flex; gap: 14px; align-items: center;
  text-decoration: none; color: inherit;
  background: none; border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0; padding: 14px 0;
  transition: none;
  -webkit-tap-highlight-color: transparent;
}
.related-card:last-child { border-bottom: 0; }
.related-card:active { transform: none; }
.related-card img {
  width: 92px; height: 68px; flex: none;
  border-radius: 0; object-fit: cover;
}
.related-card h3 { font-size: 16px; line-height: 1.3; color: var(--ink); font-family: var(--display); }
.related-card p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.related-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 720px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); column-gap: 26px; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--muted); transition: color .15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.breadcrumb .sep { color: var(--muted); opacity: .55; }

/* ---------- share bar ---------- */
.share-bar { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.share-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin-inline-end: 2px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 0;
  display: grid; place-items: center;
  border: 1px solid var(--rule-hard);
  background: transparent; color: var(--ink-2);
  cursor: pointer; text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }
.share-btn.share-copy svg { fill: none; stroke: currentColor; }
.share-btn:hover { color: var(--accent); border-color: var(--accent); transform: none; }
.share-btn:active { transform: none; }
.share-btn.is-copied { color: var(--accent); border-color: var(--accent); }
.share-copy { font: inherit; }

/* ---------- table of contents ---------- */
.toc {
  margin: 24px 0 28px; padding: 16px 0;
  border-radius: 0;
  background: none;
  border-block: 1px solid var(--rule-hard);
}
.toc-title {
  font-family: var(--display); font-size: 15px; font-style: italic; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--muted); margin-bottom: 8px;
}
.toc ol { list-style: none; margin: 0; counter-reset: toc; }
.toc li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border: 0; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  counter-increment: toc;
  font-family: var(--display); font-size: 12.5px; font-weight: 600;
  color: var(--accent);
  flex: none; width: auto; height: auto; margin: 0; background: none;
}
.toc a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .15s ease; }
.toc a:hover { color: var(--accent); }

/* ---------- lead magnet (checklist) page ---------- */
.lead-hero { padding: 30px 0 24px; border-bottom: 1px solid var(--rule-hard); }
.lead-title {
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.14; letter-spacing: -0.018em;
  color: var(--ink); margin-top: 12px;
}
.lead-sub { margin-top: 12px; font-size: 16px; line-height: 1.66; color: var(--ink-2); max-width: 46ch; }

.lead-panel {
  margin-top: 0; padding: 22px 0;
  background: none; border: 0; border-bottom: 1px solid var(--rule-hard);
  border-radius: 0; box-shadow: none;
}
.lead-panel h2 { font-family: var(--display); font-size: 20px; color: var(--ink); margin-bottom: 6px; }

.lead-form .nl-row input {
  flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 14px;
  border: 1px solid var(--rule-hard); border-radius: 0;
  font-size: 15px; background: transparent; color: var(--ink);
}
.lead-form .nl-error { color: var(--flag); min-height: 18px; font-size: 13px; }
.lead-note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.lead-success { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.lead-success svg { width: 18px; height: 18px; }
