/**
 * Article pages (single.php), since 2.21.0 (2.21.2: side-by-side header on non-video articles). Canvas page "Article page". Loads after category-*.css (the free-report box,
 * whole-image frames and the serif fallback come from there). Named category-article-* on purpose: Perfmatters'
 * Excluded Stylesheets entry "stocktrades-child-73/assets/css/category-" then keeps it render-blocking, so the page
 * doesn't paint unstyled and jump (see MEMORY.md, 2.20.1).
 */

.sta {
    --sta-bg: #0a0a0a;
    --sta-text: #f5f5f2;
    --sta-body: #e4e7ec;
    --sta-text2: #c9ced6;
    --sta-muted: #a3aab6;
    --sta-gold: #f5c518;
    --sta-btn: #f5c518;
    --sta-btn-hover: #ffd43b;
    --sta-line: #232c3b;
    --sta-card: #111722;
    --sta-th: #141b26;
    --sta-td1: #0f141d;
    --sta-row: #1b2230;
    --sta-prem: #0f141c;
    display: block;
    padding-top: 85px;
    background: var(--sta-bg);
    color: var(--sta-text);
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] .sta {
    --sta-bg: #f5f5f5;
    --sta-text: #1a1a1a;
    --sta-body: #2a2f36;
    --sta-text2: #4a4f57;
    --sta-muted: #5f6670;
    --sta-gold: #8a6606;
    --sta-btn: #d4a10a;
    --sta-btn-hover: #e0ad12;
    --sta-line: #e2e5ea;
    --sta-card: #ffffff;
    --sta-th: #eef1f5;
    --sta-td1: #fafbfc;
    --sta-row: #e9edf2;
    --sta-prem: #ffffff;
}
.sta *, .sta *::before, .sta *::after { box-sizing: border-box; }
.sta :where(.sta-hd, .sta-hero, .sta-end, .sta-toc) :where(h1, h2, h3, p, ol, li) { margin: 0; padding: 0; }
.sta :where(.sta-hd, .sta-hero, .sta-end, .sta-toc, .sta-rail) a { text-decoration: none; }
.sta :focus-visible { outline: 3px solid var(--sta-gold); outline-offset: 3px; border-radius: 6px; }
.sta-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.sta .pl-serif { font-family: 'Instrument Serif', 'Instrument Serif Fallback', serif; font-weight: 400; letter-spacing: -0.015em; }

/* ---------- Header ---------- */
.sta-hd { padding-top: 48px; }
.sta .sta-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--sta-muted); }
.sta .sta-crumbs a { color: var(--sta-text2); }
.sta .sta-crumbs a:hover { color: var(--sta-gold); }
.sta .sta-cat { display: inline-flex; align-items: center; min-height: 32px; margin-top: 22px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(245, 197, 24, 0.4); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sta-gold); }
.sta .sta-cat:hover { border-color: var(--sta-gold); }
.sta .sta-h1 { margin-top: 16px; max-width: 960px; font-size: clamp(44px, 4.6vw, 64px); line-height: 1.03; color: var(--sta-text); text-wrap: balance; }
.sta .sta-stand { margin-top: 18px; max-width: 820px; font-size: 20px; line-height: 1.55; color: var(--sta-text2); }
.sta-by { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.sta .sta-av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin: 0; }
.sta .sta-by-name { display: block; font-size: 16px; font-weight: 700; color: var(--sta-text); }
.sta .sta-by-name:hover { color: var(--sta-gold); }
.sta .sta-by-meta { display: block; font-size: 15px; color: var(--sta-muted); }

/* ---------- Non-video articles (2.21.2): words left, the feature image right at its own shape ---------- */
.sta-hd.sta-split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; align-items: center; padding-bottom: 44px; border-bottom: 1px solid var(--sta-line); }
.sta-split .sta-h1 { font-size: clamp(40px, 4vw, 54px); }
.sta-split .sta-stand { font-size: 18px; }
.sta-pic { margin: 0; justify-self: end; }
.sta .sta-pic img { display: block; width: auto; max-width: 100%; height: auto; max-height: 420px; margin: 0; border-radius: 16px; }
.sta-hero-split { margin-top: 0; }
.sta-hero-split .sta-ainote { margin-top: 16px; }

/* ---------- Hero: the video (tier lists), always whole ---------- */
.sta-hero { margin-top: 32px; }
.sta-hero-none { margin-top: 20px; }
.sta-vid, .sta-img { position: relative; display: block; border-radius: 18px; overflow: hidden; }
.sta-vid .stc-media, .sta-img .stc-media { border-radius: 0; }
.sta-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(10, 10, 10, 0.72); border: 2px solid rgba(255, 255, 255, 0.85); display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, background 0.15s ease; }
.sta-vid:hover .sta-play { transform: scale(1.06); background: rgba(10, 10, 10, 0.85); }
.sta-vlabel { position: absolute; left: 20px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(10, 10, 10, 0.75); color: #fff; font-size: 14px; font-weight: 600; }
.sta-vid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.sta .sta-ainote { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--sta-muted); }
.sta-ainote svg { flex: none; margin-top: 2px; }
.sta .sta-ainote a { font-weight: 600; color: var(--sta-gold); }
.sta .sta-ainote a:hover { text-decoration: underline; }

/* ---------- Phones: "In this article", collapsed ---------- */
.sta-toc { display: none; }

/* ---------- Body and rail ---------- */
.sta-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; margin-top: 40px; }
.sta.has-rail .sta-cols { grid-template-columns: minmax(0, 1fr) 320px; }
.sta-body { min-width: 0; max-width: 760px; }
.sta.has-rail .sta-body { max-width: none; }
.sta:not(.has-rail) .sta-body { margin: 0 auto; width: 100%; }

.sta .st-content { font-size: 18px; line-height: 1.75; color: var(--sta-body); }
.sta .st-content > :first-child { margin-top: 0; }
/* The site-wide body p/li rules set white text at a fixed size; articles use a softer body colour */
.sta .st-content p, .sta .st-content li { color: var(--sta-body); font-size: inherit; line-height: inherit; }
.sta .st-content h2 { margin: 52px 0 18px; font-size: 38px; line-height: 1.1; color: var(--sta-text); scroll-margin-top: 110px; }
.sta .st-content h3 { margin: 36px 0 14px; font-size: 27px; line-height: 1.2; color: var(--sta-text); }
.sta .st-content figure { margin: 28px 0; }
.sta .st-content figure img, .sta .st-content > p img { border-radius: 14px; }
.sta .st-content figure img { margin: 0; }
.sta .st-content figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--sta-muted); text-align: left; }
.sta .st-content .wp-block-embed iframe { max-width: 100%; border-radius: 14px; }

/* Tables: scroll sideways in their frame, first column pinned; nothing gets cut off */
.sta .st-content .wp-block-table { overflow: visible; }
.sta .st-content .sta-tw { position: relative; max-width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--sta-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.sta .st-content .wp-block-table .sta-tw { margin: 0; }
.sta .st-content .sta-tw table { width: 100%; min-width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.45; }
.sta .st-content .sta-tw th, .sta .st-content .sta-tw td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--sta-row); text-align: left; vertical-align: top; }
.sta .st-content .sta-tw th, .sta .st-content .sta-tw thead td { background: var(--sta-th); font-size: 13.5px; font-weight: 700; color: var(--sta-text); }
.sta .st-content .sta-tw td { color: var(--sta-text2); }
.sta .st-content .sta-tw tr:last-child td { border-bottom: 0; }
.sta .st-content .sta-tw tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--sta-td1); color: var(--sta-text); font-weight: 600; box-shadow: 1px 0 0 var(--sta-line); }
.sta .st-content .sta-tw thead tr > :first-child, .sta .st-content .sta-tw tr:first-child > th:first-child { background: var(--sta-th); }
.sta .st-content .sta-tw:focus-visible { outline-offset: 2px; }
/* Columns keep a readable width (the table scrolls instead of squeezing text into narrow columns) */
.sta .st-content .sta-tw td, .sta .st-content .sta-tw th { min-width: 7em; }
.sta .st-content .sta-tw tr > :first-child { min-width: 8.5em; }
/* While there's more to the right, the edge fades (class set by article-*.js) */
.sta .st-content .sta-tw.is-more { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }

.sta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.sta .sta-tags a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sta-line); font-size: 14px; color: var(--sta-text2); text-decoration: none; }

/* Rail: the free report (stocks from the article as chips), then a quiet Premium note. Sticky beside the body. */
.sta-rail.stc { align-self: start; position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; padding-top: 0; background: transparent; font-size: 16px; }
.sta-rail .stc-fr { padding: 22px; border-radius: 18px; }
.sta-rail .stc-fr-h { font-size: 20px; }
.stc .stc-fr-sub { margin-top: 8px; font-size: 14px; color: var(--stc-text2); }
.stc .stc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stc .stc-chip, .stc .stc-chip:hover { min-width: 52px; min-height: 40px; margin: 0; padding: 0 12px; border-radius: 10px; border: 1px solid var(--stc-line2); background: var(--stc-field); box-shadow: none; color: var(--stc-gold); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-transform: none; cursor: pointer; }
.stc .stc-chip:hover { border-color: var(--stc-gold); }
.sta-rail .stc-frow { flex-direction: column; }
.sta-rail .stc-frow .stc-fwrap { position: relative; }
.sta-rail .stc-go { width: 100%; }
.sta-rail .stc-incl { display: none; }
.sta-mini { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--sta-line); background: var(--sta-prem); }
.sta .sta-mini p { margin: 0; font-size: 16px; font-weight: 600; color: var(--sta-text); }
.sta .sta-mini p span { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--sta-text2); }
.sta .sta-mini a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; font-weight: 700; color: var(--sta-gold); }

/* ---------- End of the article ---------- */
.sta-end { margin-top: 56px; }
.sta-author { display: flex; gap: 22px; align-items: center; padding: 24px; border-radius: 18px; border: 1px solid var(--sta-line); background: var(--sta-card); }
.sta .sta-av-lg { width: 88px; height: 88px; flex: none; margin: 0; border-radius: 50%; object-fit: cover; border: 2px solid rgba(245, 197, 24, 0.6); }
.sta .sta-author-name { font-size: 19px; font-weight: 700; color: var(--sta-text); }
.sta .sta-author-role { margin-top: 2px; font-size: 14px; color: var(--sta-muted); }
.sta .sta-author-bio { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--sta-text2); }
.sta .sta-author-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
.sta .sta-author-links a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; font-weight: 700; color: var(--sta-gold); }
.sta-comments { margin-top: 40px; }
.sta-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 56px; padding-bottom: 14px; border-bottom: 1px solid var(--sta-line); }
.sta .sta-sh h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sta-text2); }
.sta .sta-sh a { font-size: 15px; font-weight: 700; color: var(--sta-gold); }
.sta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.sta-card { position: relative; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--sta-line); background: var(--sta-card); overflow: hidden; transition: border-color 0.2s ease; }
.sta-card:hover { border-color: rgba(245, 197, 24, 0.5); }
.sta-card:has(h3 a:focus-visible) { outline: 3px solid var(--sta-gold); outline-offset: 3px; }
.sta-cb { padding: 16px 18px 18px; }
.sta .sta-card h3 { font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--sta-text); }
.sta .sta-card h3 a, .sta .sta-card h3 a:visited { color: var(--sta-text); text-decoration: none; }
.sta .sta-card:hover h3 a { color: var(--sta-gold); }
.sta .sta-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sta .sta-card h3 a:focus-visible { outline: none; }
.sta .sta-dt { margin-top: 10px; font-size: 14px; color: var(--sta-muted); }
.sta-prem { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; margin: 56px 0 88px; padding: 26px 30px; border-radius: 20px; border: 1px solid var(--sta-line); background: var(--sta-prem); }
.sta .sta-prem p { font-size: 19px; font-weight: 600; color: var(--sta-text); text-wrap: balance; }
.sta .sta-prem p span { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--sta-text2); text-wrap: pretty; }
.sta .sta-btn, .sta .sta-btn:visited { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; background: var(--sta-btn); color: #111; font-size: 16px; font-weight: 700; }
.sta .sta-btn:hover { background: var(--sta-btn-hover); color: #111; }
.sta:not(.has-rail) .sta-end { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1150px) {
    .sta { padding-top: 0; } /* the body already clears the 73px nav */
}
@media (max-width: 1100px) {
    .sta.has-rail .sta-cols { grid-template-columns: minmax(0, 1fr) 290px; gap: 0 36px; }
    .sta-hd.sta-split { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
}
@media (max-width: 900px) {
    .sta-hd.sta-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .sta-pic { justify-self: start; }
    .sta .sta-pic img { max-height: 460px; }
    .sta.has-rail .sta-cols { grid-template-columns: minmax(0, 1fr); }
    .sta-rail.stc { position: static; margin-top: 40px; }
    .sta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sta-grid .sta-card:nth-child(3) { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
    .sta-wrap { padding: 0 18px; }
    .sta-hd { padding-top: 8px; }
    .sta .sta-crumbs a, .sta .sta-crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
    .sta .sta-cat { display: none; }
    .sta .sta-h1 { margin-top: 4px; font-size: 36px; line-height: 1.06; }
    .sta .sta-stand { margin-top: 12px; font-size: 16.5px; }
    .sta-by { margin-top: 16px; gap: 12px; }
    .sta .sta-av { width: 42px; height: 42px; }
    .sta .sta-by-meta { font-size: 14px; }
    .sta .sta-by-name { display: inline-flex; align-items: center; min-height: 32px; }
    .sta .sta-sh a { display: inline-flex; align-items: center; min-height: 44px; }
    .sta-hero { margin-top: 20px; }
    .sta-hero-split { margin-top: 0; }
    .sta-hd.sta-split { gap: 20px; padding-bottom: 28px; }
    .sta .sta-pic img { border-radius: 14px; max-height: none; width: 100%; }
    .sta-split .sta-h1 { font-size: 36px; }
    .sta-vid, .sta-img { border-radius: 14px; }
    .sta-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
    .sta-play svg { width: 26px; height: 26px; }
    .sta-vlabel { display: none; }
    .sta .sta-ainote { font-size: 13.5px; }
    .sta-toc { display: block; margin-top: 20px; border: 1px solid var(--sta-line); border-radius: 14px; background: var(--sta-card); }
    .sta-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; font-weight: 700; color: var(--sta-text); list-style: none; cursor: pointer; }
    .sta-toc summary::-webkit-details-marker { display: none; }
    .sta-toc summary::after { content: ""; width: 9px; height: 9px; margin-left: 12px; border-right: 2px solid var(--sta-muted); border-bottom: 2px solid var(--sta-muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s ease; }
    .sta-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
    .sta-toc summary span { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--sta-muted); }
    .sta-toc ol { list-style: none; padding: 0 8px 10px; }
    .sta .sta-toc li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; border-radius: 8px; font-size: 15px; color: var(--sta-text2); }
    .sta-tier { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #111; }
    .sta-tS { background: #22c55e; } .sta-tA { background: #84cc16; } .sta-tB { background: #facc15; } .sta-tC { background: #fb923c; } .sta-tD { background: #f97316; } .sta-tE { background: #ef4444; color: #fff; } .sta-tF { background: #b91c1c; color: #fff; }
    .sta-dot { flex: none; width: 24px; display: flex; justify-content: center; color: var(--sta-muted); }
    .sta-cols { margin-top: 24px; }
    .sta .st-content { font-size: 17px; line-height: 1.72; }
    .sta .st-content h2 { margin: 40px 0 14px; font-size: 31px; scroll-margin-top: 90px; }
    .sta .st-content h3 { font-size: 24px; }
    .sta .st-content .sta-tw table { font-size: 14px; }
    .sta .st-content .sta-tw th, .sta .st-content .sta-tw td { padding: 10px 12px; }
    .sta-rail.stc { margin-top: 36px; }
    .sta-rail .stc-chip { min-height: 44px; min-width: 56px; font-size: 15px; }
    .sta-author { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
    .sta .sta-av-lg { width: 64px; height: 64px; }
    .sta-sh { margin-top: 40px; }
    .sta-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; }
    .sta-grid .sta-card:nth-child(3) { display: flex; }
    .sta-card { flex-direction: row; align-items: center; gap: 14px; border: 0; background: transparent; border-radius: 0; overflow: visible; }
    .sta-card .stc-media { width: 132px; flex: none; border-radius: 10px; }
    .sta-cb { padding: 0; }
    .sta .sta-card h3 { font-size: 15.5px; }
    .sta .sta-dt { margin-top: 4px; font-size: 13px; }
    .sta-prem { flex-direction: column; align-items: stretch; margin: 36px 0 56px; padding: 20px; border-radius: 16px; }
    .sta .sta-prem p { font-size: 18px; }
    .sta .sta-btn { width: 100%; }
}
