/* ==============================================================================
   THE MOUNTAIN JOURNAL — CLIENT-FACING EDITORIAL & NEWS STYLESHEET
   Clean Minimalist Journalism Aesthetic with Warm Orange Accents & Dark Mode
   ============================================================================== */

:root {
    --bg-page: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-subtle: #F1F5F9;
    --bg-input: #FFFFFF;

    --border-subtle: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-focus: #FF5A1F;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-on-accent: #FFFFFF;

    /* Signature Brand Palette */
    --accent-orange: #FF5A1F;
    --accent-orange-hover: #E4480F;
    --accent-orange-light: #FFF0E8;
    --accent-orange-border: rgba(255, 90, 31, 0.25);

    --color-blue: #2563EB;
    --color-green: #10B981;
    --color-amber: #F59E0B;
    --color-purple: #8B5CF6;

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Newsreader', Georgia, Cambria, "Times New Roman", Times, serif;

    /* Article Reader Dynamic Font Size */
    --article-font-size: 1.125rem;
    /* 18px */
    --article-line-height: 1.8;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-card-hover: 0 12px 28px -6px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.18), 0 0 1px rgba(0, 0, 0, 0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --container-max: 1240px;
}

/* ==============================================================================
   NIGHT READER / DARK MODE THEME
   ============================================================================== */
body.dark-mode {
    --bg-page: #0B0F17;
    --bg-surface: #111827;
    --bg-surface-elevated: #161F2E;
    --bg-card: #131C2A;
    --bg-card-hover: #1A2638;
    --bg-subtle: #192434;
    --bg-input: #162030;

    --border-subtle: #243248;
    --border-hover: #334460;

    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #8496B0;

    --accent-orange: #FF6838;
    --accent-orange-hover: #FF5A1F;
    --accent-orange-light: rgba(255, 90, 31, 0.14);
    --accent-orange-border: rgba(255, 90, 31, 0.35);

    --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 12px 30px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================================================
   READING PROGRESS BAR (For Article View)
   ============================================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3.5px;
    background: linear-gradient(90deg, #FF5A1F, #FFA033);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ==============================================================================
   TOP BREAKING NEWS BAR
   ============================================================================== */
.top-ticker-bar {
    background-color: #0F172A;
    color: #F8FAFC;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 60;
}

body.dark-mode .top-ticker-bar {
    background-color: #070B11;
    border-bottom: 1px solid #1E293B;
}

.ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 16px;
}

.ticker-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.ticker-badge {
    background: var(--accent-orange);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ticker-pulse {
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    animation: tickerBlink 1.4s infinite ease-in-out;
}

@keyframes tickerBlink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.ticker-slider {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #E2E8F0;
    font-weight: 500;
    font-size: 12.5px;
}

.ticker-slider a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.ticker-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    font-size: 12px;
    color: #94A3B8;
}

.ticker-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticker-admin-btn {
    color: #CBD5E1;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.15s ease;
}

.ticker-admin-btn:hover {
    background: var(--accent-orange);
    color: #FFFFFF;
}

/* ==============================================================================
   MAIN SITE HEADER & MASTHEAD
   ============================================================================== */
.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.masthead-branding {
    display: flex;
    flex-direction: column;
}

.site-title-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-crest {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FF6838 0%, #FF4E18 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.3);
    flex-shrink: 0;
}

.site-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.1;
}

.site-name-dot {
    color: var(--accent-orange);
}

.site-tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Header Action Controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search-mobile-btn {
    display: none;
}

.btn-icon-reader {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.btn-icon-reader:hover {
    color: var(--accent-orange);
    border-color: var(--accent-orange-border);
    background: var(--accent-orange-light);
    transform: translateY(-1px);
}

.bookmark-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-orange);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

/* Quick Search Trigger Input */
.quick-search-box {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 220px;
}

.quick-search-box:hover,
.quick-search-box:focus-within {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.12);
}

.quick-search-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
}

.quick-search-input::placeholder {
    color: var(--text-muted);
}

/* ==============================================================================
   CATEGORY NAVIGATION RIBBON
   ============================================================================== */
.category-ribbon {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-ribbon::-webkit-scrollbar {
    display: none;
}

.category-ribbon-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    list-style: none;
    white-space: nowrap;
}

.category-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all 0.15s ease;
}

.category-nav-link:hover {
    color: var(--accent-orange);
    background-color: var(--accent-orange-light);
}

.category-nav-link.active {
    background-color: var(--accent-orange);
    color: #FFFFFF;
}

.cat-count-badge {
    font-size: 10.5px;
    opacity: 0.8;
}

/* ==============================================================================
   HOMEPAGE (index.php) — HERO, TRENDING, CATEGORY BAR, BENTO, CARD GRID, NEWSLETTER
   Layout rules are scoped to .mj-home; cards, chips and pager also work on article.php. Colours come from the theme variables above,
   so dark mode (body.dark-mode) works automatically.
   ============================================================================== */
.mj-home {
    --mj-r: 18px;
    --mj-accent: var(--accent-orange);
    --accent: var(--accent-orange);
    /* per-category colour overrides this on cards & chips */
    overflow-x: clip;
}

.mj-container {
    width: min(var(--container-max), 100% - 40px);
    margin-inline: auto;
}

/* ---------- Shared bits ---------- */
.mj-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 6px;
}

.mj-eyebrow--light {
    color: rgba(255, 255, 255, 0.82);
}

.mj-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mj-pill--solid {
    background: var(--accent-orange);
    color: var(--text-on-accent);
}

.mj-pill--glass {
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.mj-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

.mj-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mj-avatar--lg {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.mj-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #FFFFFF;
    color: #0F172A;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
}

.mj-cta:hover {
    gap: 12px;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.mj-cta--dark {
    background: var(--accent-orange);
    color: #FFFFFF;
}

.mj-cta--dark:hover {
    background: var(--accent-orange-hover);
}

/* ---------- Hero ---------- */
.mj-hero {
    padding: 28px 0 8px;
}

.mj-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
    gap: 24px;
}

.mj-lead {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 580px;
    border-radius: 26px;
    overflow: hidden;
    background: #0F172A;
    isolation: isolate;
    box-shadow: var(--shadow-card);
}

.mj-lead-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mj-lead:hover .mj-lead-img {
    transform: scale(1.05);
}

.mj-lead-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(8, 12, 20, 0.92) 0%, rgba(8, 12, 20, 0.62) 38%, rgba(8, 12, 20, 0.08) 72%),
        linear-gradient(to right, rgba(8, 12, 20, 0.35), transparent 60%);
}

.mj-lead-content {
    padding: clamp(24px, 4vw, 48px);
    color: #FFFFFF;
    max-width: 780px;
}

.mj-lead-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.mj-lead-title {
    font-family: var(--font-serif);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-size: clamp(30px, 4.4vw, 54px);
    margin-bottom: 14px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mj-lead-title a {
    color: #FFFFFF;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.4s ease;
}

.mj-lead-title a:hover {
    background-size: 100% 2px;
}

.mj-lead-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 24px;
    max-width: 62ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mj-lead-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mj-lead-byline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mj-lead-byline strong {
    display: block;
    font-size: 15px;
}

.mj-lead-byline small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px;
}

/* Trending */
.mj-trending {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 26px;
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.mj-trending-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--text-primary);
}

.mj-trending-head h2 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mj-trending-head small {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mj-flame {
    color: var(--accent-orange);
    font-size: 12px;
    animation: mjPulse 1.6s infinite;
}

@keyframes mjPulse {
    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

.mj-trending-list {
    list-style: none;
}

.mj-trending-item {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.mj-trending-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mj-rank {
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 40px;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-orange);
    min-width: 54px;
    transition: color 0.25s ease;
}

.mj-trending-item:hover .mj-rank {
    color: var(--accent-orange);
}

.mj-trending-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-orange);
}

.mj-trending-item h3 {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.3;
    margin: 4px 0 6px;
    font-weight: 700;
}

.mj-trending-item h3 a:hover {
    color: var(--accent-orange);
}

.mj-trending-item small {
    color: var(--text-muted);
    font-size: 12px;
}

/* ---------- Category bar + search ---------- */
.mj-explorer {
    margin-top: 28px;
    background: color-mix(in srgb, var(--bg-page) 88%, transparent);
    border-block: 1px solid var(--border-subtle);
}

.mj-explorer-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}

.mj-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    padding: 2px;
}

.mj-chips::-webkit-scrollbar {
    display: none;
}

.mj-chip {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mj-chip em {
    font-style: normal;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 1px 7px;
    border-radius: var(--radius-full);
}

.mj-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.mj-chip:first-child .mj-chip-dot {
    display: none;
}

.mj-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mj-chip.is-active {
    background: var(--text-primary);
    color: var(--bg-page);
    border-color: var(--text-primary);
}

.mj-chip.is-active em {
    background: rgba(128, 128, 128, 0.3);
    color: inherit;
}

.mj-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
    width: 260px;
    height: 42px;
    padding: 0 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.25s ease;
}

.mj-search:focus-within {
    width: 320px;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.14);
}

.mj-search input {
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
}

.mj-search input::placeholder {
    color: var(--text-muted);
}

/* ---------- Feed header ---------- */
.mj-feed {
    padding: 44px 0 70px;
}

.mj-feed-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.mj-feed-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.mj-feed-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.mj-seg {
    display: inline-flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 4px;
}

.mj-seg a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.mj-seg a:hover {
    color: var(--text-primary);
}

.mj-seg a.is-active {
    background: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 90, 31, 0.35);
}

/* ---------- Story cards ---------- */
.mj-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--mj-r);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.mj-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

@keyframes mj-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.mj-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(90deg, var(--bg-subtle) 0%, var(--border-subtle) 50%, var(--bg-subtle) 100%);
    background-size: 200% 100%;
    animation: mj-shimmer 1.8s infinite linear;
}

.mj-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    content-visibility: auto;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.mj-card:hover .mj-card-media img {
    transform: scale(1.07);
}

.mj-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Bookmark (keeps your .news-card-bookmark-btn / .bookmark-trigger hooks) */
.mj-card .mj-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.92);
    color: #0F172A;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.25s ease;
}

.mj-card:hover .mj-bookmark,
.mj-card .mj-bookmark:focus-visible,
.mj-card .mj-bookmark.saved,
.mj-card .mj-bookmark.active {
    opacity: 1;
    transform: none;
}

.mj-card .mj-bookmark:hover,
.mj-card .mj-bookmark.saved,
.mj-card .mj-bookmark.active {
    background: var(--accent-orange);
    color: #FFFFFF;
}

@media (hover: none) {
    .mj-card .mj-bookmark {
        opacity: 1;
        transform: none;
    }
}

.mj-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    flex: 1;
}

.mj-card-title {
    font-family: var(--font-serif);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mj-card-title a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.35s ease;
}

.mj-card:hover .mj-card-title a {
    background-size: 100% 2px;
}

.mj-card-excerpt {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mj-card-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-muted);
}

.mj-card-author {
    color: var(--text-primary);
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mj-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.mj-views {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Grid */
.mj-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* Bento highlight */
.mj-bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 26px;
    margin-bottom: 18px;
}

.mj-card--bento-lg {
    grid-row: 1 / span 2;
}

.mj-card--bento-lg .mj-card-media {
    aspect-ratio: auto;
    flex: 1;
    min-height: 300px;
}

.mj-card--bento-lg .mj-card-title {
    font-size: 30px;
}

.mj-card--bento-lg .mj-card-excerpt {
    -webkit-line-clamp: 4;
    font-size: 15.5px;
}

.mj-card--bento-sm {
    flex-direction: row;
}

.mj-card--bento-sm .mj-card-media {
    aspect-ratio: auto;
    width: 42%;
    flex: none;
}

.mj-card--bento-sm .mj-card-title {
    font-size: 19px;
}

.mj-card--bento-sm .mj-card-excerpt {
    -webkit-line-clamp: 2;
}

.mj-card--bento-sm .mj-card-cat {
    top: 12px;
    left: 12px;
}

.mj-card--bento-sm .mj-card-foot .mj-card-author {
    display: none;
}

.mj-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 26px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mj-divider::before,
.mj-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* Scroll reveal */
.mj-js .mj-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.mj-js .mj-reveal.is-in {
    opacity: 1;
    transform: none;
}

.mj-js .mj-reveal.is-in:hover {
    transform: translateY(-5px);
    transition-delay: 0ms !important;
}

/* ---------- Pagination ---------- */
.mj-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.mj-page {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mj-page:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.mj-page.is-active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #FFFFFF;
}

/* ---------- Empty state ---------- */
.mj-empty {
    text-align: center;
    max-width: 520px;
    margin: 40px auto;
    padding: 56px 28px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-hover);
    border-radius: 24px;
    color: var(--text-muted);
}

.mj-empty h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 14px 0 6px;
}

.mj-empty p {
    margin-bottom: 22px;
}

/* ---------- Newsletter band ---------- */
.mj-newsletter {
    background: radial-gradient(1000px 360px at 90% -20%, #FF8A5C 0%, transparent 60%), linear-gradient(135deg, #FF5A1F 0%, #E4480F 100%);
    color: #FFFFFF;
    padding: 64px 0;
}

body.dark-mode .mj-newsletter {
    background: radial-gradient(1000px 360px at 90% -20%, rgba(255, 104, 56, 0.35) 0%, transparent 60%), #111827;
    border-top: 1px solid var(--border-subtle);
}

.mj-newsletter-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.mj-newsletter h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.mj-newsletter p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
}

.mj-newsletter-form {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 8px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.mj-newsletter-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #FFFFFF;
    padding: 0 16px;
    font-size: 15px;
}

.mj-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mj-newsletter-form button {
    border: 0;
    cursor: pointer;
    background: #FFFFFF;
    color: #E4480F;
    font-weight: 800;
    font-size: 14px;
    padding: 13px 24px;
    border-radius: var(--radius-full);
    transition: transform 0.2s ease;
}

.mj-newsletter-form button:hover {
    transform: scale(1.04);
}

body.dark-mode .mj-newsletter-form button {
    background: var(--accent-orange);
    color: #FFFFFF;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .mj-hero-grid {
        grid-template-columns: 1fr;
    }

    .mj-lead {
        min-height: 500px;
    }

    .mj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .mj-bento {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .mj-card--bento-lg {
        grid-row: auto;
    }

    .mj-card--bento-lg .mj-card-media {
        aspect-ratio: 16 / 10;
        flex: none;
        min-height: 0;
    }

    .mj-newsletter-inner {
        grid-template-columns: 1fr;
    }

    .mj-explorer-row {
        flex-wrap: wrap;
    }

    .mj-search,
    .mj-search:focus-within {
        width: 100%;
        order: -1;
    }
}

@media (max-width: 620px) {
    .mj-container {
        width: calc(100% - 28px);
    }

    .mj-grid {
        grid-template-columns: 1fr;
    }

    .mj-lead {
        min-height: 460px;
        border-radius: 20px;
    }

    .mj-lead-excerpt {
        font-size: 15px;
    }

    .mj-card--bento-sm {
        flex-direction: column;
    }

    .mj-card--bento-sm .mj-card-media {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .mj-newsletter-form {
        flex-direction: column;
        border-radius: 22px;
    }

    .mj-newsletter-form input {
        padding: 12px 14px;
    }

    .mj-feed-head {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mj-home *,
    .mj-home *::before,
    .mj-home *::after {
        animation: none !important;
        transition: none !important;
    }

    .mj-js .mj-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==============================================================================
   FLOATING LEFT SHARE SIDEBAR (article.php)
   ============================================================================== */
.floating-share-sidebar {
    position: fixed;
    left: max(16px, calc(50% - 660px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    padding: 14px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.floating-share-sidebar.fss-visible {
    opacity: 1;
    pointer-events: auto;
}

.fss-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    user-select: none;
}

.fss-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    flex-shrink: 0;
    position: relative;
}

.fss-btn:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
}

/* Platform brand colors */
.fss-whatsapp {
    background: #25D366;
}

.fss-linkedin {
    background: #0A66C2;
}

.fss-facebook {
    background: #1877F2;
}

.fss-copy {
    background: var(--text-muted);
    color: #fff;
}

.fss-bookmark {
    background: var(--accent-orange);
}

body.dark-mode .fss-copy {
    background: #334460;
}

/* Divider between copy and bookmark */
.fss-bookmark::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 1px;
    background: var(--border-subtle);
}

/* "Copied!" toast inside the sidebar */
.fss-copy-toast {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #0F172A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

body.dark-mode .fss-copy-toast {
    background: #E2E8F0;
    color: #0F172A;
}

.fss-copy-toast.show {
    opacity: 1;
}

/* When sidebar is saved, icon fills */
.fss-bookmark.saved {
    background: #10B981;
}

/* Hide on screens too narrow to show sidebar */
@media (max-width: 1100px) {
    .floating-share-sidebar {
        display: none;
    }
}

/* ==============================================================================
   SHARED PIECES (article.php, category.php)
   ============================================================================== */
.mj-card,
.mj-chip {
    --accent: var(--accent-orange);
}

/* an inline --accent on the element still wins */

.mj-crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.mj-crumbs a {
    color: var(--text-secondary);
    transition: color 0.15s ease;
}

.mj-crumbs a:hover {
    color: var(--accent-orange);
}

.mj-crumbs .mj-crumb-cat {
    color: var(--accent-orange);
    font-weight: 700;
}

.mj-crumbs .is-current {
    max-width: 340px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 600;
}

.mj-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--accent-orange);
    color: #FFFFFF;
    border: 0;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mj-btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 90, 31, 0.3);
}

.mj-link-arrow {
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-orange);
}

.mj-link-arrow:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mj-avatar--md {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.mj-alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
}

.mj-alert--ok {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.mj-alert--err {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #991B1B;
}

body.dark-mode .mj-alert--ok {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

body.dark-mode .mj-alert--err {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
}

.mj-notfound {
    text-align: center;
    padding: 110px 0;
    max-width: 560px;
}

.mj-notfound h1 {
    font-family: var(--font-serif);
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 900;
    margin: 6px 0 12px;
}

.mj-notfound p {
    color: var(--text-muted);
    margin-bottom: 26px;
}

/* ==============================================================================
   SECTION PAGE (category.php)
   ============================================================================== */
.mj-cat-hero {
    --accent: var(--accent-orange);
    padding: 30px 0 40px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--bg-page)) 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.mj-cat-hero .mj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

.mj-cat-hero .mj-eyebrow::before {
    content: "";
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
}

.mj-cat-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.mj-cat-title {
    font-family: var(--font-serif);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    font-size: clamp(42px, 7vw, 84px);
    margin: 6px 0 14px;
}

.mj-cat-desc {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.mj-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mj-stats>div {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    min-width: 120px;
    box-shadow: var(--shadow-card);
}

.mj-stats dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.mj-stats dd {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 4px;
}

.mj-stats dd.mj-stats-small {
    font-size: 20px;
    line-height: 1.5;
}

.mj-cat-hero+.mj-explorer {
    margin-top: 0;
}

/* ==============================================================================
   DEDICATED ARTICLE READING PAGE (article.php)
   ============================================================================== */
.article-page-layout {
    --accent: var(--accent-orange);
    padding: 28px 0 70px;
}

.article-header {
    max-width: 880px;
    margin: 0 auto 34px;
    text-align: center;
}

.article-cat-pill {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-cat-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.article-headline {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5.2vw, 58px);
    font-weight: 900;
    line-height: 1.07;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-wrap: balance;
}

.article-subtitle {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
    color: var(--text-secondary);
}

.article-meta-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    flex-wrap: wrap;
    padding: 12px 24px 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    box-shadow: var(--shadow-card);
    max-width: 100%;
}

.article-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.article-meta-author strong {
    display: block;
    font-size: 14.5px;
    line-height: 1.2;
}

.article-meta-author small {
    color: var(--text-muted);
    font-size: 12.5px;
}

.article-meta-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.article-meta-stats span,
.article-meta-stats a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta-stats a:hover {
    color: var(--accent-orange);
}

.article-hero-media {
    max-width: 1060px;
    margin: 0 auto 36px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-surface);
}

.article-hero-img {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
}

.article-caption {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
}

/* Audio reader (class names kept for your speech script) */
.speech-player-widget {
    max-width: 720px;
    margin: 0 auto 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.speech-player-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.speech-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-orange);
    color: #FFFFFF;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(255, 90, 31, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}

.speech-btn:hover {
    background: var(--accent-orange-hover);
    transform: scale(1.06);
}

.speech-info-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.speech-info-status {
    font-size: 12px;
    color: var(--text-muted);
}

.waveform-animation {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.waveform-bar {
    width: 3px;
    height: 5px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.waveform-bar.active {
    animation: waveBounce 0.8s infinite ease-in-out alternate;
}

.waveform-bar:nth-child(2) {
    animation-delay: 0.15s;
}

.waveform-bar:nth-child(3) {
    animation-delay: 0.3s;
}

.waveform-bar:nth-child(4) {
    animation-delay: 0.45s;
}

@keyframes waveBounce {
    0% {
        height: 5px;
    }

    100% {
        height: 18px;
    }
}

/* Table of contents */
.article-toc {
    max-width: 720px;
    margin: 0 auto 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--accent);
    border-radius: 16px;
    padding: 0 22px;
}

.article-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.article-toc summary span {
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-muted);
}

.article-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0 0 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

.article-toc li {
    counter-increment: toc;
    display: flex;
    gap: 12px;
    padding: 7px 0;
}

.article-toc li::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-serif);
    font-weight: 800;
    color: var(--accent);
    min-width: 24px;
}

.article-toc a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.4;
}

.article-toc a:hover {
    color: var(--accent-orange);
}

/* Body */
.article-reading-body {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--font-serif);
    font-size: calc(var(--article-font-size) * 1.12);
    line-height: var(--article-line-height);
    color: var(--text-primary);
    overflow-wrap: break-word;
}

.article-reading-body>p:first-child::first-letter {
    font-family: var(--font-serif);
    float: left;
    font-size: 4.6em;
    line-height: 0.82;
    font-weight: 900;
    padding: 8px 12px 0 0;
    color: var(--accent-orange);
}

.article-reading-body p {
    margin-bottom: 1.5em;
}

.article-reading-body a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-reading-body a:hover {
    text-decoration-thickness: 2px;
}

.article-reading-body h2 {
    font-family: var(--font-sans);
    font-size: 1.65em;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2.2em 0 0.7em;
    scroll-margin-top: 110px;
}

.article-reading-body h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    border-radius: 4px;
    background: var(--accent);
    margin-bottom: 14px;
}

.article-reading-body h3 {
    font-family: var(--font-sans);
    font-size: 1.28em;
    font-weight: 700;
    margin: 1.8em 0 0.6em;
    scroll-margin-top: 110px;
}

.article-reading-body blockquote {
    position: relative;
    margin: 2em 0;
    padding: 28px 30px 28px 34px;
    font-style: italic;
    font-size: 1.22em;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--accent-orange-light);
    border-left: 4px solid var(--accent-orange);
    border-radius: 0 16px 16px 0;
}

.article-reading-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-reading-body ul,
.article-reading-body ol {
    margin: 0 0 1.5em 1.4em;
}

.article-reading-body li {
    margin-bottom: 0.5em;
    padding-left: 4px;
}

.article-reading-body li::marker {
    color: var(--accent-orange);
    font-weight: 700;
}

.article-reading-body img {
    border-radius: 16px;
    margin: 2em auto;
    box-shadow: var(--shadow-card);
}

.article-reading-body figure {
    margin: 2em 0;
}

.article-reading-body figcaption {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}

.article-reading-body hr {
    border: 0;
    height: 1px;
    background: var(--border-subtle);
    margin: 2.4em 0;
}

.article-reading-body table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    font-family: var(--font-sans);
    font-size: 0.85em;
}

.article-reading-body th,
.article-reading-body td {
    padding: 10px 14px;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.article-reading-body th {
    background: var(--bg-subtle);
    font-weight: 700;
}

/* Tags */
.article-tags {
    max-width: 720px;
    margin: 36px auto 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.article-tags-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 4px;
}

.article-tag {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Share / save bar */
.article-engagement-bar {
    max-width: 720px;
    margin: 36px auto 0;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.article-engagement-title {
    font-weight: 800;
    font-size: 15.5px;
    line-height: 1.4;
    max-width: 240px;
}

.article-engagement-title span {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}

.share-buttons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 9px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.share-btn:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-1px);
}

.share-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
}

.share-btn.twitter:hover {
    background: #000000;
    border-color: #000000;
    color: #FFFFFF;
}

.share-btn.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #FFFFFF;
}

.share-btn.saved {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #FFFFFF;
}

/* Author box */
.author-profile-box {
    max-width: 720px;
    margin: 28px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.author-big-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-orange);
    flex-shrink: 0;
}

.author-big-avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-orange);
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 800;
}

.author-bio-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.author-bio-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Previous / next */
.post-nav {
    max-width: 720px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.post-nav-link--next {
    text-align: right;
    grid-column: 2;
}

.post-nav-link:hover {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.post-nav-link small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.post-nav-link span {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Comments */
.comments-section {
    max-width: 720px;
    margin: 56px auto 0;
}

.comments-header-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--text-primary);
}

.comments-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title span {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 800;
    background: var(--accent-orange);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.comments-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.comment-card {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 14px;
}

.comment-card .mj-avatar {
    background: var(--accent-orange);
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author-name {
    font-weight: 700;
    font-size: 14.5px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.comments-empty {
    background: var(--bg-card);
    border: 1px dashed var(--border-hover);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.comment-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 28px;
    margin-top: 28px;
    box-shadow: var(--shadow-card);
}

.comment-form-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.comment-form-card>p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.comment-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.comment-textarea-wrap {
    margin-bottom: 20px;
}

.mj-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.comment-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14.5px;
    outline: none;
    transition: all 0.15s ease;
}

textarea.comment-field {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.comment-field::placeholder {
    color: var(--text-muted);
}

.comment-field:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.15);
}

/* Related stories */
.article-related {
    margin-top: 70px;
    padding-top: 44px;
    border-top: 1px solid var(--border-subtle);
}

.article-related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.article-related-head h2 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (max-width: 720px) {
    .article-meta-box {
        border-radius: 24px;
        padding: 14px 18px;
    }

    .article-hero-media {
        border-radius: 18px;
    }

    .speech-player-widget {
        padding: 12px 14px;
    }

    .waveform-animation {
        display: none;
    }

    .article-reading-body {
        font-size: var(--article-font-size);
    }

    .article-reading-body>p:first-child::first-letter {
        font-size: 3.8em;
    }

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

    .article-engagement-title {
        max-width: none;
    }

    .author-profile-box {
        flex-direction: column;
        text-align: center;
    }

    .post-nav,
    .comment-input-row {
        grid-template-columns: 1fr;
    }

    .post-nav-link--next {
        grid-column: auto;
    }

    .comment-form-card {
        padding: 20px;
    }
}

/* ==============================================================================
   BOOKMARKS OFFCANVAS DRAWER
   ============================================================================== */
.bookmark-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.bookmark-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.bookmark-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bookmark-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drawer-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.drawer-item-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}

.drawer-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.drawer-remove-btn:hover {
    color: #EF4444;
}

/* ==============================================================================
   LIVE SEARCH MODAL POPUP
   ============================================================================== */
.search-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 40px 20px;
}

.search-modal-backdrop.open {
    display: flex;
}

.search-modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-modal-bar {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 12px;
}

.search-big-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.search-results-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    transition: background-color 0.15s ease;
}

.search-result-item:hover {
    background-color: var(--bg-subtle);
}

.search-result-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==============================================================================
   FOOTER & NEWSLETTER
   ============================================================================== */
.site-footer {
    background-color: #0F172A;
    color: #F8FAFC;
    padding: 60px 0 30px 0;
    border-top: 1px solid #1E293B;
}

body.dark-mode .site-footer {
    background-color: #06090F;
    border-top: 1px solid #161F2E;
}

.footer-newsletter-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-columns-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-columns-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    margin-bottom: 16px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: #CBD5E1;
}

.footer-links-list a:hover {
    color: var(--accent-orange);
}

.footer-bottom-row {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #94A3B8;
    flex-wrap: wrap;
    gap: 14px;
}

/* Toast Notification */
.client-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0F172A;
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer Newsletter Form Default (Desktop) */
.footer-newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 420px;
    min-width: 280px;
}

.footer-newsletter-input {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0F172A;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.footer-newsletter-input:focus {
    border-color: var(--accent-orange);
}

.footer-newsletter-btn {
    padding: 11px 20px;
    background: var(--accent-orange);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.footer-newsletter-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ==============================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (Tablets & Mobile Phones)
   Fixes masthead overlapping, search responsiveness, ticker crowding, 
   bento/grid layout stacking, reader controls, and touch optimization
   ============================================================================== */

@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }

    .mj-container {
        width: calc(100% - 32px);
    }

    .mj-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mj-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* 1. Masthead & Header Navigation */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 99;
    }

    .masthead-row {
        padding: 10px 0;
        gap: 12px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .masthead-branding {
        min-width: 0;
        flex: 1;
    }

    .site-title-link {
        gap: 10px;
        min-width: 0;
    }

    .site-title-link img {
        max-height: 36px !important;
        flex-shrink: 0;
    }

    .brand-crest {
        width: 34px;
        height: 34px;
        font-size: 18px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .site-name {
        font-size: 20px;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hide long tagline on mobile so it doesn't collide with actions */
    .site-tagline {
        display: none !important;
    }

    /* Swap full search input box for compact search icon button */
    .quick-search-box {
        display: none !important;
    }

    .header-search-mobile-btn {
        display: inline-flex !important;
    }

    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .btn-icon-reader {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    /* 2. Horizontal Categories Navigation Ribbon */
    .category-ribbon {
        -webkit-overflow-scrolling: touch;
    }

    .category-ribbon-list {
        padding: 7px 12px;
        gap: 6px;
    }

    .category-nav-link {
        padding: 5px 12px;
        font-size: 12.5px;
    }

    .cat-count-badge {
        font-size: 10px;
        padding: 1px 5px;
    }

    /* 3. Explorer Bar & Search Field */
    .mj-explorer {
        margin-top: 20px;
    }

    .mj-explorer-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 10px 0;
    }

    .mj-search,
    .mj-search:focus-within {
        width: 100% !important;
        order: -1;
        height: 40px;
    }

    .mj-chips {
        padding: 4px 0 6px;
        -webkit-overflow-scrolling: touch;
    }

    .mj-chip {
        font-size: 12.5px;
        padding: 6px 12px;
    }

    /* 4. Feed & Sort Segment */
    .mj-feed {
        padding: 28px 0 50px;
    }

    .mj-feed-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }

    .mj-feed-title {
        font-size: clamp(22px, 5vw, 30px);
    }

    .mj-seg {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 3px;
    }

    .mj-seg a {
        flex: 1;
        text-align: center;
        padding: 7px 8px;
        font-size: 12.5px;
    }

    /* 5. Bento & Grid Layouts */
    .mj-bento {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mj-card--bento-sm {
        flex-direction: column;
    }

    .mj-card--bento-sm .mj-card-media {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .mj-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mj-card {
        border-radius: 18px;
    }

    .mj-card-body {
        padding: 16px;
    }

    .mj-card-title {
        font-size: 17px;
        line-height: 1.35;
    }

    .mj-card-excerpt {
        font-size: 13.5px;
        line-height: 1.5;
    }

    .mj-pager {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mj-page {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }

    /* 6. Section Archive (category.php) */
    .mj-cat-hero {
        padding: 22px 0 28px;
    }

    .mj-cat-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .mj-cat-title {
        font-size: clamp(26px, 6vw, 38px);
    }

    .mj-cat-desc {
        font-size: 14px;
        margin-top: 6px;
    }

    .mj-stats {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 8px;
    }

    .mj-stats > div {
        padding: 10px 14px;
        border-radius: 12px;
    }

    .mj-stats dt {
        font-size: 10px;
    }

    .mj-stats dd {
        font-size: 22px;
    }

    .mj-stats dd.mj-stats-small {
        font-size: 15px;
    }

    /* 7. Article Reading Page (article.php) */
    .article-page-layout {
        padding: 14px 0 44px;
    }

    .article-headline {
        font-size: clamp(24px, 5.5vw, 36px);
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .article-subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .article-meta-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 16px;
        width: 100%;
    }

    .article-meta-stats {
        gap: 12px;
        font-size: 12px;
    }

    .speech-player-widget {
        padding: 10px 14px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .speech-info-title {
        font-size: 13px;
    }

    .speech-info-status {
        font-size: 11px;
    }

    .waveform-animation {
        display: none;
    }

    .article-reading-body {
        font-size: 16px;
        line-height: 1.7;
        word-break: break-word;
    }

    .article-reading-body img {
        max-width: 100% !important;
        height: auto !important;
        border-radius: 10px;
    }

    .article-reading-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .article-reading-body iframe {
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .article-engagement-bar {
        padding: 18px 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .share-buttons-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .share-btn {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 9px 8px;
    }

    .author-profile-box {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 16px 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .author-big-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        flex-shrink: 0;
    }

    .author-bio-title {
        font-size: 15px;
    }

    .author-bio-text {
        font-size: 12.5px;
        line-height: 1.5;
    }

    .post-nav {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .comment-form-card {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .comment-input-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .comment-item {
        padding: 14px 12px;
        border-radius: 14px;
    }

    /* 8. Footer */
    .site-footer {
        padding: 36px 0 24px;
    }

    .footer-newsletter-card {
        padding: 22px 18px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 32px;
    }

    .footer-newsletter-form {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 8px;
    }

    .footer-newsletter-input {
        width: 100%;
        padding: 11px 14px;
        border-radius: 8px;
        background: #0F172A;
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #FFFFFF;
        font-size: 13px;
        box-sizing: border-box;
    }

    .footer-newsletter-btn {
        width: 100%;
        padding: 11px 16px;
        background: var(--accent-orange);
        color: #FFFFFF;
        font-weight: 700;
        font-size: 13px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 28px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    /* Top Breaking Ticker: Hide date on phones so breaking story has full width */
    .ticker-right {
        display: none !important;
    }

    .ticker-inner {
        padding: 6px 0;
        gap: 8px;
    }

    .ticker-left {
        gap: 8px;
        width: 100%;
    }

    .ticker-badge {
        font-size: 9.5px;
        padding: 2px 6px;
        gap: 4px;
    }

    .ticker-pulse {
        width: 5px;
        height: 5px;
    }

    .ticker-slider {
        font-size: 11.5px;
        flex: 1;
        min-width: 0;
    }

    /* Lead Story Hero */
    .mj-lead {
        min-height: 400px;
        border-radius: 18px;
    }

    .mj-lead-content {
        padding: 18px 14px;
    }

    .mj-lead-tags {
        margin-bottom: 10px;
        gap: 6px;
    }

    .mj-pill {
        font-size: 10px;
        padding: 2px 7px;
    }

    .mj-lead-title {
        font-size: clamp(20px, 5.5vw, 26px);
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .mj-lead-excerpt {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mj-lead-foot {
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .mj-lead-byline strong {
        font-size: 13px;
    }

    .mj-lead-byline small {
        font-size: 11px;
    }

    .mj-cta {
        padding: 7px 12px;
        font-size: 11.5px;
    }

    /* Trending list */
    .mj-trending {
        padding: 16px 14px;
        border-radius: 18px;
        margin-top: 14px;
    }

    .mj-trending-item {
        padding: 12px 0;
        gap: 10px;
    }

    .mj-rank {
        font-size: 18px;
        width: 24px;
    }

    .mj-trending-item h3 {
        font-size: 14px;
        line-height: 1.35;
    }

    /* Search Dialog Modal on small phones */
    .search-modal-backdrop {
        padding: 16px 12px;
        align-items: flex-start;
    }

    .search-modal-dialog {
        border-radius: 16px;
        max-height: calc(100vh - 32px);
        display: flex;
        flex-direction: column;
    }

    .search-modal-bar {
        padding: 12px 14px;
    }

    .search-big-input {
        font-size: 15px;
    }

    .search-results-list {
        max-height: calc(100vh - 120px);
        padding: 8px;
    }

    .search-result-item {
        padding: 8px 10px;
    }

    .search-result-thumb {
        width: 44px;
        height: 44px;
    }

    .search-result-title {
        font-size: 13px;
    }

    /* Bookmark drawer */
    .bookmark-drawer {
        width: 100%;
        max-width: 100%;
    }

    /* Newsletter section */
    .mj-newsletter {
        padding: 36px 0;
    }

    .mj-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mj-newsletter-form {
        flex-direction: column;
        border-radius: 16px;
        gap: 8px;
    }

    .mj-newsletter-form input {
        width: 100%;
        padding: 11px 14px;
    }

    .mj-newsletter-form button {
        width: 100%;
        padding: 11px;
    }
}

@media (max-width: 440px) {
    .site-name {
        font-size: 18px;
    }

    .btn-font-adjust {
        display: none !important;
    }

    .header-actions {
        gap: 4px;
    }

    .btn-icon-reader {
        width: 33px;
        height: 33px;
    }
}
