/* ==========================================================================
   GreenDeal.fr - Article Page Styles
   ========================================================================== */

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-400), var(--emerald-400), var(--teal-400));
    z-index: 1000;
    width: 0%;
    display: none;
}

@media (max-width: 900px) {
    .scroll-progress {
        display: block;
    }
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.main-container {
    width: 100%;
    padding: 80px 1.5rem 2rem;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   Left Sidebar
   ========================================================================== */
.toc-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Author Card in Sidebar */
.author-card {
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.author-main {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-400), var(--emerald-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.author-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.author-label {
    font-size: inherit;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gray-800);
}

.author-link {
    color: inherit;
    text-decoration: none;
}

.author-link:hover {
    color: var(--green-700);
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.15rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gray-500);
}

.meta-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-500), var(--emerald-500));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.meta-icon svg {
    width: 10px;
    height: 10px;
}

.author-meta time {
    color: var(--gray-500);
}

.author-meta a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.author-meta a:hover {
    color: var(--green-700);
}

.author-bio {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gray-600);
}

/* ==========================================================================
   TOC Card
   ========================================================================== */
.toc-card {
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.toc-nav {
    position: relative;
}

.toc-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.toc-item {
    margin-bottom: 0.25rem;
}

.toc-link {
    --toc-read-progress: 0%;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    border-radius: 8px;
    background-image: linear-gradient(90deg, rgba(74, 222, 128, 0.12), rgba(16, 185, 129, 0.08));
    background-size: var(--toc-read-progress) 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
    transition: all 0.2s var(--transition-smooth);
}

.toc-link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray-300);
    flex-shrink: 0;
    transition: all 0.2s var(--transition-smooth);
}

.toc-link:hover,
.toc-link.active {
    background-color: rgba(34, 197, 94, 0.08);
    color: var(--green-700);
}

.toc-link:hover::before,
.toc-link.active::before {
    background: var(--green-500);
    transform: scale(1.4);
}

.toc-link.active {
    font-weight: 500;
}

/* Reading Progress */
.reading-progress {
    margin-bottom: 0.7rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.progress-time {
    font-size: 0.7rem;
    color: var(--gray-400);
    background: rgba(0,0,0,0.04);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* ==========================================================================
   Article Content
   ========================================================================== */
.article-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    min-width: 0;
    padding-top: 0.5rem;
}

.article {
    width: 100%;
    max-width: 980px;
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
    overflow: hidden;
}

/* Article Header */
.article-header {
    padding: 1.25rem 2rem 0.75rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
}

.article-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 0.65rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--green-700);
}

.breadcrumb-sep {
    color: var(--gray-400);
}

/* Article Body */
.article-body {
    padding: 1rem 2rem 2rem;
}

.article-body-inner {
    margin: 0 clamp(1.5rem, 5vw, 4rem);
}

.article-body h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 1.75rem 0 0.65rem;
    padding-top: 0.5rem;
    scroll-margin-top: 90px;
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.article-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.25rem 0 0.5rem;
}

.article-body p {
    margin-bottom: 0.9rem;
    color: var(--gray-700);
}

.article-body ul,
.article-body ol {
    margin: 0.65rem 0 1rem 1.25rem;
    color: var(--gray-700);
}

.article-body li {
    margin-bottom: 0.35rem;
}

.article-body a {
    color: var(--green-800);
    text-decoration: underline;
    text-decoration-color: var(--green-300);
    text-underline-offset: 2px;
    transition: all 0.2s var(--transition-smooth);
}

.article-body a:hover {
    color: var(--green-600);
    text-decoration-color: var(--green-500);
}

.article-body strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* ==========================================================================
   Summary Box
   ========================================================================== */
.summary-box {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.7), rgba(209, 250, 229, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(134, 239, 172, 0.4);
    border-left: 3px solid var(--green-500);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
    transition: all 0.3s var(--transition-smooth);
}

.summary-box:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 6px 20px rgba(34, 197, 94, 0.12);
}

.summary-header {
    margin-bottom: 0.6rem;
}

.summary-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--green-800);
}

.summary-content {
    color: var(--green-900);
    font-size: 0.92rem;
}

.summary-content ul {
    margin: 0;
    padding-left: 1rem;
}

.summary-content li {
    margin-bottom: 0.3rem;
}

.summary-content li::marker {
    color: var(--green-500);
}

/* ==========================================================================
   Good to Know Box
   ========================================================================== */
.good-to-know {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.7), rgba(254, 249, 195, 0.5));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(252, 211, 77, 0.4);
    border-left: 3px solid #f59e0b;
    border-radius: 12px;
    padding: 0.7rem 1.15rem 1rem;
    margin: 1rem 0;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6);
    transition: all 0.3s var(--transition-smooth);
}

.good-to-know:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 6px 20px rgba(245, 158, 11, 0.12);
}

.good-to-know-header {
    margin-bottom: 0.6rem;
}

.good-to-know-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #92400e;
}

.good-to-know-content {
    color: #78350f;
    font-size: 0.92rem;
}

.good-to-know-content p {
    margin: 0;
    color: inherit;
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin: 1rem 0;
}

.stat-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 0.65rem;
    text-align: center;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
    transition: all 0.3s var(--transition-smooth);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 10px 28px rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green-600), var(--emerald-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
    line-height: 1.3;
}

/* ==========================================================================
   Quote Block
   ========================================================================== */
.quote-block {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
    transition: all 0.3s var(--transition-smooth);
}

.quote-block:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 6px 20px rgba(0,0,0,0.06);
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: 0.25rem;
    left: 0.85rem;
    font-size: 3rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--green-200);
    line-height: 1;
}

.quote-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--gray-700);
    padding-left: 1.25rem;
}

.quote-author {
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.85rem;
    padding-left: 1.25rem;
}

/* ==========================================================================
   Chart
   ========================================================================== */
.chart-container {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem auto;
    max-width: 520px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.chart-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.chart-tabs {
    display: flex;
    gap: 0.2rem;
    background: rgba(0,0,0,0.04);
    padding: 0.15rem;
    border-radius: 6px;
}

.chart-tab {
    padding: 0.3rem 0.65rem;
    border: none;
    background: transparent;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
}

.chart-tab:hover {
    color: var(--gray-700);
}

.chart-tab.active {
    background: white;
    color: var(--green-700);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 120px;
    padding: 0.5rem 0.25rem;
    gap: 0.6rem;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 0 1 64px;
}

.chart-bar {
    width: 100%;
    max-width: 45px;
    background: linear-gradient(180deg, var(--green-400), var(--emerald-500));
    border-radius: 5px 5px 0 0;
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.chart-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.chart-bar::after {
    content: attr(data-value);
    position: absolute;
    top: -1.3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--green-700);
    opacity: 0;
    transition: opacity 0.2s;
}

.chart-bar:hover::after {
    opacity: 1;
}

.chart-bar-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    text-align: center;
}

/* ==========================================================================
   Takeaways
   ========================================================================== */
.takeaways-inline {
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
}

.takeaways-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}

.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.takeaway-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.5rem 0.65rem;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s var(--transition-smooth);
}

.takeaway-item:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

.takeaway-check {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--green-400), var(--emerald-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-top: 1px;
}

.takeaway-check svg {
    width: 9px;
    height: 9px;
}

.takeaway-text {
    font-size: 0.82rem;
    color: var(--gray-700);
    line-height: 1.4;
}

/* ==========================================================================
   Related Articles
   ========================================================================== */
.related-section {
    width: 100%;
    max-width: 980px;
    margin-top: 0.4rem;
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.related-link {
    font-size: 0.8rem;
    color: var(--green-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.related-link:hover {
    color: var(--green-700);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.related-card {
    position: relative;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.related-card-image {
    height: 90px;
    background: linear-gradient(135deg, var(--green-100), var(--emerald-100));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.related-card-content {
    padding: 0.85rem;
}

.related-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.related-card-title a {
    color: inherit;
    text-decoration: none;
}

.related-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.related-card-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
    margin-top: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color 0.2s var(--transition-smooth);
}

.faq-question:hover {
    color: var(--green-700);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 50%;
    color: var(--green-600);
    transition: all 0.3s var(--transition-smooth);
}

.faq-icon svg {
    transition: transform 0.3s var(--transition-smooth);
}

.faq-item.open .faq-icon {
    background: rgba(34, 197, 94, 0.15);
}

.faq-item.open .faq-icon svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--transition-smooth);
}

.faq-answer-inner {
    padding: 0 0.25rem 1rem;
}

.faq-answer-inner p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Article Footer
   ========================================================================== */
.footer {
    margin-top: 2rem;
    padding: 1.25rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--green-600);
}

/* ==========================================================================
   Mobile TOC Collapsible
   ========================================================================== */
.mobile-toc {
    display: none;
    margin: 0.75rem 0;
}

.mobile-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: all 0.2s var(--transition-smooth);
}

.mobile-toc-toggle:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

.mobile-toc-toggle-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: transform 0.3s var(--transition-smooth);
}

.mobile-toc.open .mobile-toc-toggle-icon {
    transform: rotate(180deg);
}

.mobile-toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--transition-smooth);
}

.mobile-toc.open .mobile-toc-content {
    max-height: 300px;
}

.mobile-toc-list {
    list-style: none;
    padding: 0.4rem 0 0.2rem;
    margin: 0;
}

.mobile-toc-list li {
    margin: 0;
}

.mobile-toc-list a {
    display: block;
    padding: 0.45rem 0.9rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s var(--transition-smooth);
}

.mobile-toc-list a:hover,
.mobile-toc-list a.active {
    color: var(--green-700);
    background: rgba(34, 197, 94, 0.08);
}

/* Mobile Author Card */
.mobile-author {
    display: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 70px 1rem 80px;
    }

    .toc-sidebar {
        display: none;
    }

    .mobile-toc {
        display: block;
    }

    .mobile-author {
        display: block;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid var(--glass-border);
        border-radius: 14px;
        padding: 1rem;
        box-shadow: none;
    }

    .mobile-author .author-main {
        gap: 0;
    }

    .mobile-author .author-name {
        gap: 0;
        flex-wrap: nowrap;
    }

    .article-body-inner {
        margin: 0 1rem;
    }
}

@media (max-width: 900px) {
    .main-container {
        padding: 65px 0.75rem 75px;
        gap: 0.75rem;
    }

    .mobile-author {
        border-radius: 12px;
        padding: 0.85rem;
    }

    .mobile-author .author-main {
        gap: 0.5rem;
    }

    .mobile-author .author-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .mobile-author .author-name {
        font-size: 0.85rem;
    }

    .mobile-author .author-meta {
        font-size: 0.7rem;
    }

    .mobile-author .author-bio {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }

    .article {
        border-radius: 14px;
    }

    .article-header {
        padding: 1rem 1rem 0.5rem;
    }

    .article-body {
        padding: 0.75rem 1rem 1.25rem;
    }

    .article-body-inner {
        margin: 0;
    }

    .article-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.5rem;
    }

    .article-body h3 {
        font-size: 1rem;
    }

    .article-body p {
        font-size: 0.92rem;
        margin-bottom: 0.75rem;
    }

    .article-body ul, .article-body ol {
        margin: 0.5rem 0 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .summary-box, .good-to-know {
        padding: 0.85rem 1rem;
        margin: 0.75rem 0;
    }

    .article-body-inner > .summary-box {
        margin-top: 0.35rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        margin: 0.75rem 0;
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
        padding: 0.6rem 0.75rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .chart-container {
        padding: 0.75rem;
        margin: 0.75rem auto;
    }

    .takeaways-inline {
        padding: 0.85rem;
        margin: 0.75rem 0;
    }

    .takeaways-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .takeaway-item {
        padding: 0.4rem 0.5rem;
    }

    .quote-block {
        padding: 1rem;
        margin: 0.75rem 0;
    }

    .faq-question {
        font-size: 0.88rem;
        padding: 0.85rem 0.15rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
    }

    .faq-icon svg {
        width: 14px;
        height: 14px;
    }

    .faq-answer-inner {
        padding: 0 0.15rem 0.85rem;
    }

    .faq-answer-inner p {
        font-size: 0.85rem;
    }

    .related-section {
        padding: 1rem;
        margin-top: 0.3rem;
        border-radius: 14px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .related-card {
        border-radius: 10px;
    }

    .related-card-image {
        height: 70px;
    }

    .related-card-content {
        padding: 0.7rem;
    }

    .footer {
        margin-top: 1rem;
        padding: 1rem 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 60px 0.5rem 70px;
        gap: 0.6rem;
    }

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

    .article-header {
        padding: 0.85rem 0.85rem 0.4rem;
    }

    .article-body {
        padding: 0.6rem 0.85rem 1rem;
    }

    .chart-bars {
        height: 90px;
    }

    .breadcrumb {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .scroll-progress, .toc-sidebar {
        display: none !important;
    }
    .main-container {
        display: block;
        padding: 0;
    }
    .article {
        box-shadow: none;
        border: none;
    }
}
