/* ========================================
   CUSTOM PROPERTIES
======================================== */
:root {
    --neon: #CCFF00;
    --neon-dim: rgba(204, 255, 0, 0.12);
    --neon-glow: 0 0 24px rgba(204, 255, 0, 0.35);
    --neon-glow-sm: 0 0 12px rgba(204, 255, 0, 0.25);

    /* Dark (default) */
    --bg:        #0A0A09;
    --bg-2:      #111110;
    --bg-3:      #1A1A18;
    --bg-4:      #222220;
    --text:      #EDECEA;
    --text-2:    #7A7870;
    --text-3:    #4A4A46;
    --border:    #242422;
    --border-2:  #2E2E2B;

    /* Tag palette */
    --tag-market:   #534AB7;
    --tag-biweekly: #0F6E56;
    --tag-deep:     #BA7517;
    --tag-edu:      #2B6CB0;
    --tag-hl:       #993556;
    --tag-ann:      #595959;

    --font-head: 'Inter', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container: 1200px;
    --pad: clamp(1rem, 4vw, 2rem);
    --ease: 0.18s ease;
    --r-sm: 4px;
    --r:    8px;
    --r-lg: 14px;
    --r-xl: 20px;
}


/* ========================================
   RESET
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 17px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    /* subtle grid texture — trading platform feel */
    background-image:
        linear-gradient(var(--neon-dim) 0px, var(--neon-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-dim) 0px, var(--neon-dim) 1px, transparent 1px);
    background-size: 1px 0, 0 1px; /* off by default, overridden per-section */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--ease), color var(--ease);
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
}

p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--r);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    transition: all var(--ease);
    text-decoration: none;
    border: 1.5px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}

.btn--primary {
    background-color: var(--neon);
    color: #0A0A09;
    border-color: var(--neon);
}
.btn--primary:hover {
    background-color: #d9ff1a;
    transform: translateY(-1px);
    box-shadow: var(--neon-glow);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-2);
}
.btn--outline:hover {
    border-color: var(--neon);
    color: var(--neon);
}

.btn--ghost {
    background: transparent;
    color: var(--neon);
    border-color: rgba(204,255,0,0.3);
}
.btn--ghost:hover {
    background: var(--neon-dim);
    border-color: var(--neon);
}

.btn--sm  { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
.btn--lg  { padding: 0.875rem 2rem; font-size: 1rem; }
.btn--xl  { padding: 1rem 2.5rem; font-size: 1.0625rem; }

/* ========================================
   TAGS
======================================== */
.tag,
.post-card__tag,
.post-header__tag,
.hero__tag,
.tag-badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: var(--r-sm);
    font-family: var(--font-head);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity var(--ease);
    /* default — primary neon */
    background: rgba(204,255,0,0.1);
    color: var(--neon);
    border: 1px solid rgba(204,255,0,0.25);
}

.tag:hover,
.post-card__tag:hover,
.post-header__tag:hover,
.hero__tag:hover { opacity: 0.75; }

.tag--market-weekly  { background: rgba(83,74,183,.15);  color: #9B94E0; border-color: rgba(83,74,183,.3); }
.tag--biweekly-report{ background: rgba(15,110,86,.15);  color: #4DB89A; border-color: rgba(15,110,86,.3); }
.tag--deep-dive      { background: rgba(186,117,23,.15); color: #D4A040; border-color: rgba(186,117,23,.3);}
.tag--education      { background: rgba(43,108,176,.15); color: #6BAAE0; border-color: rgba(43,108,176,.3);}
.tag--highlights     { background: rgba(153,53,86,.15);  color: #D47090; border-color: rgba(153,53,86,.3); }
.tag--announcement   { background: rgba(89,89,89,.15);   color: #9A9A9A; border-color: rgba(89,89,89,.3);  }


/* ========================================
   NAVIGATION
======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    background-color: rgba(10,10,9,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--ease), border-color var(--ease);
}


.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    gap: 0.5rem;
}

.site-logo__img-full {
    height: 32px;
    width: auto;
}

.site-logo__text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
    color: var(--text);
}

.site-logo__text span { color: var(--neon); }

/* Nav links */
.site-nav { flex: 1; display: none; }

@media (min-width: 768px) {
    .site-nav { display: flex; justify-content: center; }
}

.site-nav__list { display: flex; align-items: center; }

.site-nav__link {
    padding: 0.375rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color var(--ease), background var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav__link:hover { color: var(--text); background: var(--bg-3); }
.site-nav__link.active { color: var(--neon); background: var(--neon-dim); }

/* Actions */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    color: var(--text-2);
    transition: color var(--ease), background var(--ease);
    cursor: pointer;
}
.search-btn:hover { color: var(--text); background: var(--bg-3); }


.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px; height: 32px;
    padding: 6px;
}
.nav-toggle span {
    width: 100%; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--ease), opacity var(--ease);
}

@media (min-width: 768px) { .nav-toggle { display: none; } }

/* Mobile nav open */
.site-header.nav-open .site-nav {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem var(--pad) 1.25rem;
}
.site-header.nav-open .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}
.site-header.nav-open .site-nav__link {
    display: block;
    width: 100%;
    padding: 0.625rem 0.75rem;
}

/* ========================================
   POST CARDS
======================================== */
.post-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg-2);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.post-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--neon);
    opacity: 0;
    transition: opacity var(--ease);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(204,255,0,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(204,255,0,0.08);
}

.post-card:hover::after { opacity: 1; }

.post-card__image-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card__image { transform: scale(1.05); }

.post-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
    gap: 0.5rem;
}

.post-card__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.post-card__title a {
    color: var(--text);
    transition: color var(--ease);
}
.post-card__title a:hover { color: var(--neon); }

.post-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.65;
    flex: 1;
}

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.post-card__author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-2);
}
.post-card__author-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.post-card__meta {
    font-size: 0.75rem;
    color: var(--text-3);
    white-space: nowrap;
}

/* ========================================
   POST GRID
======================================== */
.post-grid { display: grid; gap: 1.25rem; }
.post-grid--3 { grid-template-columns: 1fr; }

@media (min-width: 640px)  { .post-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .post-grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ========================================
   SECTION HEADER
======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.section-header__title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
}

.section-header__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neon);
    transition: opacity var(--ease);
}
.section-header__link:hover { opacity: 0.75; }

/* ========================================
   HOME PAGE — HERO
======================================== */
.hero {
    position: relative;
    padding: 4rem 0 5rem;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Radial glow from top-left */
.hero::before {
    content: '';
    position: absolute;
    top: -160px; left: -120px;
    width: 640px; height: 640px;
    background: radial-gradient(circle, rgba(204,255,0,0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* Subtle grid lines in hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(204,255,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204,255,0,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .hero__inner {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
    .hero__content { flex: 1; min-width: 0; }
    .hero__visual   { flex: 1; min-width: 0; position: relative; }
}

.hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero__eyebrow-line {
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--neon);
    flex-shrink: 0;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero__title a { color: var(--text); transition: color var(--ease); }
.hero__title a:hover { color: var(--neon); }

.hero__excerpt {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}

.hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-2);
    flex-wrap: wrap;
}

.hero__author { display: flex; align-items: center; gap: 0.5rem; }
.hero__author-avatar { border-radius: 50%; object-fit: cover; }

/* Feature image */
.hero__image-wrap {
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-2);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.hero__image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero__image-wrap:hover .hero__image { transform: scale(1.03); }

/* IP mascot in hero — peeking from bottom-right */
.hero__mascot {
    display: none;
    position: absolute;
    bottom: -24px;
    right: -16px;
    width: 200px;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
    pointer-events: none;
    transition: transform 0.4s ease;
}

.hero__mascot:hover { transform: translateY(-4px); }

@media (min-width: 1024px) { .hero__mascot { display: block; } }

/* No feature image: show mascot in visual slot */
.hero__visual--mascot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 300px;
    position: relative;
}

.hero__visual--mascot .hero__mascot-main {
    width: 260px;
    filter: drop-shadow(0 16px 48px rgba(204,255,0,0.15));
    pointer-events: none;
}

/* ========================================
   HOME PAGE — SUBSCRIBE STRIP
======================================== */
.home-subscribe {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.home-subscribe__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.home-subscribe__inner p {
    font-size: 0.875rem;
    color: var(--text-2);
    flex-shrink: 0;
}

/* ========================================
   HOME PAGE — SECTIONS
======================================== */
.home-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.pagination-center { text-align: center; margin-top: 3rem; }

/* ========================================
   SUBSCRIBE MODULE
======================================== */
.subscribe-module {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

/* Neon glow behind the module */
.subscribe-module::before {
    content: '';
    position: absolute;
    bottom: -100px; right: -80px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(204,255,0,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.subscribe-module__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 880px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .subscribe-module__inner {
        flex-direction: row;
        align-items: center;
    }
    .subscribe-module__content { flex: 1; }
    .subscribe-module__form-wrap { flex-shrink: 0; width: 340px; }
}

.subscribe-module__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 0.625rem;
}

.subscribe-module__title {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 0.625rem;
}

.subscribe-module__desc { font-size: 0.875rem; color: var(--text-2); }

/* IP mascot in subscribe module */
.subscribe-mascot {
    display: none;
    position: absolute;
    bottom: 0; right: 20px;
    width: 140px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 1200px) { .subscribe-mascot { display: block; } }

/* ========================================
   SUBSCRIBE FORM
======================================== */
.subscribe-form__fields {
    display: flex;
    gap: 0.5rem;
}

.subscribe-form__input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--border-2);
    border-radius: var(--r);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.subscribe-form__input:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px rgba(204,255,0,0.12);
}
.subscribe-form__input::placeholder { color: var(--text-3); }

.subscribe-form__notice {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 0.5rem;
}

.subscribe-form__success { margin-top: 0.75rem; font-size: 0.875rem; color: #4DB89A; }
.subscribe-form__error   { margin-top: 0.75rem; font-size: 0.875rem; color: #D47090; }

/* ========================================
   POST PAGE
======================================== */
.post-header {
    padding: 3.5rem 0 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(204,255,0,0.04) 0%, transparent 65%);
    pointer-events: none;
}

.post-header__container { max-width: 760px; position: relative; z-index: 1; }

.post-header__tag { display: block; margin-bottom: 1.25rem; }

.post-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.post-header__excerpt {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.post-header__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.post-header__author { display: flex; align-items: center; gap: 0.75rem; }
.post-header__author-avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-header__author-info   { display: flex; flex-direction: column; }

.post-header__author-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.post-header__author-bio  { font-size: 0.8125rem; color: var(--text-2); }

.post-header__meta-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-2);
}

/* Feature image */
.post-feature-image { margin: 2rem 0; }
.post-feature-image img {
    width: 100%;
    border-radius: var(--r-xl);
    max-height: 560px;
    object-fit: cover;
    border: 1px solid var(--border);
}
.post-feature-image figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-top: 0.625rem;
}

.post-content-wrap { padding: 2.5rem 0; }

/* Ghost content */
.gh-content {
    max-width: 720px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.gh-content > * + * { margin-top: 1.5em; }

.gh-content h2,
.gh-content h3,
.gh-content h4 { margin-top: 2.5em; margin-bottom: 0.75em; }

.gh-content h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.625rem);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.gh-content h3 { font-size: 1.25rem; }

.gh-content a {
    color: var(--neon);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(204,255,0,0.35);
    transition: text-decoration-color var(--ease);
}
.gh-content a:hover { text-decoration-color: var(--neon); }

.gh-content blockquote {
    border-left: 3px solid var(--neon);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-2);
    font-style: italic;
}

.gh-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-3);
    padding: 0.125em 0.4em;
    border-radius: var(--r-sm);
    color: var(--neon);
}

.gh-content pre {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}
.gh-content pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.65;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}
.gh-content th {
    background: var(--bg-3);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}
.gh-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}
.gh-content tr:hover td { background: var(--bg-2); }

.gh-content ul,
.gh-content ol { padding-left: 1.5rem; list-style: revert; }
.gh-content li { margin-bottom: 0.5em; }
.gh-content li::marker { color: var(--neon); }

.gh-content hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

.gh-content .kg-image-card { margin: 2rem 0; }
.gh-content .kg-image-card img { border-radius: var(--r); }

.gh-content figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-2);
    margin-top: 0.5rem;
}

/* Wide / full-bleed image cards — required by Ghost gscan */
.gh-content .kg-width-wide {
    position: relative;
    width: min(80vw, 1200px);
    margin-left: calc(50% - min(40vw, 600px));
}

.gh-content .kg-width-full {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.gh-content .kg-callout-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-3);
    border-radius: var(--r);
    border-left: 3px solid var(--neon);
    margin: 2rem 0;
}

/* ========================================
   POST CTA
======================================== */
.post-cta {
    position: relative;
    margin: 3rem 0 2rem;
    padding: 2rem 2.25rem;
    border-radius: var(--r-xl);
    border: 1px solid rgba(204,255,0,0.3);
    background: linear-gradient(135deg, rgba(204,255,0,0.07) 0%, rgba(204,255,0,0.02) 50%, transparent 100%);
    overflow: hidden;
}

.post-cta::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(204,255,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.post-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .post-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.post-cta__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 0.5rem;
}

.post-cta__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.375rem; letter-spacing: -0.02em; }
.post-cta__desc  { font-size: 0.875rem; color: var(--text-2); }

/* ========================================
   POST TAGS
======================================== */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }

/* ========================================
   RELATED POSTS
======================================== */
.related-posts { padding: 3.5rem 0; border-top: 1px solid var(--border); }

.related-posts__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 2rem;
}

/* ========================================
   TAG PAGE
======================================== */
.tag-header {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.tag-header::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(204,255,0,0.05) 0%, transparent 65%);
    pointer-events: none;
}

.tag-header__inner { display: flex; align-items: flex-start; gap: 1.5rem; position: relative; z-index: 1; }
.tag-header__image img { border-radius: var(--r); }
.tag-header__content { flex: 1; }
.tag-badge { display: inline-block; margin-bottom: 0.75rem; }
.tag-header__desc  { font-size: 0.9375rem; color: var(--text-2); margin: 0.5rem 0; }
.tag-header__count { font-size: 0.875rem; color: var(--text-3); }

.tag-posts { padding: 3rem 0; }

/* ========================================
   AUTHOR PAGE
======================================== */
.author-header { padding: 3.5rem 0; border-bottom: 1px solid var(--border); }

.author-header__inner { display: flex; align-items: flex-start; gap: 1.5rem; }

.author-header__avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-header__name   { font-size: 1.875rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.025em; }
.author-header__bio    { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; margin-bottom: 0.75rem; }
.author-header__links  { display: flex; gap: 1rem; font-size: 0.875rem; }
.author-header__links a { color: var(--neon); }

.author-posts { padding: 3rem 0; }
.author-posts__count { font-size: 0.875rem; color: var(--text-2); margin-bottom: 2rem; }

/* ========================================
   PAGINATION
======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.pagination__info { font-size: 0.875rem; color: var(--text-2); }

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.site-footer__tagline { font-size: 0.875rem; color: var(--text-2); margin-top: 0.75rem; line-height: 1.6; }

.site-footer__nav-list { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer__nav-list a,
.site-footer__links a {
    font-size: 0.875rem;
    color: var(--text-2);
    transition: color var(--ease);
}
.site-footer__nav-list a:hover,
.site-footer__links a:hover { color: var(--neon); }

.site-footer__links { display: flex; flex-direction: column; gap: 0.5rem; }

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer__copy,
.site-footer__ghost { font-size: 0.8125rem; color: var(--text-3); }
.site-footer__ghost a { color: var(--text-3); }
.site-footer__ghost a:hover { color: var(--neon); }

/* Neon accent bar at very bottom of footer */
.site-footer::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: 0.4;
    margin-top: 1.5rem;
}

/* ========================================
   READING PROGRESS BAR
======================================== */
.post-reading-progress {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 99;
}

.post-reading-progress__bar {
    height: 100%;
    width: 0%;
    background: var(--neon);
    box-shadow: var(--neon-glow-sm);
    transition: width 0.1s linear;
}

/* ========================================
   ERROR PAGE
======================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(204,255,0,0.04) 0%, transparent 65%);
    pointer-events: none;
}

.error-page__inner {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.error-page__mascot {
    width: 160px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 8px 32px rgba(204,255,0,0.15));
}

.error-page__code {
    display: block;
    font-family: var(--font-head);
    font-size: 7rem;
    font-weight: 800;
    color: var(--neon);
    line-height: 1;
    letter-spacing: -0.05em;
    text-shadow: var(--neon-glow);
    margin-bottom: 0.5rem;
}

.error-page__title   { font-size: 1.5rem; margin-bottom: 0.75rem; }
.error-page__desc    { color: var(--text-2); margin-bottom: 2rem; }

/* ── Coming Soon (homepage Market Analysis empty state) ── */
.coming-soon {
    padding: 3rem 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
}
.coming-soon__text {
    color: var(--text-2);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Tag Empty State ── */
.tag-empty {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.tag-empty__icon {
    font-size: 2rem;
    color: var(--neon);
    margin-bottom: 1.25rem;
    text-shadow: var(--neon-glow);
}
.tag-empty__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.tag-empty__desc {
    color: var(--text-2);
    line-height: 1.7;
}

/* ========================================
   SECTION INDEX PAGE (market-analysis, biweekly-report)
======================================== */
.section-page__header {
    padding: 4rem 0 2.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}
.section-page__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.section-page__desc {
    color: var(--text-2);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.7;
}
.section-page .container {
    padding-bottom: 4rem;
}

/* ========================================
   POST GRID 4-COL
======================================== */
.post-grid--4 {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .post-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .post-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   RELATED POSTS (post page)
======================================== */
.related-posts__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.related-posts__link {
    font-size: 0.875rem;
    color: var(--neon);
    text-decoration: none;
    font-weight: 500;
}
.related-posts__link:hover { text-decoration: underline; }

/* ========================================
   TOPICS PAGE
======================================== */
.topics-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border);
}
.topics-header__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}
.topics-header__desc {
    color: var(--text-2);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.7;
}

.topic-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}
.topic-section:last-of-type { border-bottom: none; }

.topic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.topic-header__info { flex: 1; }

.topic-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
    text-decoration: none;
}
.topic-header__desc {
    font-size: 0.9375rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}
.topic-header__link {
    font-size: 0.875rem;
    color: var(--neon);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.topic-header__link:hover { text-decoration: underline; }

