/* 
   Cosmopolitan Magazine Stylesheet
   Vanilla CSS Design System for cosmopolitan-scg.com
   White base, dark text, and #ed018c (Pink/Magenta) accents.
*/

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f9f9f9;
    --text-main: #111111;
    --text-muted: #555555;
    
    /* Cosmopolitan Brand Accent HSL Palette */
    --accent: #ed018c;
    --accent-hover: #c60073;
    --accent-light: #fdf0f7;
    --accent-gradient: linear-gradient(135deg, #ed018c 0%, #b90069 100%);
    
    --border-color: #eaeaea;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
    
    --font-heading: 'League Gothic', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-main);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
    transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media(min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo-wrapper {
    text-align: center;
}

@media(min-width: 768px) {
    .logo-wrapper {
        text-align: left;
    }
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    display: inline-block;
    position: relative;
}

.site-logo::after {
    display: none;
}

.logo-slogan {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link i {
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile responsive menu */
@media(max-width: 767px) {
    .nav-toggle {
        display: flex;
        position: absolute;
        right: 24px;
        top: 25px;
    }
    
    .site-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-color);
    }
    
    .site-nav.active {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Progress indicator */
.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    position: sticky;
    top: 75px;
    z-index: 99;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0;
}

/* Magazine Hero Section on Home Page */
.magazine-hero-block {
    padding: 40px 0;
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 992px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Primary Featured Card */
.mag-prim-card {
    display: block;
    background: var(--primary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mag-prim-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.mag-prim-img-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.mag-prim-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mag-prim-card:hover .mag-prim-img-wrap img {
    transform: scale(1.05);
}

.category-badge-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.mag-prim-body {
    padding: 30px;
}

.mag-prim-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.mag-prim-title {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.mag-prim-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.mag-read-more {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Secondary Featured List */
.sidebar-widget-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-mag-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mag-sec-card {
    display: flex;
    gap: 15px;
    background: var(--primary-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.mag-sec-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.mag-sec-thumb-wrap {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
}

.mag-sec-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mag-sec-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mag-sec-category {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mag-sec-title {
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--text-main);
}

/* Feed Section / Grid */
.all-articles-section {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filter tabs styling */
.category-filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-tab {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(237, 1, 140, 0.2);
}

/* Grid Cards */
.articles-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media(min-width: 576px) {
    .articles-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 992px) {
    .articles-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mag-article-card {
    display: flex;
    flex-direction: column;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.mag-article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.mag-card-img-wrap {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
}

.mag-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mag-article-card:hover .mag-card-img-wrap img {
    transform: scale(1.05);
}

.mag-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--text-main);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
}

.mag-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.mag-card-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-main);
}

.mag-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Article view layout */
.main-article {
    padding-bottom: 60px;
}

.article-header-hero {
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0 40px;
    text-align: center;
}

.article-category-badge {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.article-title {
    font-size: 3.8rem;
    line-height: 1;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.article-grid-layout > * {
    min-width: 0;
}

@media(min-width: 992px) {
    .article-grid-layout {
        grid-template-columns: 3fr 1.3fr;
    }
}

.article-cover-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    aspect-ratio: 16/9;
}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Key takeaways block */
.takeaways-block {
    background-color: var(--accent-light);
    border-left: 5px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 24px;
    margin-bottom: 35px;
}

.takeaways-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
}

.takeaways-list {
    list-style: none;
}

.takeaways-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.takeaways-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Table of Contents */
.toc-mobile-widget {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

@media(min-width: 992px) {
    .toc-mobile-widget {
        display: none;
    }
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
}

.toc-list a {
    color: var(--text-muted);
    font-weight: 500;
}

.toc-list a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Article rich text formatting */
.article-rich-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-main);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.article-rich-text p {
    margin-bottom: 25px;
}

.article-rich-text h2 {
    font-size: 2.2rem;
    margin: 45px 0 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.article-rich-text h3 {
    font-size: 1.6rem;
    margin: 30px 0 15px;
}

.article-rich-text blockquote {
    background-color: #fafafa;
    border-left: 4px solid var(--text-main);
    padding: 20px;
    font-style: italic;
    margin: 30px 0;
    color: var(--text-muted);
}

.article-rich-text ul, .article-rich-text ol {
    margin: 0 0 30px 25px;
}

.article-rich-text li {
    margin-bottom: 10px;
}

.article-rich-text blockquote.alert-block {
    border-radius: 0 8px 8px 0;
    border-left-width: 5px;
}

.article-rich-text blockquote.alert-block-note {
    border-left-color: #0d6efd;
    background-color: #f0f6ff;
}

.article-rich-text blockquote.alert-block-tip {
    border-left-color: #198754;
    background-color: #f0fcf4;
}

/* Table styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 35px 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

th, td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--secondary-bg);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-main);
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #fafafa;
}

/* Call to action card banner (No open 011info mention) */
.cta-banner-box {
    background: var(--accent-gradient);
    border-radius: 12px;
    padding: 40px;
    color: #ffffff;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(237, 1, 140, 0.15);
}

.cta-title {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 35px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--text-main);
    color: #ffffff;
    transform: translateY(-2px);
}

/* FAQ Accordion Section */
.faq-section-block {
    margin-top: 60px;
}

.faq-section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.faq-chevron {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* References and Footnotes section */
.references-section, .footnotes-section {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.references-title, .footnotes-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.references-list, .footnotes-list {
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.references-list li, .footnotes-list li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footnote-backref {
    color: var(--accent);
    margin-left: 5px;
    font-weight: bold;
}

/* Sidebar styling */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
}

.widget-title {
    font-size: 1.5rem;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sadrzaj TOC Widget in sidebar */
.sidebar-widget.toc-widget {
    display: none;
}

@media(min-width: 992px) {
    .sidebar-widget.toc-widget {
        display: block;
    }
}

/* Athletes Sidebar widget */
.athletes-links-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

@media(min-width: 576px) and (max-width: 991px) {
    .athletes-links-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.athletes-links-list a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.athletes-links-list a:hover {
    color: var(--accent);
    padding-left: 4px;
}

/* Sidebar Recent Posts widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-link {
    display: block;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.recent-post-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.recent-post-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    margin-bottom: 4px;
}

.recent-post-link:hover .recent-post-title {
    color: var(--accent);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Support partners / Footer Support */
.support-partners-section {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
}

.partners-box {
    text-align: center;
}

.partners-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media(min-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partner-link {
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.partner-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Main Site Footer */
.site-footer {
    background-color: var(--text-main);
    color: #ffffff;
    padding: 60px 0 30px;
}

.site-footer h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 1.5px solid var(--accent);
    padding-bottom: 5px;
    display: inline-block;
}

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

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media(min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 2px;
}

.footer-about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.7;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 10px;
}

.footer-links-list a {
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-links-list a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Mobile Typography & Layout Fixes */
@media (max-width: 767px) {
    .site-logo {
        font-size: 2.2rem;
    }
    .logo-slogan {
        font-size: 0.75rem;
        letter-spacing: 0.02em;
    }
    .article-title {
        font-size: 2.2rem;
        word-wrap: break-word;
        line-height: 1.1;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.4rem;
    }
    .article-header-hero {
        padding: 30px 0 20px;
    }
    .article-cover-wrap {
        margin-bottom: 20px;
    }
    .article-meta-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    /* Make support partners section a single column widget on mobile */
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .partner-link {
        white-space: normal;
        text-align: center;
        word-break: break-word;
        padding: 12px;
    }
    /* Force tables to remain readable with vertical text wrapping and horizontal scrolling */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
        -webkit-overflow-scrolling: touch;
        margin: 25px 0;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    table {
        width: 100% !important;
        min-width: 600px !important; /* Force a scrollable size on mobile so it doesn't break columns */
        font-size: 0.85rem;
    }
    th, td {
        padding: 10px 12px !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    /* Fix horizontal layout scaling and reduce padding to maximize screen space */
    .container {
        padding: 0 16px;
    }
}
