/* Base styles optimized for iframe and mobile-first design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    height: 100vh;
    overflow-x: hidden;
}

/* Main game container - responsive height */
.game-container {
    width: 100%;
    height: 450px; /* Default iframe height */
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

/* Detect if running in new tab vs iframe */
@media (min-height: 600px) {
    .game-container {
        height: 90vh;
        padding: 12px;
        gap: 12px;
    }
}

/* Resource Dashboard - Always visible at top */
.resource-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.resource-item {
    text-align: center;
    cursor: help;
    transition: transform 0.2s ease;
}

.resource-item:hover {
    transform: translateY(-2px);
}

.resource-label {
    display: block;
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.resource-value {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 2px;
}

/* Worker Pool */
.worker-pool {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.worker-pool-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
    cursor: help;
}

.workers {
    display: flex;
    gap: 8px;
}

.worker {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.worker.available {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.worker.used {
    background: #bdc3c7;
    opacity: 0.6;
    transform: scale(0.9);
}

/* National Sectors Grid */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    flex: 1;
}

.sector-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sector-card:hover:not(.filled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: #3498db;
}

.sector-card.filled {
    background: #ecf0f1;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #95a5a6;
}

.sector-category {
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    margin-bottom: 4px;
}

.sector-name {
    font-weight: 600;
    font-size: 0.85em;
    color: #2c3e50;
    line-height: 1.2;
    margin-bottom: 4px;
}

.sector-reward {
    font-size: 0.8em;
    color: #27ae60;
    font-weight: 500;
}

/* National Priorities Section */
.priorities-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.priorities-header {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
    font-size: 1em;
    cursor: help;
}

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.priority-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.priority-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.priority-title {
    font-weight: 600;
    font-size: 0.85em;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.2;
}

.priority-category {
    font-size: 0.7em;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-helps {
    font-size: 0.7em;
    color: #495057;
    margin-bottom: 4px;
}

.priority-cost {
    font-size: 0.75em;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 2px;
}

.priority-reward {
    font-size: 0.75em;
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 6px;
}

.fund-button {
    width: 100%;
    padding: 6px 8px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fund-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.fund-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* End Turn Section */
.end-turn-section {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.end-turn-button {
    padding: 12px 24px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.end-turn-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.end-turn-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px; /* Increased width for decision summary */
    max-height: 85vh; /* Added max height for scrolling */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow-y: auto; /* Added scrolling for long content */
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #2c3e50;
}

.final-score {
    font-size: 2em;
    font-weight: bold;
    color: #27ae60;
    margin: 16px 0;
    text-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

/* Added: Decision Summary Styles */
.decision-summary {
    margin-top: 24px;
    text-align: left;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #dee2e6;
}

.decision-summary h3 {
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 16px;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.summary-section {
    margin-bottom: 16px;
}

.summary-section h4 {
    color: #34495e;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 600;
}

.funded-projects-list {
    background: white;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #e9ecef;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #f1f3f4, #e8eaf6);
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

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

.project-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85em;
}

.project-nwp {
    color: #27ae60;
    font-weight: 600;
    font-size: 0.8em;
}

.deployment-summary, .resource-summary {
    background: white;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    font-size: 0.85em;
    color: #495057;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.no-projects {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 12px;
    font-size: 0.85em;
}

.modal-footer {
    padding: 16px 20px;
    text-align: center;
    border-top: 1px solid #ecf0f1;
}

.modal-button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-button:hover {
    background: linear-gradient(45deg, #2980b9, #1f5f8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    max-width: 250px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.tooltip.show {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .game-container {
        padding: 6px;
        gap: 6px;
    }
    
    .resource-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 8px;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .priorities-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .worker-pool {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .worker {
        width: 28px;
        height: 28px;
        font-size: 1em;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-width: 95%;
    }
    
    /* Mobile adjustments for decision summary */
    .decision-summary {
        padding: 12px;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .project-nwp {
        align-self: flex-end;
    }
}

/* Touch target optimization for mobile */
@media (pointer: coarse) {
    .sector-card {
        min-height: 90px;
        padding: 14px;
    }

    .fund-button {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .end-turn-button {
        padding: 14px 28px;
        font-size: 1em;
    }
}

/* ===== PROGRESSIVE HINT ANIMATIONS ===== */

/* Sector cards pulse blue when a team is available to deploy */
@keyframes sectorHintGlow {
    0%, 100% { border-color: transparent; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
    50%  { border-color: rgba(102,126,234,0.7); box-shadow: 0 0 0 3px rgba(102,126,234,0.2), 0 4px 16px rgba(102,126,234,0.25); }
}
.sector-card.hint-pulse:not(.filled) {
    animation: sectorHintGlow 1.8s ease-in-out infinite;
    cursor: pointer;
}

/* Fund buttons shimmer green when affordable */
@keyframes fundHintShimmer {
    0%, 100% { box-shadow: 0 1px 4px rgba(52,152,219,0.2); }
    50%  { box-shadow: 0 0 0 3px rgba(39,174,96,0.35), 0 2px 12px rgba(39,174,96,0.3); }
}
.fund-button.hint-pulse:not(:disabled) {
    animation: fundHintShimmer 1.6s ease-in-out infinite;
    background: linear-gradient(45deg, #27ae60, #1e8449) !important;
}

/* End Fiscal Year button pulses when all teams deployed */
@keyframes endTurnHintPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(231,76,60,0.3); transform: scale(1); }
    50%  { box-shadow: 0 0 0 8px rgba(231,76,60,0.18), 0 6px 20px rgba(231,76,60,0.45); transform: scale(1.04); }
}
.end-turn-button.hint-ready {
    animation: endTurnHintPulse 1.4s ease-in-out infinite;
}

/* Next-step banner */
.next-step-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.8em;
    font-weight: 600;
    transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.next-step-banner.phase-deploy {
    background: linear-gradient(135deg, #ebf5fb, #d6eaf8);
    border: 1.5px solid #5dade2;
    color: #1a5276;
}
.next-step-banner.phase-fund {
    background: linear-gradient(135deg, #eafaf1, #d5f5e3);
    border: 1.5px solid #27ae60;
    color: #1e8449;
}
.next-step-banner.phase-end {
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    border: 1.5px solid #f39c12;
    color: #7d6608;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}
.next-step-icon {
    font-size: 1.1em;
    display: inline-block;
    animation: iconBounce 1s ease-in-out infinite;
}

/* ===== WORKER POOL CLARITY OVERRIDES ===== */
.worker-pool {
    flex-direction: column;
    gap: 5px;
    padding: 10px 16px;
}

.worker-pool-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.worker-count {
    font-size: 0.78em;
    font-weight: 700;
    color: #27ae60;
    white-space: nowrap;
    background: #eafaf1;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #a9dfbf;
}

.worker-count.depleted {
    color: #95a5a6;
    background: #f2f3f4;
    border-color: #d5d8dc;
}

.worker-hint {
    font-size: 0.74em;
    color: #667eea;
    font-style: italic;
    text-align: center;
    width: 100%;
}

/* ===== INTRO MODAL ===== */
.intro-modal-content {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden; /* body scrolls, footer stays pinned */
}

.intro-modal-content .modal-body {
    overflow-y: auto;
    flex: 1;
}

.intro-modal-content .modal-footer {
    flex-shrink: 0; /* always visible, never pushed off-screen */
}

.intro-subtitle {
    font-size: 1.05em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px !important;
}

.intro-steps {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0;
}

.intro-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.88em;
    color: #2c3e50;
    line-height: 1.4;
}

.intro-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-num {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78em;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.intro-glossary {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    text-align: left;
}

.intro-glossary h4 {
    color: #856404;
    font-size: 0.8em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glossary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
}

.glossary-grid div {
    font-size: 0.8em;
    color: #495057;
}

.term {
    font-weight: 700;
    color: #495057;
    display: block;
}

.intro-footer {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.start-game-button {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    font-size: 1em !important;
    padding: 12px 32px !important;
    letter-spacing: 0.5px !important;
}

.intro-note {
    font-size: 0.75em;
    color: #6c757d;
    margin: 0 !important;
}

/* ===== HOW TO PLAY BUTTON ===== */
.how-to-play-btn {
    background: rgba(102, 126, 234, 0.12);
    border: 1.5px solid #667eea;
    color: #667eea;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.how-to-play-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* ===== CURRENT EVENT BANNER ===== */
.event-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1.5px solid #ffc107;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    animation: bannerSlideIn 0.4s ease-out;
}

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

.event-banner-badge {
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #856404;
    background: rgba(255, 193, 7, 0.25);
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-banner-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.event-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.event-banner-title {
    font-weight: 700;
    font-size: 0.82em;
    color: #856404;
}

.event-banner-text {
    font-size: 0.76em;
    color: #6c5700;
    line-height: 1.3;
}

/* ===== CATEGORY COLOUR-CODING ===== */
.cat-health        { border-left: 4px solid #e74c3c !important; }
.cat-economy       { border-left: 4px solid #3498db !important; }
.cat-social        { border-left: 4px solid #f39c12 !important; }
.cat-defence       { border-left: 4px solid #2c3e50 !important; }
.cat-sustainability{ border-left: 4px solid #27ae60 !important; }
.cat-education     { border-left: 4px solid #9b59b6 !important; }

.priority-category {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cat-badge-health         { background: #fdecea; color: #c0392b; }
.cat-badge-economy        { background: #ebf5fb; color: #2980b9; }
.cat-badge-social         { background: #fef9e7; color: #d68910; }
.cat-badge-defence        { background: #eaecee; color: #2c3e50; }
.cat-badge-sustainability { background: #eafaf1; color: #1e8449; }
.cat-badge-education      { background: #f5eef8; color: #7d3c98; }

/* ===== SECTOR DEPLOY FLASH ANIMATION ===== */
@keyframes deployFlash {
    0%   { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    30%  { box-shadow: 0 0 0 3px rgba(76,175,80,0.5); transform: scale(1.03); }
    100% { box-shadow: 0 2px 8px rgba(0,0,0,0.1); transform: scale(1); }
}

.sector-card.just-deployed {
    animation: deployFlash 0.55s ease-out;
}

/* ===== COVERAGE SUMMARY ===== */
.coverage-summary {
    background: white;
    border-radius: 6px;
    padding: 8px;
    border: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.coverage-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    font-size: 0.8em;
    border-radius: 4px;
}

.coverage-item.funded {
    background: #eafaf1;
    color: #1e8449;
}

.coverage-item.not-funded {
    background: #fdecea;
    color: #c0392b;
}

.coverage-score {
    font-size: 0.78em;
    color: #6c757d;
    font-style: italic;
    margin-top: 6px;
    text-align: right;
    grid-column: 1 / -1;
}

/* ===== REFLECTION SECTION ===== */
.reflection-section {
    margin-top: 18px;
    background: #f0f4ff;
    border-radius: 8px;
    padding: 14px 16px;
    border: 1px solid #c5d3f0;
    text-align: left;
}

.reflection-section h3 {
    color: #3a4a8f;
    font-size: 0.95em;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 7px;
}

.reflection-prompt {
    background: white;
    border-left: 3px solid #667eea;
    padding: 9px 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.83em;
    color: #2c3e50;
    margin-bottom: 7px;
    line-height: 1.5;
}

.reflection-prompt:last-child {
    margin-bottom: 0;
}

/* ===== LEARNING POINTS ===== */
.learning-points {
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06));
    border: 1px solid rgba(102,126,234,0.25);
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
}

.learning-points h3 {
    color: #764ba2;
    font-size: 0.95em;
    margin-bottom: 8px;
    text-align: center;
}

.learning-points ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.learning-points li {
    font-size: 0.82em;
    color: #2c3e50;
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.4;
    border-bottom: 1px solid rgba(102,126,234,0.12);
}

.learning-points li:last-child {
    border-bottom: none;
}

.learning-points li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.75em;
    top: 7px;
}

/* ===== MOBILE ADJUSTMENTS FOR NEW ELEMENTS ===== */
@media (max-width: 768px) {
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .coverage-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-banner {
        padding: 6px 10px;
        gap: 7px;
    }

    .event-banner-badge {
        display: none;
    }
}