/* ==========================================================================
   HustleOS — single.css: article, Opportunity Snapshot, callouts, steps
   ========================================================================== */

/* Reading progress: rising chart line */
.rp { position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 22px; pointer-events: none; }
.rp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rp .dim polyline { fill: none; stroke: var(--border-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .6; }
.rp-clip { position: absolute; inset: 0; overflow: hidden; transform: translateX(calc((var(--p, 0) - 1) * 100%)); }
.rp-clip svg { transform: translateX(calc((1 - var(--p, 0)) * 100%)); }
.rp-clip polyline { fill: none; stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--primary) 60%, transparent)); }
.rp-clip polygon { fill: color-mix(in srgb, var(--primary) 12%, transparent); }

.article-wrap { padding-top: clamp(22px, 4vw, 44px); }
.article-head { max-width: 880px; margin-bottom: 22px; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.06; letter-spacing: -.03em; margin: 12px 0 16px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .875rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .i { width: 15px; height: 15px; }
.article-meta .avatar { width: 30px; height: 30px; border-radius: 50%; }
.article-meta a { color: var(--text); text-decoration: none; font-weight: 600; }
.updated-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-weight: 700; font-size: .8125rem; border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.article-hero { margin: 0 0 28px; max-width: 980px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero figcaption { padding: 8px 12px; margin: 0; background: var(--raised); }

/* Opportunity Snapshot */
.snapshot { max-width: 980px; margin: 0 0 32px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.snapshot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.snapshot-head .label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.snapshot-head .label .i { width: 15px; height: 15px; color: var(--primary); }
.snapshot-head .name { font-family: var(--f-head); font-size: 1.25rem; font-weight: 750; margin: 0; }
.snapshot-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.snapshot-body { display: grid; grid-template-columns: 210px 1fr; }
.snap-score { display: grid; place-items: center; gap: 4px; padding: 20px; border-right: 1px solid var(--border); text-align: center; }
.gauge { position: relative; width: 132px; height: 132px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 10; }
.gauge .track { stroke: var(--subtle); }
.gauge .val { stroke: var(--vc, var(--primary)); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: calc(339.3 - 339.3 * var(--g, 0)); }
.gauge .num { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--f-head); font-weight: 800; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge .num small { display: block; font-family: var(--f-body); font-size: .75rem; font-weight: 600; color: var(--muted); margin-top: 4px; }
.snap-score .cap { font-size: .8125rem; color: var(--muted); }
.snap-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.snap-stat { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.snap-stat:nth-child(odd) { border-right: 1px solid var(--border); }
.snap-stat:nth-last-child(-n+2) { border-bottom: 0; }
.snap-stat .k { display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.snap-stat .k .i { width: 14px; height: 14px; }
.snap-stat .v { display: block; margin: 4px 0 10px; font-family: var(--f-head); font-size: 1.375rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.snap-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.snap-meter i { height: 8px; border-radius: 3px; background: var(--subtle); position: relative; overflow: hidden; }
.snap-meter i::after { content: ""; position: absolute; inset: 0; background: var(--mc, var(--primary)); transform-origin: left; transform: scaleX(0); transition: transform 600ms var(--ease-out); }
.snap-meter i.on::after { transform: scaleX(1); }
.js .snapshot:not(.is-in) .snap-meter i.on::after { transform: scaleX(0); }
.snap-meter i.on:nth-child(2)::after { transition-delay: 120ms; } .snap-meter i.on:nth-child(3)::after { transition-delay: 240ms; }
.js .snapshot:not(.is-in) .gauge .val { stroke-dashoffset: 339.3; }
.gauge .val { transition: stroke-dashoffset 900ms var(--ease-out); }
.snapshot-foot { padding: 10px 18px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.snapshot-foot .i { width: 14px; height: 14px; margin-top: 2px; flex: none; }
@media (max-width: 680px) { .snapshot-body { grid-template-columns: 1fr; } .snap-score { border-right: 0; border-bottom: 1px solid var(--border); } }
@media (max-width: 420px) { .snap-stats { grid-template-columns: 1fr; } .snap-stat:nth-child(odd) { border-right: 0; } .snap-stat:nth-last-child(2) { border-bottom: 1px solid var(--border); } }

/* Layout */
.article-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: clamp(22px, 3vw, 44px); align-items: start; }
.article-grid.no-toc { grid-template-columns: minmax(0, 1fr) 320px; }
.article-main { min-width: 0; }
@media (max-width: 1240px) { .article-grid { grid-template-columns: minmax(0, 1fr) 320px; } .article-grid .sidebar { grid-column: 2; grid-row: 1 / span 3; } }
@media (max-width: 1024px) { .article-grid, .article-grid.no-toc { grid-template-columns: 1fr; } .article-grid .sidebar { grid-column: auto; grid-row: auto; } }

.toc { position: sticky; top: calc(var(--header-h) + 60px); max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; padding: 14px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r); font-size: .875rem; }
.toc summary { display: flex; align-items: center; gap: 8px; min-height: 40px; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { margin-left: auto; transition: transform var(--dur); }
.toc details[open] summary .chev { transform: rotate(180deg); }
.toc ol { list-style: none; margin: 6px 0 0; padding: 0; }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid var(--border); color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); }
.toc a.is-active { border-color: var(--primary); color: var(--text); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.toc .toc-h3 a { padding-left: 22px; font-size: .8125rem; }
@media (max-width: 1240px) { .toc { position: static; max-height: none; margin-bottom: 24px; } }

/* Entry content */
.entry-content { max-width: 70ch; font-size: clamp(1.03rem, 1rem + .2vw, 1.125rem); line-height: 1.75; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 70px); }
.entry-content h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.4rem); margin-top: 1.6em; scroll-margin-top: calc(var(--header-h) + 70px); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--primary); }
.entry-content ol li::marker { color: var(--primary); font-weight: 700; font-family: var(--f-mono); }
.entry-content img { border-radius: var(--r); }
.entry-content figure { margin-inline: 0; }
.entry-content blockquote { margin-inline: 0; padding: 16px 20px; border-left: 3px solid var(--primary); background: var(--raised); border-radius: 0 var(--r) var(--r) 0; font-size: 1.125rem; }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 6px; font-size: .875rem; color: var(--muted); font-style: normal; }
.entry-content code { font-family: var(--f-mono); font-size: .88em; padding: 2px 6px; border-radius: 5px; background: var(--subtle); }
.entry-content pre { padding: 16px; border-radius: var(--r); background: var(--term-bg); color: var(--term-text); overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }

/* Tables (comparison: add class "is-winner" to a th/td to highlight) */
.table-scroll, .entry-content .wp-block-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--raised); -webkit-overflow-scrolling: touch; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; margin: 0; font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content thead th { background: var(--subtle); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.entry-content tbody tr:hover td { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.entry-content td:first-child { font-weight: 650; }
.entry-content .is-winner { box-shadow: inset 0 0 0 1px var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }

/* Callouts: pro-tip, warning, real-numbers, step */
.callout, .is-style-pro-tip, .is-style-warning, .is-style-real-numbers, .is-style-step {
	--c: var(--primary); position: relative; margin: 1.6em 0; padding: 14px 18px 14px 18px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--border)); border-left: 3px solid var(--c);
	border-radius: var(--r); background: color-mix(in srgb, var(--c) 8%, var(--raised)); font-size: 1rem; line-height: 1.7;
}
.callout > :last-child, [class*="is-style-"] > :last-child { margin-bottom: 0; }
.callout-title, .is-style-pro-tip::before, .is-style-warning::before, .is-style-real-numbers::before, .is-style-step::before {
	display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c);
}
.callout-title .i { width: 15px; height: 15px; }
.callout.pro-tip, .is-style-pro-tip { --c: var(--primary); }
.callout.warning, .is-style-warning { --c: var(--danger); }
.callout.real-numbers, .is-style-real-numbers { --c: var(--secondary); font-variant-numeric: tabular-nums; }
.callout.step, .is-style-step { --c: var(--accent); }
.is-style-pro-tip::before { content: "Pro tip"; } .is-style-warning::before { content: "Warning"; } .is-style-real-numbers::before { content: "Real numbers"; } .is-style-step::before { content: "Step"; }

/* Step checklist (shortcode [steps] or List block style "Step checklist") */
.steps { list-style: none; padding: 0 !important; counter-reset: st; display: grid; gap: 10px; margin: 1.6em 0; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px 16px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r); margin: 0; counter-increment: st; transition: border-color 200ms, opacity 200ms; }
.steps li::marker { content: ""; }
.steps .step-check { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px 0 0 -6px; cursor: pointer; }
.steps .step-check input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.steps .step-check span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border-strong); font-family: var(--f-mono); font-size: .8125rem; font-weight: 700; color: var(--muted); }
.steps .step-check span::before { content: counter(st); }
.steps .step-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.steps li.is-done { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.steps li.is-done .step-check span { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.steps li.is-done .step-check span::before { content: "✓"; }
.steps li.is-done .step-body { opacity: .7; }
.steps .step-title { display: block; font-weight: 700; font-family: var(--f-head); font-size: 1.0625rem; margin-bottom: 2px; }
.steps .step-body > :last-child { margin-bottom: 0; }
.steps-progress { font-family: var(--f-mono); font-size: .75rem; color: var(--muted); margin: -6px 0 1.6em; }

/* Pros / cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.6em 0; }
.pros-cons > div { padding: 16px 18px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--border); }
.pros-cons h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; }
.pros-cons ul { list-style: none; margin: 0; padding: 0; }
.pros-cons li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: .9375rem; line-height: 1.55; }
.pros-cons li .i { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; }
.pros-cons .pros { border-top: 3px solid var(--primary); } .pros-cons .pros .i { color: var(--primary); }
.pros-cons .cons { border-top: 3px solid var(--danger); } .pros-cons .cons .i { color: var(--danger); }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

/* Verdict box */
.verdict-box { --vc: var(--primary); margin: 2em 0; padding: 18px 20px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--vc) 55%, var(--border)); background: color-mix(in srgb, var(--vc) 8%, var(--raised)); }
.verdict-box.v-mixed { --vc: var(--secondary); } .verdict-box.v-avoid { --vc: var(--danger); }
.verdict-box .vb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.verdict-box .vb-head h4 { margin: 0; font-size: 1.25rem; }
.verdict-box .vb-score { margin-left: auto; font-family: var(--f-head); font-weight: 800; font-size: 1.5rem; color: var(--vc); font-variant-numeric: tabular-nums; }
.verdict-box .vb-score small { font-size: .875rem; color: var(--muted); font-weight: 600; }
.verdict-box p:last-child { margin-bottom: 0; }

/* Affiliate links */
.entry-content a[rel~="sponsored"], .entry-content a.affiliate { text-decoration-style: dashed; }
.aff-note { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--subtle); border: 1px solid var(--border); color: var(--muted); font-size: .68em; font-weight: 600; vertical-align: .15em; line-height: 1.5; }
.aff-disclosure { display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: var(--r); background: var(--raised); border: 1px dashed var(--border-strong); color: var(--muted); font-size: .875rem; line-height: 1.55; }
.aff-disclosure .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* Share */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0; }
.share-row .label { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border-radius: var(--r); border: 1px solid var(--border); background: var(--raised); color: var(--text); font-weight: 600; font-size: .875rem; text-decoration: none; transition: border-color 150ms, transform 150ms; }
.share-btn:hover { border-color: var(--primary); transform: translateY(-1px); text-decoration: none; }

/* Author, nav, related */
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 18px; margin: 32px 0; padding: 20px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--r); }
.author-box img, .author-box .avatar { width: 80px; height: 80px; border-radius: 12px; }
.author-box .kicker { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.author-box h2 { font-size: 1.375rem; margin: 2px 0 6px; }
.author-box p { margin: 0; color: var(--muted); font-size: .9375rem; }
@media (max-width: 520px) { .author-box { grid-template-columns: 1fr; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; }
.post-nav a { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 650; line-height: 1.35; transition: border-color 150ms; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.post-nav .next { text-align: right; justify-items: end; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.entry-tags { margin-top: 20px; }
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.625rem; }

/* Comments */
.comments-area { margin-top: 48px; max-width: 70ch; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list .children { list-style: none; padding-left: clamp(14px, 4vw, 36px); }
.comment-body { margin-bottom: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--border); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.comment-author .avatar { border-radius: 8px; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .78rem; margin: 2px 0 8px; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { font-size: .9375rem; }
.reply a { font-weight: 650; font-size: .8125rem; }
.comment-respond { padding: 20px; border-radius: var(--r); background: var(--raised); border: 1px solid var(--border); }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; min-height: 46px; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--bg); color: var(--text); }
.comment-form textarea:focus, .comment-form input:focus { outline: none; border-color: var(--primary); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; }
.form-submit .submit { min-height: 46px; padding: 10px 20px; border: 0; border-radius: var(--r); background: var(--primary); color: var(--on-primary); font-weight: 650; }
