/*
 * FullSwing AI blog system
 *
 * Shared presentation for generated article pages. The rules intentionally
 * standardize the existing post patterns instead of preserving page-specific
 * forks. Load after main.css so article styles win without !important.
 */

/* -------------------------------------------------------------------------- */
/* Theme and foundation                                                       */
/* -------------------------------------------------------------------------- */

:root {
    color-scheme: light;
    --bg-color: #fcfdff;
    --card-bg: #ffffff;
    --card-header-bg: #f6f8fc;
    --navbar-bg: #ffffff;
    --text-color: #0b1020;
    --text-primary: var(--text-color);
    --text-secondary: #566176;
    --text-muted: #667287;
    --nav-item-color: var(--text-secondary);
    --nav-item-hover-color: var(--text-color);
    --border-color: #e5e9f2;
    --border-strong: #ccd4e2;
    --primary-color: #087c8b;
    --btn-primary-bg: var(--primary-color);
    --btn-secondary-bg: #64748b;
    --primary-hover: #066572;
    --primary-soft: rgba(33, 194, 209, 0.1);
    --primary-border: rgba(8, 124, 139, 0.24);
    --accent-cyan: #21c2d1;
    --accent-cyan-soft: #e9fafc;
    --accent-lilac: #8877f4;
    --accent-lilac-soft: #f0edff;
    --uptrend-color: #07865f;
    --success-soft: rgba(16, 185, 129, 0.09);
    --success-border: rgba(16, 185, 129, 0.28);
    --downtrend-color: #dc2626;
    --danger-soft: rgba(239, 68, 68, 0.08);
    --danger-border: rgba(239, 68, 68, 0.25);
    --warning-color: #b45309;
    --hype-color: #db2777;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.3);
    --info-color: #2563eb;
    --info-soft: rgba(37, 99, 235, 0.08);
    --info-border: rgba(37, 99, 235, 0.25);
    --code-bg: #111827;
    --code-text: #e5e7eb;
    --form-input-bg: #ffffff;
    --form-input-border: #dbe1e9;
    --article-width: 1240px;
    --reading-width: 720px;
    --wide-content-width: 1280px;
    --nav-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(29, 43, 69, 0.05), 0 8px 24px rgba(29, 43, 69, 0.04);
    --shadow-md: 0 16px 42px rgba(49, 60, 93, 0.08);
    --shadow-lg: 0 24px 70px rgba(49, 60, 93, 0.12);
    --focus-ring: 0 0 0 3px rgba(33, 194, 209, 0.28);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #071019;
    --card-bg: #0c1722;
    --card-header-bg: #12202d;
    --navbar-bg: #08111b;
    --text-color: #f2f7fb;
    --text-primary: var(--text-color);
    --text-secondary: #adbac8;
    --text-muted: #8493a3;
    --nav-item-color: var(--text-secondary);
    --nav-item-hover-color: var(--text-color);
    --border-color: #243443;
    --border-strong: #385064;
    --primary-color: #63dce5;
    --btn-primary-bg: #087c8b;
    --primary-hover: #0b6976;
    --primary-soft: rgba(33, 194, 209, 0.12);
    --primary-border: rgba(99, 220, 229, 0.3);
    --accent-cyan: #63dce5;
    --accent-cyan-soft: #102d35;
    --accent-lilac: #a99dfb;
    --accent-lilac-soft: #211f3d;
    --uptrend-color: #34d399;
    --success-soft: rgba(52, 211, 153, 0.1);
    --success-border: rgba(52, 211, 153, 0.28);
    --downtrend-color: #f87171;
    --danger-soft: rgba(248, 113, 113, 0.1);
    --danger-border: rgba(248, 113, 113, 0.28);
    --warning-color: #fbbf24;
    --hype-color: #f472b6;
    --warning-soft: rgba(251, 191, 36, 0.1);
    --warning-border: rgba(251, 191, 36, 0.28);
    --info-color: #60a5fa;
    --info-soft: rgba(96, 165, 250, 0.1);
    --info-border: rgba(96, 165, 250, 0.28);
    --code-bg: #05070b;
    --code-text: #e5e7eb;
    --form-input-bg: #0c1017;
    --form-input-border: #343d4d;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.44);
    --focus-ring: 0 0 0 3px rgba(99, 220, 229, 0.32);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blog-post-page {
    background: var(--bg-color);
}

.blog-post-page [id] {
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

a {
    color: var(--primary-color);
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary):focus-visible {
    border-radius: 4px;
    outline: none;
    box-shadow: var(--focus-ring);
}

::selection {
    background: var(--primary-border);
    color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/* Fixed navigation and mobile drawer                                         */
/* -------------------------------------------------------------------------- */

.nav-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

[data-theme="dark"] .nav-header {
    background: rgba(9, 12, 18, 0.9);
}

.nav-content,
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo img {
    display: block;
    width: 120px;
    height: 40px;
    object-fit: contain;
}

.logo-icon,
.logo svg {
    width: 32px;
    height: 32px;
}

[data-theme="dark"] .logo img {
    filter: invert(1);
}

.nav-center,
.nav-items {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link.active::after {
    position: absolute;
    right: 0;
    bottom: -21px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    content: "";
}

.btn,
.btn-primary,
.cta-button,
.download-btn,
.download-btn-secondary {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary,
.cta-button,
.download-btn {
    background: var(--btn-primary-bg);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(67, 56, 202, 0.2);
}

.btn-primary:hover,
.cta-button:hover,
.download-btn:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(67, 56, 202, 0.25);
}

.download-btn-secondary {
    border-color: var(--border-strong);
    background: var(--card-bg);
    color: var(--text-color);
}

.download-btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.theme-toggle,
.mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
    border-color: var(--border-strong);
    background: var(--card-header-bg);
    color: var(--text-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 20px;
}

.mobile-menu-overlay {
    position: fixed;
    z-index: 998;
    inset: var(--nav-height) 0 0;
    display: none;
    background: rgba(15, 23, 42, 0.52);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.mobile-menu-overlay[hidden],
.mobile-menu[hidden] {
    display: none !important;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    z-index: 999;
    top: var(--nav-height);
    bottom: 0;
    left: -300px;
    width: min(300px, 84vw);
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    background: var(--navbar-bg);
    box-shadow: var(--shadow-lg);
    transition: left 0.22s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-items {
    padding: 16px 0;
}

.mobile-menu-item {
    display: block;
    padding: 15px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    background: var(--primary-soft);
    color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/* Breadcrumb and article shell                                               */
/* -------------------------------------------------------------------------- */

.breadcrumb-nav {
    width: 100%;
    max-width: var(--article-width);
    margin: calc(var(--nav-height) + 16px) auto 0;
    padding: 12px 20px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--text-secondary);
    font-size: 14px;
    list-style: none;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.7;
}

.article-container,
.blog-article {
    width: 100%;
    max-width: var(--article-width);
    margin: 0 auto;
    padding: 28px 20px 64px;
}

body > .article-container:first-of-type {
    margin-top: calc(var(--nav-height) + 28px);
}

.article-header {
    margin-bottom: 44px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.article-date,
.article-updated,
.article-author,
.article-read-time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--primary-color);
}

.article-title {
    max-width: 18ch;
    margin: 0 0 22px;
    color: var(--text-color);
    font-size: clamp(2.1rem, 5.5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.article-excerpt,
.lead-paragraph {
    margin: 0 0 28px;
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 2.2vw, 1.28rem);
    line-height: 1.65;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.article-tag,
.feature-badge,
.narrative-badge,
.recommended-badge,
.security-badge,
.credential {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-header-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.narrative-badge,
.recommended-badge {
    border-color: var(--primary-color);
    background: var(--btn-primary-bg);
    color: #ffffff;
}

.security-badge {
    border-color: var(--success-border);
    background: var(--success-soft);
    color: var(--uptrend-color);
}

/* -------------------------------------------------------------------------- */
/* Editorial typography and media                                             */
/* -------------------------------------------------------------------------- */

.article-content,
.blog-article {
    min-width: 0;
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.78;
    overflow-wrap: break-word;
}

:where(.article-content, .blog-article) > :first-child {
    margin-top: 0;
}

:where(.article-content, .blog-article) h2,
:where(.article-content, .blog-article) h3,
:where(.article-content, .blog-article) h4 {
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1.25;
    scroll-margin-top: calc(var(--nav-height) + 24px);
    text-wrap: balance;
}

:where(.article-content, .blog-article) h2 {
    margin: 52px 0 20px;
    font-size: clamp(1.75rem, 4vw, 2.15rem);
    font-weight: 760;
}

:where(.article-content, .blog-article) h3 {
    margin: 36px 0 14px;
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    font-weight: 720;
}

:where(.article-content, .blog-article) h4 {
    margin: 28px 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
}

:where(.article-content, .blog-article) p {
    margin: 0 0 22px;
}

:where(.article-content, .blog-article) ul,
:where(.article-content, .blog-article) ol {
    margin: 0 0 24px;
    padding-left: 28px;
}

:where(.article-content, .blog-article) li {
    margin: 8px 0;
    padding-left: 3px;
}

:where(.article-content, .blog-article) li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

:where(.article-content, .blog-article) strong {
    color: var(--text-color);
    font-weight: 720;
}

:where(.article-content, .blog-article) a:not(.btn):not(.btn-primary):not(.cta-button):not(.download-btn):not(.download-btn-secondary):not(.related-card):not(.share-button) {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration-color: var(--primary-border);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

:where(.article-content, .blog-article) a:hover {
    text-decoration-color: currentColor;
}

:where(.article-content, .blog-article) blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-secondary);
    font-size: 1.08em;
    font-style: italic;
}

:where(.article-content, .blog-article) hr {
    height: 1px;
    margin: 44px 0;
    border: 0;
    background: var(--border-color);
}

:where(.article-content, .blog-article) img,
:where(.article-content, .blog-article) svg,
:where(.article-content, .blog-article) video {
    max-width: 100%;
    height: auto;
}

:where(.article-content, .blog-article) figure {
    margin: 32px 0;
}

:where(.article-content, .blog-article) figcaption {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.highlight {
    padding: 0 0.18em;
    border-radius: 3px;
    background: var(--warning-soft);
    color: var(--text-color);
}

/* -------------------------------------------------------------------------- */
/* Contents, tables, code, charts and embeds                                  */
/* -------------------------------------------------------------------------- */

.toc,
.table-of-contents {
    margin: 0 0 40px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.toc-title,
.table-of-contents > h2,
.table-of-contents > h3 {
    margin: 0 0 15px;
    color: var(--text-color);
    font-size: 19px;
    font-weight: 750;
}

.toc-list,
.table-of-contents ul,
.table-of-contents ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-list li,
.table-of-contents li {
    margin: 8px 0;
    padding: 0;
}

.toc-list a,
.table-of-contents a {
    display: block;
    padding: 3px 0;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.toc-list a:hover,
.table-of-contents a:hover {
    color: var(--primary-color);
}

table,
.comparison-table,
.template-table,
.data-table,
.crypto-table,
.correlation-table {
    width: 100%;
    margin: 28px 0;
    border: 1px solid var(--border-color);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    font-size: 15px;
    line-height: 1.5;
}

thead,
table th,
.comparison-table th,
.template-table th,
.data-table th,
.crypto-table th,
.correlation-table th {
    background: var(--card-header-bg);
}

th,
td,
.comparison-table th,
.comparison-table td,
.template-table th,
.template-table td,
.data-table th,
.data-table td,
.crypto-table th,
.crypto-table td,
.correlation-table th,
.correlation-table td {
    padding: 13px 15px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-align: left;
    vertical-align: top;
}

th {
    font-weight: 750;
}

tr > :last-child {
    border-right: 0;
}

tbody tr:last-child > * {
    border-bottom: 0;
}

tbody tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background: var(--card-header-bg);
}

.highlight-row {
    background: var(--primary-soft);
    font-weight: 650;
}

.highlight-row:hover {
    background: var(--primary-soft);
}

.comparison-matrix,
.correlation-matrix,
.template-preview,
.calculator-embed,
.chart-container,
.candlestick-anatomy,
.correlation-chart,
.historical-data,
.tradingview-widget-container {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.comparison-matrix,
.correlation-matrix,
.template-preview,
.calculator-embed,
.chart-container,
.candlestick-anatomy,
.correlation-chart,
.historical-data {
    padding: 22px;
}

.comparison-matrix table,
.correlation-matrix table,
.template-preview table {
    min-width: 620px;
    margin: 0;
    box-shadow: none;
}

.chart-title,
.matrix-title,
.template-preview > h3 {
    margin: 0 0 16px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 750;
    text-align: center;
}

code {
    padding: 0.14em 0.38em;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--card-header-bg);
    color: var(--text-color);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
}

pre,
.code-block,
.formula-box {
    max-width: 100%;
    margin: 26px 0;
    overflow-x: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: var(--radius-md);
    background: var(--code-bg);
    color: var(--code-text);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

pre,
.code-block {
    padding: 20px;
}

pre code,
.code-block code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.formula-box {
    padding: 22px;
    color: #e0e7ff;
    font-size: clamp(14px, 2.5vw, 17px);
    text-align: center;
}

iframe {
    max-width: 100%;
    border: 0;
}

/* -------------------------------------------------------------------------- */
/* Callouts, answers, evidence and editorial notes                            */
/* -------------------------------------------------------------------------- */

.callout,
.info-box,
.warning-box,
.success-box,
.risk-warning,
.direct-answer,
.answer-box,
.data-insight,
.stats-evidence,
.expert-quote,
.pro-tip,
.neuroscience-note,
.personal-story,
.real-example,
.fix-box,
.solution-box,
.editorial-note,
.author-note,
.editor-note {
    margin: 28px 0;
    padding: 22px 24px;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.callout-info,
.info-box.info,
.direct-answer,
.answer-box,
.data-insight,
.stats-evidence,
.pro-tip,
.editorial-note,
.author-note,
.editor-note {
    border-color: var(--primary-border);
    border-left-color: var(--primary-color);
    background: var(--primary-soft);
}

.callout-warning,
.info-box.warning,
.warning-box,
.risk-warning,
.fix-box {
    border-color: var(--danger-border);
    border-left-color: var(--downtrend-color);
    background: var(--danger-soft);
}

.callout-success,
.info-box.success,
.success-box,
.solution-box,
.real-example {
    border-color: var(--success-border);
    border-left-color: var(--uptrend-color);
    background: var(--success-soft);
}

.expert-quote,
.personal-story,
.neuroscience-note {
    border-color: var(--warning-border);
    border-left-color: var(--warning-color);
    background: var(--warning-soft);
}

.expert-quote {
    color: var(--text-secondary);
    font-size: 1.04em;
    font-style: italic;
}

.callout-title,
.info-box-title,
.fact-check-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 750;
}

:where(.callout, .info-box, .warning-box, .success-box, .risk-warning, .direct-answer, .answer-box, .data-insight, .stats-evidence, .expert-quote, .pro-tip, .neuroscience-note, .personal-story, .real-example, .fix-box, .solution-box, .editorial-note, .author-note, .editor-note) > :last-child {
    margin-bottom: 0;
}

.callout-summary {
    margin: 0;
    font-weight: 600;
}

.verification-note {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.editorial-note {
    color: var(--text-secondary);
    font-size: 15px;
}

.editorial-note strong {
    color: var(--text-color);
}

.source-review {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    background: var(--primary-soft);
}

.source-review-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.source-review h2 {
    margin-top: 0;
}

.source-review-list {
    margin-bottom: 0;
}

.source-review-list a {
    overflow-wrap: anywhere;
}

/* -------------------------------------------------------------------------- */
/* Shared grids, cards, stats and steps                                       */
/* -------------------------------------------------------------------------- */

.feature-grid,
.sector-grid,
.tool-grid,
.timeframe-grid,
.mistakes-grid,
.stats-grid,
.metric-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
    margin: 26px 0;
}

.feature-card,
.sector-card,
.timeframe-card,
.chart-type-card,
.pattern-card,
.stat-card,
.metric-box,
.step-card,
.technique-card,
.truth-card,
.mistake-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.feature-card,
.sector-card,
.timeframe-card,
.chart-type-card,
.pattern-card,
.step-card,
.technique-card,
.truth-card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover,
.sector-card:hover,
.timeframe-card:hover,
.chart-type-card:hover,
.pattern-card:hover,
.step-card:hover,
.technique-card:hover,
.truth-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon,
.sector-icon,
.strategy-icon,
.phase-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 21px;
}

.feature-title {
    margin: 0 0 8px;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 750;
}

.feature-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

.step-card {
    padding-left: 66px;
}

.step-number,
.strategy-number,
.mistake-number,
.truth-number {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--btn-primary-bg);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.step-card > .step-number,
.mistake-card > .mistake-number {
    position: absolute;
    top: 20px;
    left: 20px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.stat-item,
.stat-card,
.metric-item,
.metric-box {
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-header-bg);
    text-align: center;
}

.stat-number,
.metric-value,
.big-number {
    color: var(--primary-color);
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    font-weight: 820;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stat-label,
.metric-label {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.055em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* Asset, token and wallet comparisons                                        */
/* -------------------------------------------------------------------------- */

.wallet-card,
.token-card,
.narrative-section,
.decision-matrix {
    position: relative;
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.wallet-card:hover,
.token-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wallet-card.recommended,
.narrative-section,
.decision-matrix {
    border: 2px solid var(--primary-border);
}

.wallet-card.recommended {
    border-color: var(--success-border);
}

.wallet-header,
.token-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.wallet-name {
    color: var(--text-color);
    font-size: 23px;
    font-weight: 800;
}

.wallet-price {
    color: var(--uptrend-color);
    font-size: 19px;
    font-weight: 750;
}

.token-info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.token-symbol {
    flex: 0 0 auto;
    padding: 6px 11px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--card-header-bg);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.security-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
}

.security-score,
.progress-container {
    width: 100%;
    height: 20px;
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--card-header-bg);
}

.security-score-fill,
.progress-bar {
    display: flex;
    min-width: 2px;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), #8b5cf6);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.narrative-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 26px;
}

.key-points {
    margin: 28px 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-header-bg);
}

.key-points h4 {
    margin-top: 0;
}

.key-points ul {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.key-points li {
    position: relative;
    padding-left: 24px;
}

.key-points li::before {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 800;
    content: "→";
}

/* -------------------------------------------------------------------------- */
/* Trending lists and market data                                             */
/* -------------------------------------------------------------------------- */

.trending-display {
    margin: 30px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.trending-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-header-bg);
}

.trending-title {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 750;
}

.trending-time {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 650;
}

.coin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.coin-item:last-child {
    border-bottom: 0;
}

.coin-info {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.coin-rank {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
}

.coin-name {
    color: var(--text-color);
    font-weight: 750;
}

.coin-symbol {
    color: var(--text-secondary);
    font-size: 13px;
}

.coin-change {
    flex: 0 0 auto;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.change-positive,
.profit {
    color: var(--uptrend-color);
}

.change-negative,
.loss {
    color: var(--downtrend-color);
}

/* -------------------------------------------------------------------------- */
/* Correlation and strategy components                                        */
/* -------------------------------------------------------------------------- */

.correlation-table th,
.correlation-table td {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.correlation-high {
    background: var(--success-soft);
    color: var(--uptrend-color);
    font-weight: 800;
}

.correlation-medium {
    background: var(--warning-soft);
    color: var(--warning-color);
    font-weight: 750;
}

.correlation-low {
    background: var(--danger-soft);
    color: var(--downtrend-color);
}

.correlation-negative {
    background: var(--primary-soft);
    color: var(--primary-color);
    font-weight: 750;
}

.strategy-card,
.strategy-box {
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.strategy-card.pairs-trading,
.pairs-trading {
    border-left-color: var(--info-color);
}

.strategy-card.sector-rotation,
.sector-rotation {
    border-left-color: var(--uptrend-color);
}

.strategy-card.hedging,
.hedging {
    border-left-color: var(--warning-color);
}

.strategy-header,
.phase-header,
.prediction-header,
.fact-check-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.strategy-example,
.profit-example,
.loss-example,
.example-trade,
.trading-signal {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-header-bg);
}

.profit-example {
    border-color: var(--success-border);
    background: var(--success-soft);
}

.loss-example {
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.implementation-steps,
.technique-steps,
.action-checklist {
    margin: 18px 0;
    padding: 20px 20px 20px 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-header-bg);
}

.tools-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 18px;
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.tools-section h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.tools-section ul {
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Psychology, timelines and market cycles                                    */
/* -------------------------------------------------------------------------- */

.psychology-box,
.fomo-test,
.emotion-scale,
.implementation-timeline,
.cycle-timeline {
    margin: 28px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.brain-fact,
.fomo-trigger,
.success-story,
.test-question {
    margin: 16px 0;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-header-bg);
}

.brain-fact {
    border-color: var(--primary-border);
    background: var(--primary-soft);
}

.fomo-trigger {
    border-color: var(--danger-border);
    background: var(--danger-soft);
}

.success-story {
    border-color: var(--success-border);
    background: var(--success-soft);
}

.emotion-item {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(140px, 2fr);
    gap: 14px;
    align-items: center;
    margin: 12px 0;
}

.emotion-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.emotion-level {
    min-height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--uptrend-color), var(--warning-color), var(--downtrend-color));
}

.timeline-item {
    position: relative;
    margin-left: 12px;
    padding: 0 0 24px 28px;
    border-left: 2px solid var(--border-strong);
}

.timeline-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.timeline-dot {
    position: absolute;
    top: 3px;
    left: -8px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.timeline-week {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.timeline-focus {
    color: var(--text-secondary);
}

.cycle-phase,
.indicator-box,
.mistake-box {
    margin: 24px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.cycle-phase.accumulation,
.accumulation {
    border-left-color: var(--info-color);
}

.cycle-phase.markup,
.markup {
    border-left-color: var(--uptrend-color);
}

.cycle-phase.distribution,
.distribution {
    border-left-color: var(--warning-color);
}

.cycle-phase.markdown,
.markdown {
    border-left-color: var(--downtrend-color);
}

/* -------------------------------------------------------------------------- */
/* Mistakes, checklists and corrective guidance                               */
/* -------------------------------------------------------------------------- */

.mistake-card {
    padding-left: 68px;
    border-color: var(--danger-border);
}

.mistake-card > .mistake-number {
    background: var(--downtrend-color);
}

.truth-card {
    padding-top: 56px;
}

.truth-card > .truth-number {
    position: absolute;
    top: 16px;
    left: 20px;
}

.checklist,
.prevention-checklist,
.checklist-card {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid var(--success-border);
    border-radius: var(--radius-md);
    background: var(--success-soft);
}

.checklist {
    list-style: none;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 11px 0;
}

.checklist-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--uptrend-color);
    color: #ffffff;
    font-size: 12px;
}

.stats-highlight {
    margin: 28px 0;
    padding: 26px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Prediction, probability and value components                               */
/* -------------------------------------------------------------------------- */

.price-prediction-card,
.value-calculator {
    margin: 26px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.price-prediction-card.bullish,
.bullish.price-prediction-card {
    border-top-color: var(--uptrend-color);
}

.price-prediction-card.bearish,
.bearish.price-prediction-card {
    border-top-color: var(--downtrend-color);
}

.price-prediction-card.neutral,
.neutral.price-prediction-card {
    border-top-color: var(--warning-color);
}

.prediction-header {
    justify-content: space-between;
}

.prediction-price {
    color: var(--primary-color);
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 820;
    font-variant-numeric: tabular-nums;
}

.prediction-probability {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 800;
}

/* -------------------------------------------------------------------------- */
/* Journal templates and downloads                                            */
/* -------------------------------------------------------------------------- */

.download-section {
    margin: 38px 0;
    padding: 32px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-soft), var(--card-bg));
    text-align: center;
}

.download-title {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.resource-cta {
    margin: 38px 0;
    padding: 30px;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.16), transparent 44%),
        var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.resource-cta h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.55rem, 4vw, 2rem);
}

.resource-cta p {
    max-width: 620px;
    margin: 0 0 22px;
    color: var(--text-secondary);
}

.resource-eyebrow,
.cta-eyebrow,
.author-kicker,
.related-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                         */
/* -------------------------------------------------------------------------- */

.faq-section {
    margin: 48px 0;
    padding: 0;
}

.faq-section > h2 {
    margin: 0 0 20px;
}

.faq-item {
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.faq-item > h3 {
    margin: 0;
    padding: 18px 20px 0;
    color: var(--text-color);
    font-size: 17px;
    font-weight: 750;
}

.faq-item > p {
    margin: 10px 0 0;
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 18px 20px;
    color: var(--text-color);
    font-size: 17px;
    font-weight: 750;
}

button.faq-question,
.faq-question[role="button"] {
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.faq-answer > :last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------- */
/* Conversion, discovery, sharing, comments and attribution                   */
/* -------------------------------------------------------------------------- */

.article-cta,
.cta-box {
    margin: 52px 0;
    padding: clamp(28px, 6vw, 48px);
    overflow: hidden;
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.18), transparent 42%),
        linear-gradient(135deg, var(--primary-soft), var(--card-bg));
    text-align: center;
}

.article-cta h2,
.article-cta h3,
.cta-box h2,
.cta-box h3 {
    margin: 0 0 13px;
    color: var(--text-color);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
}

.article-cta p,
.cta-box p {
    max-width: 620px;
    margin: 0 auto 24px;
    color: var(--text-secondary);
    font-size: 17px;
}

.related-tools {
    margin: 38px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.related-tools > h2 {
    margin: 0 0 17px;
    font-size: 21px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 12px;
}

.related-tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-header-bg);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.related-tool:hover {
    border-color: var(--primary-border);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.related-articles {
    margin: 52px 0 0;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.related-articles > h2,
.related-articles > h3 {
    margin: 0 0 20px;
    color: var(--text-color);
    font-size: 23px;
}

.related-grid {
    margin: 0;
}

.related-card {
    display: block;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-header-bg);
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.related-card:hover {
    border-color: var(--primary-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.related-card h3,
.related-card h4 {
    margin: 0 0 7px;
    color: var(--primary-color);
    font-size: 17px;
    line-height: 1.35;
}

.related-category {
    margin-bottom: 9px;
}

.related-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.share-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    margin: 34px 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

.share-title {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 750;
}

.share-section > h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 750;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-header-bg);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.share-button:hover {
    border-color: var(--primary-color);
    background: var(--btn-primary-bg);
    color: #ffffff;
}

.share-button-text {
    line-height: 1;
}

.comments-section {
    width: calc(100% - 40px);
    max-width: var(--article-width);
    min-height: 120px;
    margin: 40px auto;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

.comments-section > h2,
.comments-section > h3 {
    margin: 0 0 18px;
    color: var(--text-color);
    font-size: 22px;
}

.author-bio,
.fact-check {
    margin: 34px 0;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.author-bio,
.author-note {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.author-note {
    border-color: var(--border-color);
    border-left-color: var(--primary-color);
    background: var(--card-bg);
}

.author-note h2 {
    margin: 3px 0 7px;
    font-size: 20px;
}

.author-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.author-avatar {
    display: inline-flex;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--btn-primary-bg);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.author-info {
    min-width: 0;
}

.author-info h3,
.author-info h4 {
    margin: 0 0 8px;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 14px;
}

.fact-check {
    border-color: var(--success-border);
    background: var(--success-soft);
}

.fact-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
    color: var(--text-secondary);
}

.fact-check-item i {
    margin-top: 4px;
    color: var(--uptrend-color);
}

.article-footer {
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer {
    width: 100%;
    margin-top: 72px;
    padding: 38px 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.footer p {
    margin: 0 0 8px;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color);
}

/* -------------------------------------------------------------------------- */
/* Dark-theme refinements for embedded and stateful components                */
/* -------------------------------------------------------------------------- */

[data-theme="dark"] :where(.article-tag, .feature-badge, .credential) {
    background: #171c26;
}

[data-theme="dark"] :where(.feature-card, .sector-card, .timeframe-card, .chart-type-card, .pattern-card, .step-card, .technique-card, .truth-card, .mistake-card, .wallet-card, .token-card) {
    background: #10141c;
}

[data-theme="dark"] .share-button:hover,
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .cta-button:hover,
[data-theme="dark"] .download-btn:hover {
    color: #ffffff;
}

[data-theme="dark"] tbody tr:hover {
    background: #171c26;
}

/* -------------------------------------------------------------------------- */
/* Responsive behavior                                                        */
/* -------------------------------------------------------------------------- */

@media (max-width: 992px) {
    .nav-center,
    .nav-items {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-header {
        padding: 0 16px;
    }

    .nav-content,
    .nav-container {
        gap: 12px;
    }

    .logo img {
        width: 108px;
        height: 36px;
    }

    .nav-right {
        margin-left: auto;
        gap: 10px;
    }

    .nav-right > .nav-link,
    #nav-get-started {
        display: none;
    }

    .breadcrumb-nav {
        margin-top: calc(var(--nav-height) + 10px);
        padding: 12px 16px;
    }

    .article-container,
    .blog-article {
        padding: 20px 16px 48px;
    }

    .article-header {
        margin-bottom: 34px;
    }

    .article-title {
        max-width: none;
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .article-content,
    .blog-article {
        font-size: 17px;
        line-height: 1.72;
    }

    :where(.article-content, .blog-article) h2 {
        margin-top: 42px;
    }

    .feature-grid,
    .sector-grid,
    .tool-grid,
    .timeframe-grid,
    .mistakes-grid,
    .stats-grid,
    .metric-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        gap: 9px 16px;
    }

    .wallet-header,
    .token-header,
    .prediction-header,
    .trending-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .share-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .share-buttons {
        width: 100%;
    }

    .share-button {
        flex: 1 1 120px;
        justify-content: center;
    }

    .author-bio {
        flex-direction: column;
    }

    .author-note {
        align-items: flex-start;
    }

    .article-cta,
    .cta-box,
    .download-section,
    .resource-cta,
    .related-tools,
    .related-articles {
        padding: 24px 20px;
    }

    .comparison-matrix,
    .correlation-matrix,
    .template-preview,
    .calculator-embed,
    .chart-container,
    .candlestick-anatomy,
    .correlation-chart,
    .historical-data {
        padding: 16px;
    }

    table,
    .comparison-table,
    .template-table,
    .data-table,
    .crypto-table,
    .correlation-table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        font-size: 14px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td,
    .comparison-table th,
    .comparison-table td,
    .template-table th,
    .template-table td,
    .data-table th,
    .data-table td,
    .crypto-table th,
    .crypto-table td,
    .correlation-table th,
    .correlation-table td {
        padding: 11px 12px;
    }

    .comments-section {
        width: calc(100% - 32px);
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .theme-toggle,
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .article-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-excerpt,
    .lead-paragraph {
        font-size: 1.06rem;
    }

    .toc,
    .table-of-contents,
    .callout,
    .info-box,
    .warning-box,
    .success-box,
    .risk-warning,
    .direct-answer,
    .answer-box,
    .data-insight,
    .stats-evidence,
    .expert-quote,
    .pro-tip,
    .neuroscience-note,
    .personal-story,
    .real-example,
    .fix-box,
    .solution-box,
    .editorial-note,
    .author-note,
    .editor-note,
    .wallet-card,
    .token-card,
    .narrative-section,
    .decision-matrix,
    .strategy-card,
    .strategy-box,
    .cycle-phase,
    .indicator-box,
    .mistake-box,
    .price-prediction-card,
    .value-calculator {
        padding: 18px;
    }

    .step-card,
    .mistake-card {
        padding: 62px 18px 18px;
    }

    .download-buttons,
    .download-btn,
    .download-btn-secondary {
        width: 100%;
    }

    .coin-item {
        padding: 14px 16px;
    }

    .emotion-item {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .footer {
        margin-top: 56px;
    }
}

@media (max-width: 360px) {
    .nav-right > .btn-primary {
        display: none;
    }

    .logo img {
        width: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* -------------------------------------------------------------------------- */
/* 2026 editorial article shell                                               */
/* -------------------------------------------------------------------------- */

.blog-post-page {
    background:
        radial-gradient(circle at 82% 9%, rgba(136, 119, 244, 0.07), transparent 24rem),
        radial-gradient(circle at 14% 14%, rgba(33, 194, 209, 0.06), transparent 26rem),
        var(--bg-color);
}

.breadcrumb-nav {
    max-width: var(--article-width);
    padding: 18px 24px 14px;
}

.breadcrumb-list {
    gap: 10px;
    font-size: 13px;
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list li:last-child {
    max-width: 42ch;
    overflow: hidden;
    color: var(--text-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-container {
    max-width: var(--article-width);
    padding: 0 24px 88px;
}

.article-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(310px, 0.84fr);
    gap: clamp(32px, 4vw, 60px);
    align-items: center;
    min-height: 500px;
    margin-bottom: 64px;
    padding: clamp(36px, 5vw, 68px);
    overflow: hidden;
    border: 1px solid rgba(203, 213, 227, 0.72);
    border-radius: 28px;
    background:
        radial-gradient(circle at 73% 22%, rgba(33, 194, 209, 0.13), transparent 29%),
        radial-gradient(circle at 88% 76%, rgba(136, 119, 244, 0.13), transparent 33%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
    box-shadow: var(--shadow-md);
}

.article-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(117, 132, 160, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(117, 132, 160, 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    content: "";
    -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 70%);
    mask-image: linear-gradient(90deg, transparent 12%, #000 70%);
}

.article-hero-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.article-hero-kicker,
.article-guide-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.article-hero-kicker::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 13px 0 0 rgba(136, 119, 244, 0.55);
    content: "";
}

.article-hero .article-title {
    max-width: 19ch;
    margin-bottom: 24px;
    font-size: clamp(2.75rem, 4.65vw, 4.2rem);
    font-weight: 780;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.article-hero .article-excerpt {
    max-width: 55ch;
    margin-bottom: 26px;
    color: var(--text-secondary);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.68;
}

.article-hero .article-meta {
    gap: 10px 18px;
    margin-bottom: 23px;
    font-size: 13px;
}

.article-hero .article-meta i {
    color: var(--primary-color);
}

.article-hero .article-tag {
    padding: 5px 11px;
    border-color: rgba(8, 124, 139, 0.16);
    background: rgba(255, 255, 255, 0.7);
    color: #3f5266;
    font-size: 12px;
}

.article-hero-visual {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
}

.article-hero-visual-frame {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 42% 58% 55% 45% / 45% 44% 56% 55%;
    background:
        radial-gradient(circle at 31% 27%, rgba(255, 255, 255, 0.96), transparent 21%),
        radial-gradient(circle at 50% 46%, rgba(33, 194, 209, 0.27), transparent 30%),
        radial-gradient(circle at 65% 64%, rgba(136, 119, 244, 0.28), transparent 36%),
        linear-gradient(145deg, rgba(239, 253, 255, 0.95), rgba(242, 238, 255, 0.88));
    box-shadow:
        inset 0 0 48px rgba(255, 255, 255, 0.85),
        0 28px 68px rgba(74, 91, 133, 0.15);
    transform: rotate(-3deg);
}

.article-hero-visual-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(81, 114, 145, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(81, 114, 145, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(circle, #000, transparent 71%);
    mask-image: radial-gradient(circle, #000, transparent 71%);
}

.article-hero-visual-orbit {
    position: absolute;
    inset: 50%;
    border: 1px solid rgba(8, 124, 139, 0.27);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-24deg);
}

.article-hero-visual-orbit-outer {
    width: 77%;
    height: 45%;
    box-shadow: 0 0 30px rgba(33, 194, 209, 0.2);
}

.article-hero-visual-orbit-inner {
    width: 48%;
    height: 76%;
    border-color: rgba(136, 119, 244, 0.35);
    transform: translate(-50%, -50%) rotate(37deg);
}

.article-hero-visual-symbol {
    position: absolute;
    inset: 50%;
    display: grid;
    width: 132px;
    height: 132px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 255, 0.78));
    color: var(--primary-color);
    font-size: 54px;
    box-shadow:
        inset 0 1px 0 #ffffff,
        0 20px 44px rgba(70, 86, 129, 0.18);
    transform: translate(-50%, -50%) rotate(3deg);
    place-items: center;
}

.article-hero-visual-symbol::after {
    position: absolute;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(136, 119, 244, 0.32);
    border-radius: 18px;
    background: rgba(136, 119, 244, 0.12);
    content: "";
    transform: translate(66px, -74px) rotate(18deg);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--reading-width)) 296px;
    gap: clamp(40px, 5vw, 68px);
    align-items: start;
    justify-content: center;
}

.article-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.article-sidebar {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.article-sidebar-inner {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
    display: grid;
    gap: 20px;
}

.article-sidebar .toc,
.article-guide-card {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.article-sidebar .toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
}

.article-sidebar .toc-title::-webkit-details-marker {
    display: none;
}

.article-sidebar .toc-title::after {
    color: var(--primary-color);
    content: "+";
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.article-sidebar .toc[open] .toc-title::after {
    content: "−";
}

.article-sidebar .toc:not([open]) .toc-title {
    margin-bottom: 0;
}

.article-sidebar .toc-list {
    display: grid;
    gap: 2px;
}

.article-sidebar .toc-list li {
    margin: 0;
}

.article-sidebar .toc-list a {
    position: relative;
    padding: 7px 0 7px 15px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.article-sidebar .toc-list a::before {
    position: absolute;
    top: 14px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border-strong);
    content: "";
}

.article-sidebar .toc-list a:hover::before {
    background: var(--accent-cyan);
}

.article-guide-card .article-guide-kicker {
    margin-bottom: 7px;
}

.article-guide-card h2 {
    margin: 0 0 18px;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.article-guide-details {
    display: grid;
    gap: 12px;
    margin: 0;
}

.article-guide-detail {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 11px;
    border-top: 1px solid var(--border-color);
}

.article-guide-detail dt,
.article-guide-detail dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.article-guide-detail dt {
    color: var(--text-muted);
}

.article-guide-detail dd {
    max-width: 17ch;
    color: var(--text-color);
    font-weight: 700;
    text-align: right;
}

.article-main > :where(.resource-cta, .faq-section, .source-review, .editorial-note, .related-tools, .author-bio, .article-cta, .related-articles, .share-section) {
    margin-top: 42px;
}

.article-content {
    font-size: 17px;
    line-height: 1.82;
}

.article-content > p {
    color: #384558;
}

[data-theme="dark"] .blog-post-page {
    background:
        radial-gradient(circle at 82% 9%, rgba(136, 119, 244, 0.11), transparent 24rem),
        radial-gradient(circle at 14% 14%, rgba(33, 194, 209, 0.08), transparent 26rem),
        var(--bg-color);
}

[data-theme="dark"] .article-hero {
    border-color: rgba(73, 95, 116, 0.55);
    background:
        radial-gradient(circle at 73% 22%, rgba(33, 194, 209, 0.12), transparent 29%),
        radial-gradient(circle at 88% 76%, rgba(136, 119, 244, 0.15), transparent 33%),
        linear-gradient(135deg, rgba(13, 25, 36, 0.98), rgba(10, 18, 30, 0.96));
}

[data-theme="dark"] .article-hero .article-tag,
[data-theme="dark"] .article-sidebar .toc,
[data-theme="dark"] .article-guide-card {
    background: rgba(12, 23, 34, 0.78);
    color: var(--text-secondary);
}

[data-theme="dark"] .article-hero-visual-frame {
    border-color: rgba(99, 220, 229, 0.13);
    background:
        radial-gradient(circle at 31% 27%, rgba(255, 255, 255, 0.13), transparent 21%),
        radial-gradient(circle at 50% 46%, rgba(33, 194, 209, 0.22), transparent 30%),
        radial-gradient(circle at 65% 64%, rgba(136, 119, 244, 0.27), transparent 36%),
        linear-gradient(145deg, rgba(16, 45, 53, 0.88), rgba(33, 31, 61, 0.86));
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .article-hero-visual-symbol {
    border-color: rgba(99, 220, 229, 0.18);
    background: linear-gradient(145deg, rgba(19, 39, 52, 0.96), rgba(29, 30, 58, 0.94));
}

[data-theme="dark"] .article-content > p {
    color: var(--text-secondary);
}

@media (max-width: 1050px) {
    .article-hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
        gap: 34px;
        padding: 44px;
    }

    .article-layout {
        grid-template-columns: minmax(0, var(--reading-width)) 260px;
        gap: 34px;
    }
}

@media (max-width: 900px) {
    .article-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .article-hero .article-title {
        max-width: 16ch;
    }

    .article-hero-visual-frame {
        width: min(100%, 360px);
    }

    .article-layout {
        grid-template-columns: minmax(0, var(--reading-width));
    }

    .article-main,
    .article-sidebar {
        grid-column: 1;
        grid-row: auto;
    }

    .article-sidebar {
        grid-row: 1;
    }

    .article-main {
        grid-row: 2;
    }

    .article-sidebar-inner {
        position: static;
        grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    }
}

@media (max-width: 680px) {
    .breadcrumb-list li:last-child,
    .article-hero-visual {
        display: none;
    }

    .article-container {
        padding: 0 16px 56px;
    }

    .article-hero {
        margin-bottom: 34px;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .article-hero .article-title {
        max-width: none;
        font-size: clamp(2.2rem, 11vw, 3.1rem);
    }

    .article-hero .article-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-sidebar-inner {
        grid-template-columns: 1fr;
    }

    .article-guide-card {
        display: none;
    }

    .article-sidebar .toc {
        padding: 20px;
    }

    .article-content {
        font-size: 16.5px;
        line-height: 1.75;
    }
}
