/* ===== CSS Variables ===== */
:root {
    --ft-bg: #FFF1E5;
    --ft-pink: #FCD0B1;
    --ft-dark: #1A1A1A;
    --ft-headline: #1A1A1A;
    --ft-body: #333333;
    --ft-link: #1A1A1A;
    --ft-category-crypto: #8B0000;
    --ft-category-institutional: #CC0000;
    --ft-category-regulatory: #8B4513;
    --ft-category-macro: #2F4F4F;
    --ft-category-tech: #006400;
    --ft-category-breaking: #CC0000;
    --ft-positive: #008000;
    --ft-negative: #CC0000;
    --ft-extreme: #CC0000;
    --ft-divider: #CCBBAA;
    --ft-accent: #990F3D;
    --ft-dark-bg: #262A33;
    --ft-tiktok: #FF0050;
    --ft-twitter: #1A1A1A;
    --ft-peach: #FF8C69;
    --ticker-bg: #1A0A2E;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--ft-bg);
    color: var(--ft-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ft-accent);
}

/* ===== Breaking Banner ===== */
.breaking-banner {
    background-color: var(--ft-accent);
    color: #FFF3E8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 9px 20px;
    font-size: 0.82rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.breaking-label {
    font-weight: 800;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ft-accent);
    background-color: #FFF1E5;
    padding: 3px 10px;
    border-radius: 999px;
    flex-shrink: 0;
}

.breaking-text {
    font-weight: 500;
}

.breaking-link {
    color: #FFD9A8;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 217, 168, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.breaking-link:hover {
    color: #FFFFFF;
    border-bottom-color: #FFFFFF;
}

/* ===== Ticker Bar ===== */
.ticker-bar {
    background-color: #0E1116;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Soft edge fades so items slide in/out cleanly */
.ticker-bar::before,
.ticker-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 56px;
    z-index: 2;
    pointer-events: none;
}

.ticker-bar::before {
    left: 0;
    background: linear-gradient(to right, #0E1116, rgba(14, 17, 22, 0));
}

.ticker-bar::after {
    right: 0;
    background: linear-gradient(to left, #0E1116, rgba(14, 17, 22, 0));
}

.ticker-content {
    display: inline-flex;
    width: max-content;
    padding: 10px 0;
    animation: tickerScroll 40s linear infinite;
}

.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-size: 0.8rem;
    color: #C9D1D9;
    border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.ticker-name {
    color: #8B949E;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticker-price {
    color: #F0F6FC;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ticker-price.positive { color: #3FB950; }
.ticker-price.negative { color: #F85149; }

.ticker-change {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ticker-change.positive {
    color: #3FB950;
    background-color: rgba(63, 185, 80, 0.14);
}

.ticker-change.negative {
    color: #F85149;
    background-color: rgba(248, 81, 73, 0.14);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
.main-header {
    background-color: var(--ft-bg);
    padding: 15px 40px;
    border-bottom: 1px solid var(--ft-divider);
}

.header-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

.date-line {
    font-size: 0.85rem;
    color: #666;
}

.tagline-small {
    font-size: 0.75rem;
    color: #999;
    font-style: italic;
}

.header-center {
    flex: 2;
    text-align: center;
}

.masthead a {
    text-decoration: none;
    color: inherit;
}

.masthead a:hover {
    color: inherit;
}

.gyatt {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 900;
    font-size: 2.4rem;
    color: var(--ft-headline);
    letter-spacing: -0.03em;
}

.times {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 400;
    font-size: 2.4rem;
    color: var(--ft-headline);
    font-style: italic;
}

.masthead-sub {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #888;
    text-transform: uppercase;
    margin-top: -5px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.header-btn {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.follow-btn {
    background: var(--ft-accent);
    color: white;
    border: none;
}

.follow-btn:hover {
    background: #7d0c32;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(153, 15, 61, 0.25);
}

.twitter-btn {
    background: transparent;
    color: var(--ft-dark);
    border: 1px solid var(--ft-dark);
}

.twitter-btn:hover {
    background: var(--ft-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 26, 26, 0.18);
}

/* ===== Navigation ===== */
.main-nav {
    border-bottom: 3px solid var(--ft-accent);
    background: var(--ft-bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    padding: 0 40px;
}

.nav-link {
    padding: 12px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--ft-dark);
    text-transform: uppercase;
    position: relative;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--ft-accent);
    background: rgba(153, 15, 61, 0.05);
}

.nav-link.active {
    border-bottom: 3px solid var(--ft-accent);
    margin-bottom: -3px;
}

.nav-link.highlight {
    color: var(--ft-accent);
    font-weight: 700;
}

/* ===== Main Content Grid ===== */
.main-content {
    max-width: 1340px;
    margin: 0 auto;
    padding: 30px 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 30px;
}

/* ===== Categories ===== */
.category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.crypto-markets { color: var(--ft-accent); }
.institutional { color: var(--ft-category-institutional); }
.regulatory { color: var(--ft-category-regulatory); }
.macro { color: var(--ft-category-macro); }
.technology-cat { color: var(--ft-category-tech); }
.breaking-report { color: var(--ft-category-breaking); }

/* ===== Lead Story ===== */
.lead-image {
    margin-bottom: 15px;
    border-radius: 0;
    overflow: hidden;
}

/* ===== Media Slots (home) — swap in your own image, GIF, or <video> ===== */
.slot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-image .slot-img {
    height: 280px;
}

.slot-img-picks {
    height: 160px;
    border-radius: 3px;
}

/* Fills the featured-image container behind the overlay headline */
.slot-img-fill {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.featured-image-placeholder.has-media {
    background: #111;
}

/* Fallback look when a media file is missing (set by js/images.js) */
.img-fallback {
    object-fit: cover;
}

.lead-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ft-headline);
    margin-bottom: 10px;
}

.lead-headline a:hover {
    color: var(--ft-accent);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ft-dark);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.x-logo {
    font-weight: 900;
}

.lead-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 8px;
}

.timestamp {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-divider {
    border-top: 1px solid var(--ft-divider);
    margin: 20px 0;
}

/* ===== Secondary Stories ===== */
.secondary-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ft-headline);
    margin-bottom: 8px;
}

.secondary-headline a:hover {
    color: var(--ft-accent);
}

.pdf-icon {
    font-size: 0.9em;
}

/* ===== Featured Story ===== */
.featured-image-placeholder {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.community-img {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #2c3e50);
}

.community-overlay {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.community-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #CCC;
}

.tiktok-badge, .youtube-badge, .video-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.tiktok-badge {
    background: var(--ft-tiktok);
}

.youtube-badge {
    background: #FF0000;
}

.video-badge {
    background: var(--ft-accent);
}

.featured-overlay-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    padding: 0 20px 20px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.featured-image-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 1;
}

/* ===== Center Stories ===== */
.center-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ft-headline);
    margin-bottom: 8px;
    margin-top: 5px;
}

.center-headline a:hover {
    color: var(--ft-accent);
}

.center-summary {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ===== Right Column / Sidebar ===== */
.editors-picks {
    margin-bottom: 25px;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ft-dark);
    border-bottom: 2px solid var(--ft-dark);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.editors-picks-image {
    margin-bottom: 15px;
}

.picks-img-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #2d5016, #56ab2f);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.sidebar-story {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ft-divider);
}

.sidebar-headline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ft-headline);
    margin-bottom: 5px;
}

.sidebar-headline a:hover {
    color: var(--ft-accent);
}

.author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
}

.author-avatar.cc {
    background: #FF8C00;
}

.author-avatar.ed {
    background: var(--ft-accent);
}

.author-name {
    font-size: 0.8rem;
    color: #666;
}

.tiktok-small-badge {
    display: inline-block;
    background: var(--ft-tiktok);
    color: white;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.x-badge-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ft-dark);
    color: white;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 900;
}

/* ===== Follow Box ===== */
.follow-box {
    background: var(--ft-dark-bg);
    padding: 20px;
    border-radius: 3px;
}

.follow-title {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.follow-x-btn {
    display: block;
    text-align: center;
    padding: 11px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.follow-x-btn {
    background: var(--ft-twitter);
    color: white;
    border: 1px solid #555;
}

.follow-x-btn:hover {
    background: #333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== Market Data Bar ===== */
.market-data-bar {
    background: var(--ft-bg);
    border-top: 2px solid var(--ft-dark);
    border-bottom: 1px solid var(--ft-divider);
    padding: 18px 40px;
}

.market-data-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.market-label {
    display: flex;
    align-items: center;
    padding-right: 28px;
    margin-right: 28px;
    border-right: 1px solid var(--ft-divider);
}

.gyatt-markets {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--ft-accent);
}

.market-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 2px 28px;
    border-right: 1px solid var(--ft-divider);
}

.market-item:last-child {
    border-right: none;
}

.market-name {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #8A7F72;
    text-transform: uppercase;
}

.market-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ft-dark);
    font-variant-numeric: tabular-nums;
}

.market-value.positive {
    color: var(--ft-positive);
}

.market-value.extreme {
    color: var(--ft-extreme);
    font-weight: 900;
}

/* ===== Top Stories ===== */
.top-stories {
    max-width: 1340px;
    margin: 0 auto;
    padding: 30px 40px;
}

.section-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--ft-dark);
    margin-bottom: 25px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--ft-divider);
}

.section-title::before { left: 0; }
.section-title::after { right: 0; }

.top-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.top-story-card {
    display: block;
    transition: transform 0.2s;
}

.top-story-card:hover {
    transform: translateY(-3px);
}

.top-story-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 12px;
}

.top-story-card h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ft-headline);
    margin-bottom: 8px;
}

.top-story-card:hover h4 {
    color: var(--ft-accent);
}

/* ===== Footer ===== */
.main-footer {
    background: var(--ft-dark-bg);
    color: #CCC;
    padding: 40px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1340px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    gap: 60px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-masthead .gyatt, .footer-masthead .times {
    font-size: 2rem;
    color: white;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #999;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFD700;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: #BBB;
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--ft-peach);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #888;
    max-width: 700px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCC;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.footer-socials a:hover {
    background: var(--ft-accent);
    border-color: var(--ft-accent);
    color: white;
}

/* ===== Article Page Styles ===== */
.article-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-page .article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ft-accent);
    margin-bottom: 10px;
}

.article-page .article-category.institutional { color: var(--ft-category-institutional); }
.article-page .article-category.regulatory { color: var(--ft-category-regulatory); }
.article-page .article-category.macro { color: var(--ft-category-macro); }
.article-page .article-category.technology-cat { color: var(--ft-category-tech); }
.article-page .article-category.breaking-report { color: var(--ft-category-breaking); }

.article-page h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--ft-headline);
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ft-divider);
    font-size: 0.85rem;
    color: #888;
}

.article-meta .author {
    font-weight: 600;
    color: var(--ft-dark);
}

.article-hero {
    width: 100%;
    height: 380px;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-body p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ft-body);
    margin-bottom: 18px;
}

.article-body blockquote {
    border-left: 4px solid var(--ft-accent);
    padding: 15px 20px;
    margin: 25px 0;
    background: rgba(153, 15, 61, 0.05);
    font-style: italic;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
}

.article-body h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--ft-headline);
}

.article-body .pullquote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.3;
    color: var(--ft-accent);
    padding: 20px 0;
    margin: 25px 0;
    border-top: 2px solid var(--ft-accent);
    border-bottom: 2px solid var(--ft-accent);
    text-align: center;
    font-weight: 700;
}

.article-cta {
    background: var(--ft-dark-bg);
    padding: 25px;
    border-radius: 5px;
    margin: 30px 0;
    text-align: center;
}

.article-cta h3 {
    color: white;
    font-family: 'Fraunces', Georgia, serif;
    margin-bottom: 15px;
}

.article-cta .cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.article-cta .cta-btn {
    padding: 11px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    display: inline-block;
}

.article-cta .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.18);
}

.cta-btn.pump { background: var(--ft-peach); color: var(--ft-dark); }
.cta-btn.pump:hover { background: #FF6347; color: white; }
.cta-btn.dex { background: #00D4AA; color: var(--ft-dark); }
.cta-btn.dex:hover { background: #00B894; }
.cta-btn.twitter-cta { background: var(--ft-twitter); color: white; }
.cta-btn.twitter-cta:hover { background: #333; color: white; }
.cta-btn.tg { background: #0088CC; color: white; }
.cta-btn.tg:hover { background: #006699; color: white; }

.article-tags {
    margin: 30px 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tag {
    background: rgba(153, 15, 61, 0.1);
    color: var(--ft-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-articles {
    border-top: 2px solid var(--ft-dark);
    padding-top: 20px;
    margin-top: 30px;
}

.related-articles h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.related-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--ft-divider);
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ft-headline);
    transition: color 0.2s;
}

.related-list a:hover {
    color: var(--ft-accent);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--ft-accent);
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===== Section Pages ===== */
.section-page {
    max-width: 1340px;
    margin: 0 auto;
    padding: 30px 40px;
}

.section-header {
    border-bottom: 3px solid var(--ft-accent);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-header h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2rem;
    color: var(--ft-headline);
}

.articles-list .list-article {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ft-divider);
    transition: background 0.2s;
}

.articles-list .list-article:hover {
    background: rgba(153, 15, 61, 0.03);
}

.list-article-img {
    width: 180px;
    height: 120px;
    border-radius: 3px;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}

.list-article-content {
    flex: 1;
}

.list-article-content .category {
    margin-bottom: 5px;
}

.list-article-content h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ft-headline);
    margin-bottom: 8px;
}

.list-article-content h3:hover {
    color: var(--ft-accent);
}

.list-article-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .top-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}




/* ===== Article Figures & Images ===== */
.article-hero figure,
figure.article-hero {
    margin: 0 0 25px;
}

.article-hero figcaption,
.article-figure figcaption {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    padding: 10px 4px 0;
    line-height: 1.4;
    border-bottom: 1px solid var(--ft-divider);
    margin-bottom: 5px;
}

.article-figure {
    margin: 28px 0;
}

.article-figure-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-figure-wide {
    margin-left: -40px;
    margin-right: -40px;
}

.article-figure-wide .article-figure-image {
    border-radius: 0;
}

img.img-fallback {
    object-fit: cover;
    background: var(--ft-dark-bg);
}

.article-inline-cta {
    background: rgba(153, 15, 61, 0.06);
    border-left: 4px solid var(--ft-accent);
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 4px 4px 0;
}

.article-inline-cta p {
    margin: 0;
    font-size: 1rem;
}

/* Card image helper — use on homepage cards */
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image-wrap {
    overflow: hidden;
    border-radius: 3px;
    background: linear-gradient(135deg, #2d1b4e, #8B4513);
}

.card-image-wrap img {
    transition: transform 0.35s ease;
}

.card-image-wrap:hover img {
    transform: scale(1.03);
}



/* ===== UI Polish ===== */
.lead-image .slot-img,
.featured-image-placeholder .slot-img,
.top-story-img,
.list-article-img {
    transition: transform 0.3s ease;
}

.lead-story:hover .lead-image .slot-img,
.featured-story:hover .featured-image-placeholder .slot-img,
.top-story-card:hover .top-story-img {
    transform: scale(1.01);
}

.top-story-card {
    border-radius: 4px;
    padding: 4px;
}

.top-story-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-page {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-nav {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 1100px) {
    .writer-grid {
        grid-template-columns: 1fr;
    }
    .preview-panel {
        position: static;
        max-height: none;
    }
    .preview-frame {
        max-height: 600px;
    }
    .article-figure-wide {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .col-right {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .header-left, .header-right {
        justify-content: center;
    }
    .nav-container {
        overflow-x: auto;
        padding: 0 15px;
    }
    .nav-link {
        padding: 10px 15px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    .main-content, .top-stories, .market-data-bar {
        padding-left: 15px;
        padding-right: 15px;
    }
    .gyatt { font-size: 2.2rem; }
    .times { font-size: 2.2rem; }
    .lead-headline { font-size: 1.4rem; }
    .top-stories-grid {
        grid-template-columns: 1fr;
    }
    .market-label {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        width: 100%;
    }
    .market-item {
        padding: 6px 18px 6px 0;
        border-right: none;
    }
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .article-page h1 {
        font-size: 1.8rem;
    }
    .articles-list .list-article {
        flex-direction: column;
    }
    .list-article-img {
        width: 100%;
        height: 180px;
    }
    .writer-main {
        padding: 16px;
    }
    .form-row.two-col,
    .inline-image-form {
        grid-template-columns: 1fr;
    }
    .writer-header {
        flex-direction: column;
    }
}
