/* ==========================================
   CSS VARIABLES (Custom Properties)
   These are like constants that can be reused throughout the CSS
   Change these values to update colors across the entire site
   ========================================== */
:root {
    /* EU Official Colors */
    --eu-blue: #003399;        /* Main EU blue - used for headers, buttons */
    --eu-gold: #FFCC00;        /* EU gold/yellow - used for stars, accents */
    --eu-light-blue: #0052CC;  /* Lighter blue for hover effects */
    --eu-dark-blue: #002266;   /* Darker blue for footer, emphasis */
    
    /* Text Colors */
    --text-primary: #1a1a1a;   /* Main text color (dark gray) */
    --text-secondary: #666666; /* Secondary text (medium gray) */
    
    /* Background Colors */
    --bg-primary: #ffffff;     /* White background */
    --bg-secondary: #f8f9fa;   /* Light gray background */
    --bg-tertiary: #e9ecef;    /* Slightly darker gray */
    
    /* Other Design Elements */
    --border-color: #dee2e6;   /* Border color for dividers */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);    /* Small shadow */
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);   /* Medium shadow */
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);   /* Large shadow */
    
    /* Layout Dimensions */
    --header-height: 64px;     /* Height of top navigation bar */
    --sidebar-width: 320px;    /* Width of left sidebar */
    --right-panel-width: 380px; /* Width of concordance panel */
}

/* ==========================================
   GLOBAL RESET
   Removes default browser styling for consistency
   ========================================== */
* {
    margin: 0;              /* Remove default margins */
    padding: 0;             /* Remove default padding */
    box-sizing: border-box; /* Include padding/border in element size */
}

/* ==========================================
   BODY STYLING
   Base styles for the entire page
   ========================================== */
body {
    /* Font stack - uses Inter if available, then system fonts */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;           /* Space between lines of text */
    -webkit-font-smoothing: antialiased;    /* Better font rendering on Mac */
    -moz-osx-font-smoothing: grayscale;     /* Better font rendering on Mac */
}

/* ==========================================
   HEADER STYLES
   Top navigation bar with logo and treaty buttons
   ========================================== */
.header {
    position: fixed;        /* Stays at top when scrolling */
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;          /* Ensures header stays above other content */
    box-shadow: var(--shadow-sm);
}

.header-content {
    height: 100%;
    max-width: 100%;
    padding: 0 20px;        /* Space on left and right */
    display: flex;          /* Flexbox for horizontal layout */
    align-items: center;    /* Vertically center items */
    justify-content: space-between; /* Space between logo and nav */
}

/* Logo section with EU stars */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;              /* Space between icon and text */
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;       /* Semi-bold */
    color: var(--eu-blue);
}

/* Treaty selection buttons container */
.header-nav {
    display: flex;
    gap: 8px;               /* Space between buttons */
}

/* Individual treaty buttons (TEU/TFEU) */
.nav-btn {
    padding: 8px 20px;
    background: none;       /* No background by default */
    border: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;        /* Hand cursor on hover */
    border-radius: 8px;     /* Rounded corners */
    transition: all 0.2s ease; /* Smooth color changes */
}

/* Hover effect for treaty buttons */
.nav-btn:hover {
    color: var(--eu-blue);
    background-color: var(--bg-secondary);
}

/* Active treaty button styling */
.nav-btn.active {
    color: var(--eu-blue);
    border-color: var(--eu-blue);
    background-color: rgba(0, 51, 153, 0.05); /* 5% transparent blue */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Main Layout */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--eu-blue);
    margin-bottom: 16px;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
}

/* Clear Search Button */
.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
}

.search-clear-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-clear-btn svg {
    width: 16px;
    height: 16px;
}

/* Search Results Count */
.search-results-count {
    padding: 8px 12px;
    background: var(--eu-blue);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 12px;
    animation: slideDown 0.3s ease;
}

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

.search-results-count.no-results {
    background: #dc3545;
}

#searchResultsText {
    display: block;
}

.articles-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Title Groups */
.title-group {
    margin-bottom: 8px;
}

.title-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 600;
    color: var(--eu-blue);
}

.title-header:hover {
    background-color: var(--bg-tertiary);
}

.title-header.active {
    background-color: var(--eu-blue);
    color: white;
}

.title-chevron {
    margin-right: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.title-chevron svg {
    width: 16px;
    height: 16px;
}

.title-header.expanded .title-chevron {
    transform: rotate(90deg);
}

.title-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-number {
    font-size: 14px;
    font-weight: 600;
}

.title-name {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
}

.title-articles {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.title-articles.expanded {
    max-height: 2000px;
}

.title-articles .article-item {
    margin-left: 20px;
    margin-right: 0;
}

/* Nested structure for TFEU Parts */
.part-group {
    margin-bottom: 12px;
}

.part-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background-color: var(--eu-blue);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 600;
}

.part-header:hover {
    background-color: var(--eu-light-blue);
}

.part-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.part-content.expanded {
    max-height: 5000px;
}

.part-content .title-group {
    margin-left: 12px;
}

/* Chapter styling for TFEU */
.chapter-group {
    margin-bottom: 6px;
    margin-left: 12px;
}

.chapter-header {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background-color: rgba(0, 51, 153, 0.05);
    border-left: 3px solid var(--eu-gold);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 14px;
    color: var(--text-primary);
}

.chapter-header:hover {
    background-color: rgba(0, 51, 153, 0.1);
}

.chapter-articles {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.chapter-articles.expanded {
    max-height: 1000px;
}

.chapter-articles .article-item {
    margin-left: 16px;
}

.article-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.article-item:hover {
    background-color: var(--bg-secondary);
}

.article-item.active {
    background-color: rgba(0, 51, 153, 0.08);
    border-color: var(--eu-blue);
}

.article-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-size: 15px;
}

.article-title {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Article View */
.article-view {
    flex: 1;
    background-color: var(--bg-primary);
    overflow-y: auto;
    position: relative;
}

.welcome-message {
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-message h2 {
    font-size: 32px;
    color: var(--eu-blue);
    margin-bottom: 16px;
}

.welcome-message p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.feature svg {
    color: var(--eu-blue);
    flex-shrink: 0;
}

.article-content {
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--eu-blue);
}

.article-header h2 {
    font-size: 32px;
    color: var(--eu-blue);
    margin-bottom: 8px;
}

.article-header h3 {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 400;
}

.article-text {
    margin-bottom: 40px;
}

.article-text p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
}

.article-text p:last-child {
    margin-bottom: 0;
}

/* Skeleton content for empty articles */
.skeleton-message {
    color: var(--text-secondary);
    font-style: italic;
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Article Meta Section */
.article-meta {
    background-color: var(--bg-secondary);
    padding: 32px;
    border-radius: 12px;
    margin-top: 40px;
}

.meta-section {
    margin-bottom: 32px;
}

.meta-section:last-child {
    margin-bottom: 0;
}

.meta-section h4 {
    font-size: 18px;
    color: var(--eu-blue);
    margin-bottom: 16px;
    font-weight: 600;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background-color: var(--eu-gold);
    color: var(--eu-dark-blue);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.case-law-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.case-item {
    background-color: var(--bg-primary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.case-item:hover {
    border-color: var(--eu-blue);
    box-shadow: var(--shadow-sm);
}

.case-link {
    color: var(--eu-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: block;
    margin-bottom: 6px;
}

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

.case-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Right Panel */
.right-panel {
    width: var(--right-panel-width);
    background-color: var(--bg-primary);
    border-left: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease;
}

.right-panel.collapsed {
    transform: translateX(100%);
}

.panel-toggle {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 64px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.panel-toggle:hover {
    background-color: var(--bg-secondary);
}

.panel-toggle svg {
    transition: transform 0.3s ease;
}

.right-panel.collapsed .panel-toggle svg {
    transform: rotate(180deg);
}

.panel-content {
    padding: 24px;
    height: 100%;
    overflow-y: auto;
}

.panel-content h3 {
    font-size: 20px;
    color: var(--eu-blue);
    margin-bottom: 16px;
}

/* Concordance Tabs */
.concordance-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    background-color: var(--bg-secondary);
    padding: 4px;
    border-radius: 8px;
}

.concordance-tab {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.concordance-tab:hover {
    color: var(--text-primary);
    background-color: rgba(0, 51, 153, 0.05);
}

.concordance-tab.active {
    background-color: var(--bg-primary);
    color: var(--eu-blue);
    box-shadow: var(--shadow-sm);
}

.concordance-content {
    position: relative;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.tab-content.active {
    display: flex;
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 20px;
}

.evolution-item {
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--eu-gold);
}

.evolution-treaty {
    font-weight: 600;
    color: var(--eu-dark-blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.evolution-year {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.evolution-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Equivalents Section */
.equivalent-item {
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--eu-blue);
}

.equivalent-treaty {
    font-weight: 600;
    color: var(--eu-blue);
    margin-bottom: 8px;
    font-size: 15px;
}

.equivalent-article {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.equivalent-note {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Content Changes Section */
.change-item {
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.change-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.change-treaty {
    font-weight: 600;
    color: var(--eu-dark-blue);
    font-size: 15px;
}

.change-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.change-type.added {
    background-color: #dcfce7;
    color: #166534;
}

.change-type.modified {
    background-color: #fef3c7;
    color: #92400e;
}

.change-type.removed {
    background-color: #fee2e2;
    color: #991b1b;
}

.change-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.change-detail {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 16px;
    border-left: 2px solid var(--border-color);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--eu-dark-blue);
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--eu-gold);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 8px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Smooth scrolling */
.articles-nav {
    scroll-behavior: smooth;
}

.article-view {
    scroll-behavior: smooth;
}

/* Mobile Concordance Button */
.mobile-concordance-btn {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--eu-blue);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.3);
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
}

.mobile-concordance-btn:active {
    transform: scale(0.95);
}

.mobile-concordance-btn svg {
    color: var(--eu-gold);
    width: 28px;
    height: 28px;
}

.mobile-concordance-btn:hover {
    background: var(--eu-light-blue);
    box-shadow: 0 6px 16px rgba(0, 51, 153, 0.4);
}

/* Mobile Bottom Sheet */
.mobile-bottom-sheet {
    display: none; /* Hidden on desktop */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    max-height: 80vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-sheet.active {
    transform: translateY(0);
}

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

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.bottom-sheet-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--eu-blue);
    margin: 0;
}

.bottom-sheet-close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.bottom-sheet-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.bottom-sheet-close svg {
    width: 24px;
    height: 24px;
}

.bottom-sheet-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

.bottom-sheet-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.active {
    opacity: 1;
}

/* Bottom Sheet Content Styling */
.concordance-section {
    margin-bottom: 24px;
}

.concordance-section:last-child {
    margin-bottom: 0;
}

.concordance-tab-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--eu-blue);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--eu-gold);
}

.concordance-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.concordance-item:last-child {
    margin-bottom: 0;
}

.concordance-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.concordance-year {
    color: var(--text-secondary);
    font-size: 14px;
}

.change-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.change-added {
    background: #d4edda;
    color: #155724;
}

.change-modified {
    background: #fff3cd;
    color: #856404;
}

.change-removed {
    background: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px 16px;
    font-style: italic;
}

/* Mobile Styles */
@media (max-width: 1024px) {
    .right-panel {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 100;
        box-shadow: var(--shadow-lg);
    }
    
    .right-panel.collapsed {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --sidebar-width: 280px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 12px 20px;
        display: none;
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        z-index: 999;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .mobile-overlay {
        display: block;
    }
    
    .article-content {
        padding: 24px 20px;
    }
    
    .article-header h2 {
        font-size: 24px;
    }
    
    .article-header h3 {
        font-size: 18px;
    }
    
    .panel-toggle {
        display: none;
    }
    
    .right-panel {
        width: 100%;
        transform: translateX(100%);
    }
    
    .right-panel.active {
        transform: translateX(0);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer {
        padding: 24px 0;
    }

    /* Show mobile concordance elements */
    .mobile-concordance-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-bottom-sheet {
        display: block;
    }

    .bottom-sheet-backdrop {
        display: block;
    }
}