/* CampbellStocks article typography. Upload to /assets/cs-article.css
   Scoped to article pages only: .article-body (news + blog) and .review-text (books). */
:root{--cs-ink:#161a22;--cs-body:#1f2430;--cs-muted:#5b6472;--cs-line:#e3e6eb;--cs-red:#ea1e20;--cs-serif:'Source Serif 4','Source Serif Pro',Georgia,'Times New Roman',serif;--cs-sans:'Inter','Segoe UI',system-ui,-apple-system,Arial,sans-serif}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* ---- headline ---- */
body .article-title,
body .review-container .review-content h1{
  font-family:var(--cs-serif);font-weight:700;color:var(--cs-ink);
  font-size:clamp(1.65rem,1.2rem + 2vw,2.35rem);line-height:1.18;letter-spacing:-.01em;margin:0 0 12px;text-wrap:balance}
body .article-meta{font-family:var(--cs-sans);font-size:.85rem;color:var(--cs-muted);padding:10px 0;margin-bottom:16px;border-top:1px solid var(--cs-line);border-bottom:1px solid var(--cs-line)}

/* ---- body copy ---- */
body .article-body,
body .review-text{font-family:var(--cs-serif);color:var(--cs-body);font-size:1.125rem;line-height:1.62;max-width:46rem;font-kerning:normal;overflow-wrap:break-word;hyphens:manual}
body .article-body p,
body .review-text p{font-family:inherit;font-size:1.125rem;line-height:1.62;color:var(--cs-body);margin:0 0 1.05em}
body .article-body p:empty,
body .review-text p:empty{display:none}

/* pasted Word / Docs styling: neutralise inline fonts, sizes, colours, backgrounds */
body .article-body :where(p,span,div,li,td,font,strong,em,b,i)[style],
body .review-text :where(p,span,div,li,td,font,strong,em,b,i)[style]{
  font-family:inherit !important;font-size:inherit !important;line-height:inherit !important;
  background:none !important;text-indent:0 !important;margin-left:0}
body .article-body :where(p,span,li,td,font)[style]:not(a),
body .review-text :where(p,span,li,td,font)[style]:not(a){color:inherit !important}
body .article-body font[face],body .article-body font[size],body .review-text font[face],body .review-text font[size]{font-family:inherit;font-size:inherit}

/* standfirst (the summary line) */
body .article-body .cs-summary,
body .review-text > p:first-child{font-family:var(--cs-sans);font-weight:600;font-size:1.18rem;line-height:1.45;color:var(--cs-ink);margin:0 0 1.2em;padding-bottom:1em;border-bottom:1px solid var(--cs-line)}
body .article-body .cs-summary strong{font-weight:inherit}

/* subheads like Reuters / AP */
body .article-body h2,body .review-text h2{font-family:var(--cs-sans);font-weight:800;font-size:1.3rem;line-height:1.25;color:var(--cs-ink);margin:1.7em 0 .55em;letter-spacing:-.005em}
body .article-body h3,body .review-text h3{font-family:var(--cs-sans);font-weight:700;font-size:1.05rem;line-height:1.3;color:var(--cs-ink);margin:1.5em 0 .5em;text-transform:uppercase;letter-spacing:.03em}
body .article-body h2[style],body .article-body h3[style]{font-size:inherit !important}

/* links, lists, quotes */
body .article-body a:not(.cs-nl-btn),body .review-text a:not(.cs-nl-btn){color:var(--cs-ink);text-decoration:underline;text-decoration-color:var(--cs-red);text-decoration-thickness:2px;text-underline-offset:3px}
body .article-body a:hover,body .review-text a:hover{color:var(--cs-red)}
body .article-body ul,body .article-body ol,body .review-text ul,body .review-text ol{margin:0 0 1.1em;padding-left:1.35em}
body .article-body li,body .review-text li{margin:0 0 .45em;line-height:1.55}
body .article-body li::marker,body .review-text li::marker{color:var(--cs-red)}
body .article-body blockquote,body .review-text blockquote{margin:1.4em 0;padding:.2em 0 .2em 1.1em;border-left:4px solid var(--cs-red);font-size:1.15rem;line-height:1.5;font-style:italic;color:var(--cs-ink)}
body .article-body blockquote p{margin:0}
body .article-body hr,body .review-text hr{border:0;border-top:1px solid var(--cs-line);margin:2em 0}
body .article-body img,body .review-text img{max-width:100%;height:auto;border-radius:4px}
body .article-body figure{margin:1.4em 0}
body .article-body figcaption{font-family:var(--cs-sans);font-size:.82rem;color:var(--cs-muted);margin-top:6px}

/* tables scroll sideways on phones instead of squashing */
body .article-body table,body .review-text table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-family:var(--cs-sans);font-size:.92rem;line-height:1.4;margin:1.3em 0}
body .article-body th,body .review-text th{background:#f3f4f6;font-weight:700;text-align:left}
body .article-body th,body .article-body td,body .review-text th,body .review-text td{padding:8px 10px;border:1px solid var(--cs-line);vertical-align:top;white-space:normal;min-width:84px}

/* analysis box, source line, disclaimer */
body .article-body .cs-analysis{font-family:var(--cs-sans);background:#fdf2f2;border-left:4px solid var(--cs-red);border-radius:6px;padding:14px 16px;margin:1.6em 0}
body .article-body .cs-analysis h3{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--cs-red);margin:0 0 6px}
body .article-body .cs-analysis p{font-family:var(--cs-sans);font-size:1rem;line-height:1.55;margin:0}
body .article-body .cs-source{font-family:var(--cs-sans);font-size:.85rem;color:var(--cs-muted);margin:1.2em 0}
body .article-body .cs-disclaimer,body .review-text .cs-disclaimer{font-family:var(--cs-sans);font-size:.8rem;line-height:1.5;color:var(--cs-muted);background:none;border-left:0;border-top:1px solid var(--cs-line);padding:12px 0 0;margin:1.8em 0 1em}

/* phones */
@media (max-width:600px){
  body .article-body,body .review-text,body .article-body p,body .review-text p{font-size:1.06rem;line-height:1.6}
  body .article-body .cs-summary{font-size:1.1rem}
  body .article-body h2,body .review-text h2{font-size:1.2rem}
}

/* dark mode */
body.dark-mode .article-title,body.dark-mode .review-container .review-content h1,body.dark-mode .article-body h2,body.dark-mode .article-body h3,body.dark-mode .review-text h2,body.dark-mode .review-text h3,body.dark-mode .article-body .cs-summary,body.dark-mode .review-text > p:first-child,body.dark-mode .article-body blockquote,body.dark-mode .article-body a:not(.cs-nl-btn),body.dark-mode .review-text a:not(.cs-nl-btn){color:#f3f4f6}
body.dark-mode .article-body,body.dark-mode .review-text,body.dark-mode .article-body p,body.dark-mode .review-text p,body.dark-mode .article-body li{color:#dfe3ea}
body.dark-mode .article-meta,body.dark-mode .article-body .cs-source,body.dark-mode .article-body .cs-disclaimer,body.dark-mode .article-body figcaption{color:#a3acb9}
body.dark-mode .article-body .cs-summary,body.dark-mode .article-meta,body.dark-mode .article-body hr,body.dark-mode .article-body th,body.dark-mode .article-body td{border-color:#2f3345}
body.dark-mode .article-body th{background:#242638}
body.dark-mode .article-body .cs-analysis{background:rgba(234,30,32,.12)}

/* callout boxes (editor: Styles > Key takeaway box / Risk note) */
body .article-body .cs-takeaway,body .review-text .cs-takeaway{font-family:var(--cs-sans);background:#f0fdf4;border-left:4px solid #10b981;border-radius:6px;padding:14px 16px;margin:1.5em 0;font-size:1rem;line-height:1.55;color:#14532d}
body .article-body .cs-caution,body .review-text .cs-caution{font-family:var(--cs-sans);background:#fff7ed;border-left:4px solid #f59e0b;border-radius:6px;padding:14px 16px;margin:1.5em 0;font-size:1rem;line-height:1.55;color:#7c2d12}
body .article-body .cs-takeaway p,body .article-body .cs-caution p{font-family:inherit;font-size:inherit;color:inherit;margin:0 0 .6em}
body .article-body .cs-takeaway p:last-child,body .article-body .cs-caution p:last-child{margin:0}
body.dark-mode .article-body .cs-takeaway{background:rgba(16,185,129,.14);color:#d1fae5}
body.dark-mode .article-body .cs-caution{background:rgba(245,158,11,.14);color:#fde68a}
