/* WARIGAMI - UNIFIED LIGHT THEME - Using hex colors throughout */

/* CSS Custom Properties for backwards compatibility */
:root {
    /* Color palette */
    --primary-color: #d4af37;
    --primary-dark: #b8941f;
    --accent-light: #e74c3c;
    
    /* Text colors */
    --text-dark: #2c3e50;
    --text-medium: #34495e;
    --text-light: #7f8c8d;
    --text-on-primary: #fefefe;
    
    /* Background colors */
    --paper-white: #fefefe;
    --paper-cream: #f8f6f0;
    --paper-light: #f1ede6;
    --paper-shadow: #e8e2d6;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #fefefe; /* Changed from tan to white */
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #fefefe; /* Changed from tan to white to match content */
    line-height: 1.6;
    color: #2c3e50;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: #34495e;
}

a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #b8941f;
}

/* Container and layout utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    color: #555555;
}

/* WORKING NAVBAR - Based on successful inline test */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background: rgba(254, 254, 254, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navbar.scrolled {
    background: rgba(254, 254, 254, 0.98) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    width: 100%;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #d4af37;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 0;
}

.nav-logo:hover .logo-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Ensure the logo container doesn't interfere with other nav elements */
.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #d4af37;
    z-index: 100; /* Ensure it stays above other elements */
    position: relative;
}

.logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.nav-logo:hover .logo-text {
    color: #000000;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-left: 4rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c3e50;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #e8e2d6;
    border-radius: 4px;
    width: 200px;
    font-size: 14px;
    background: #fefefe;
    color: #2c3e50;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fefefe;
    border: 1px solid #e8e2d6;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main layout */
.wiki-main {
    margin-top: 90px !important; /* Reduced from 150px to match navbar height */
    min-height: calc(100vh - 90px);
    background: #fefefe;
    padding-top: 0; /* Removed padding-top that was causing spacing */
}

.wiki-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    padding: 3rem 0 0 0; /* Moved padding from wiki-main to here */
    min-height: calc(100vh - 90px);
}

/* Sidebar */
.wiki-sidebar {
    background: #fefefe;
    padding: 3rem;
    height: fit-content;
    position: sticky;
    top: calc(70px + 3rem);
    border-right: 1px solid #e8e2d6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wiki-nav h3 {
    color: #d4af37;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8e2d6;
    font-family: Georgia, 'Times New Roman', serif;
}

.wiki-nav ul {
    list-style: none;
    margin-bottom: 3rem;
}

.wiki-nav li {
    margin-bottom: 0.5rem;
}

.wiki-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #34495e;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.wiki-nav a:hover {
    background: #f1ede6;
    color: #d4af37;
    transform: translateX(4px);
}

.wiki-nav a:active,
.wiki-nav a.active {
    background: #d4af37;
    color: #fefefe;
}

/* Content area */
.wiki-content {
    background: #fefefe;
    padding: 4rem;
    max-width: none;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 3px solid #e8e2d6;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-family: Georgia, 'Times New Roman', serif;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #555555;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.wiki-section {
    margin-bottom: 4rem;
}

.wiki-section h2 {
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-family: Georgia, 'Times New Roman', serif;
    border-bottom: 2px solid #f1ede6;
    padding-bottom: 1rem;
}

.wiki-section h3 {
    color: #d4af37;
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-family: Georgia, 'Times New Roman', serif;
}

.wiki-section h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.wiki-section p {
    margin-bottom: 1rem;
    color: #34495e;
    line-height: 1.7;
}

/* Grids and cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Extended card styles for all card types */
.info-card,
.unit-card,
.worker-card,
.combat-unit-card,
.strategy-card,
.building-card,
.resource-card,
.mechanic-card,
.feature-card {
    background: #f8f6f0;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d4af37;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Worker cards - consistent gold styling to match site theme */
.worker-card {
    background: #f8f6f0;
    border-left: 4px solid #d4af37;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Worker card header styling - clean minimal theme */
.worker-header {
    background: transparent;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid #e8e2d6;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-card:hover,
.unit-card:hover,
.worker-card:hover,
.combat-unit-card:hover,
.strategy-card:hover,
.building-card:hover,
.resource-card:hover,
.mechanic-card:hover,
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.info-card h3,
.unit-card h3,
.unit-card h4,
.worker-card h3,
.worker-card h4,
.combat-unit-card h3,
.combat-unit-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-card ul,
.unit-card ul,
.worker-card ul,
.combat-unit-card ul {
    margin-left: 1rem;
}

.info-card li,
.unit-card li,
.worker-card li,
.combat-unit-card li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.control-category {
    background: #fefefe;
    border: 1px solid #e8e2d6;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.control-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.control-table {
    margin-top: 1rem;
}

.control-row {
    display: grid;
    grid-template-columns: 150px 1fr 150px;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1ede6;
}

.control-input {
    font-weight: bold;
    color: #d4af37;
}

.control-action {
    color: #2c3e50;
}

.control-note {
    font-size: 0.9rem;
    color: #555555;
}

/* Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem; /* Further reduced */
    padding-top: 1rem; /* Further reduced */
    border-top: 2px solid #e8e2d6;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: #f8f6f0;
    border: 2px solid #d4af37;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background: #d4af37;
    color: #fefefe;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.nav-direction {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 0.5rem;
}

.nav-button:hover .nav-direction {
    color: rgba(254, 254, 254, 0.8);
}

.nav-title {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fefefe;
    padding: 4rem 0 2rem;
    margin-top: 1rem; /* Further reduced to minimal spacing */
    border-top: 4px solid #d4af37;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    color: #d4af37;
    margin-bottom: 1.5rem;
    font-family: Georgia, 'Times New Roman', serif;
}

.footer-section p {
    color: rgba(254, 254, 254, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(254, 254, 254, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #d4af37;
}

/* Homepage specific styles */
.hero {
    background: linear-gradient(135deg, #f8f6f0 0%, #f1ede6 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%23d4af37" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #555555;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: #d4af37;
    color: #fefefe;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.cta-button:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    color: #fefefe;
}

/* Features section */
.features {
    padding: 6rem 0;
    background: #fefefe;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Homepage feature cards should use lighter style */
.features-section .feature-card {
    text-align: center;
    padding: 3rem;
    background: #f8f6f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: none;
}

.features-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.features-section .feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.features-section .feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.features-section .feature-card p {
    color: #555555;
    line-height: 1.6;
}

.feature-card {
    text-align: center;
    padding: 3rem;
    background: #f8f6f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #555555;
    line-height: 1.6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .wiki-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .wiki-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid #e8e2d6;
        padding: 2rem;
    }
    
    .wiki-content {
        padding: 2rem 1rem;
    }
    
    /* Mobile Navigation Styles */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(254, 254, 254, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 0;
        margin-left: 0;
        z-index: 9999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 1rem;
        display: block;
        border-radius: 8px;
        margin: 0 2rem;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: #f8f6f0;
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
        cursor: pointer;
        z-index: 10001;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
    }
    
    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .logo-origami {
        font-size: 1.5rem;
    }
    
    .search-input {
        width: 150px;
    }
    
    .info-grid, .controls-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .control-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .page-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Fixed: Hero section now has proper top spacing for mobile navbar */
    .hero {
        padding: 6rem 0 3rem; /* Increased top padding from 4rem to 6rem */
        margin-top: 0; /* Ensure no conflicting margins */
    }
    
    .hero h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .wiki-content {
        padding: 1.5rem 0.75rem;
    }
    
    .wiki-sidebar {
        padding: 1.5rem;
    }
    
    .info-card, .control-category {
        padding: 1.5rem;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .wiki-section {
        margin-bottom: 2rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .search-input {
        width: 120px;
        font-size: 12px;
    }
    
    /* Enhanced mobile spacing for smaller screens */
    .hero {
        padding: 7rem 0 3rem; /* Even more top padding for smaller screens */
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        margin-top: 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Margin utilities */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Padding utilities */
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }

.px-1 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* Color utilities */
.text-gold { color: #d4af37; }
.text-dark { color: #2c3e50; }
.text-medium { color: #34495e; }
.text-light { color: #555555; }
.text-white { color: #fefefe; }

.bg-cream { background-color: #f8f6f0; }
.bg-white { background-color: #fefefe; }
.bg-light { background-color: #f1ede6; }
.bg-gold { background-color: #d4af37; }
.bg-dark { background-color: #2c3e50; }

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background: #d4af37;
    color: #fefefe;
}

::-moz-selection {
    background: #d4af37;
    color: #fefefe;
}

/* ====================================
   Additional Card Styles for Wiki Pages
   ==================================== */

/* Card headers and layout */
.card-header,
.unit-header,
.worker-header,
.combat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Card icons */
.feature-icon,
.unit-icon,
.worker-icon,
.combat-icon {
    font-size: 2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
}

/* Card content areas */
.card-content,
.unit-description,
.worker-info,
.combat-info {
    color: #34495e;
    line-height: 1.6;
}

/* Unit-specific card styles */
.unit-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.unit-type,
.unit-category {
    font-size: 0.85rem;
    color: #d4af37;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Unit stats */
.unit-stats {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border-left: 3px solid #d4af37;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.stat-value {
    color: #34495e;
    font-weight: 500;
}

/* Strategy tips */
.strategy-tips {
    margin-top: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(44, 62, 80, 0.05);
    border-radius: 8px;
}

.tip-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

/* Specific unit card variants */
.prime-card {
    border-color: #ffd700;
    background: linear-gradient(135deg, #f8f6f0 0%, rgba(255, 215, 0, 0.05) 100%);
}

.pupils-card {
    border-color: #4a90e2;
}

.proteges-card {
    border-color: #9b59b6;
}

/* Combat warning */
.combat-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.warning-icon {
    font-size: 1.5rem;
    color: #e74c3c;
}

/* Additional grid layouts */
.workers-grid,
.combat-units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.workers-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.combat-units-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Research tree styles */
.research-tree {
    margin: 1rem 0;
}

.research-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 6px;
}

.research-building {
    font-weight: 600;
    color: #d4af37;
}

.research-arrow {
    color: #34495e;
    font-weight: bold;
}

.research-unlock {
    color: #2c3e50;
    font-style: italic;
}

/* Command grid styles */
.command-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.command-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 6px;
    border-left: 3px solid #d4af37;
}

.command-name {
    font-weight: 600;
    color: #d4af37;
}

.command-desc {
    color: #34495e;
}

/* Unit category sections */
.unit-category {
    margin: 3rem 0;
}

.unit-category h3 {
    color: #d4af37;
    border-bottom: 2px solid #e8e2d6;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Worker commands */
.worker-commands {
    margin-top: 2rem;
    padding: 2rem;
    background: #fefefe;
    border: 1px solid #e8e2d6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Flow diagrams */
.fold-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f6f0;
    border-radius: 12px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #d4af37;
    color: #fefefe;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.step-content p {
    font-size: 0.9rem;
    color: #34495e;
    margin-bottom: 0;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #d4af37;
    font-weight: bold;
}

/* Combo grid */
.combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.combo-item {
    padding: 1.5rem;
    background: #fefefe;
    border: 1px solid #e8e2d6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d4af37 !important;
}

/* Override any red borders on combo items */
.combo-item,
.interactions-content .combo-item {
    border-left-color: #d4af37 !important;
}

.combo-item h4 {
    color: #d4af37;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.combo-item p {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Interactions content */
.interactions-content h3 {
    color: #d4af37;
    margin: 2rem 0 1rem 0;
    border-bottom: 1px solid #e8e2d6;
    padding-bottom: 0.5rem;
}

/* Button styles for homepage */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #d4af37;
    color: #fefefe;
    border-color: #d4af37;
}

.btn-primary:hover {
    background: #b8941f;
    border-color: #b8941f;
    color: #fefefe;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: #2c3e50;
    color: #fefefe;
    border-color: #2c3e50;
}

.btn-secondary:hover {
    background: #1a2332;
    border-color: #1a2332;
    color: #fefefe;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.3);
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border-color: #d4af37;
}

.btn-outline:hover {
    background: #d4af37;
    color: #fefefe;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Hero section styles */
.hero-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(212, 175, 55, 0.3);
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #34495e;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.paper-fold {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.fold-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.fold-2 {
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.fold-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-20px); }
}

/* Responsive updates for new card styles */
@media (max-width: 768px) {
    .workers-grid,
    .combat-units-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .unit-card,
    .worker-card,
    .combat-unit-card {
        padding: 1.5rem;
    }
    
    .card-header,
    .unit-header,
    .worker-header,
    .combat-header {
        gap: 0.75rem;
    }
    
    .feature-icon,
    .unit-icon,
    .worker-icon,
    .combat-icon {
        font-size: 1.75rem;
        min-width: 2rem;
        height: 2rem;
    }
    
    .unit-stats {
        padding: 0.75rem;
    }
    
    .tip-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .fold-flow {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .combo-grid {
        grid-template-columns: 1fr;
    }
    
    .command-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }
    
    .hero-title {
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* ====================================
   Wiki Index Page Specific Styles
   ==================================== */

/* Wiki hero section */
.wiki-hero {
    background: linear-gradient(135deg, var(--paper-cream) 0%, var(--paper-light) 100%);
    color: var(--text-dark);
    padding: var(--space-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wiki-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,15 85,35 85,65 50,85 15,65 15,35" fill="none" stroke="rgba(212,175,55,0.2)" stroke-width="2"/></svg>');
    background-size: 120px 120px;
    animation: wikiBgFloat 30s linear infinite;
}

@keyframes wikiBgFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-120px) rotate(360deg); }
}

.wiki-hero .container {
    position: relative;
    z-index: 2;
}

.wiki-hero h1 {
    color: var(--text-dark) !important;
}

.wiki-hero .hero-subtitle {
    color: var(--text-medium) !important;
    font-weight: 600;
}

.wiki-hero p {
    color: var(--text-medium) !important;
}

/* Wiki search box */
.wiki-search-box {
    max-width: 500px;
    margin: var(--space-lg) auto 0;
    display: flex;
    gap: var(--space-sm);
}

.wiki-search-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--paper-shadow);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    background: var(--paper-white);
    color: var(--text-dark) !important;
}

.wiki-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.wiki-search-input::placeholder {
    color: var(--text-medium);
}

.wiki-search-btn {
    background: var(--primary-color);
    color: var(--text-on-primary);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
}

.wiki-search-btn:hover {
    background: var(--primary-dark);
    color: var(--text-on-primary);
    transform: scale(1.05);
}

/* Wiki navigation section */
.wiki-navigation {
    background: var(--paper-white);
    padding: var(--space-lg) 0;
    border-bottom: 3px solid var(--primary-color);
}

.wiki-navigation h2 {
    color: var(--text-dark) !important;
    text-align: center;
}

.wiki-navigation .section-subtitle {
    color: var(--text-medium) !important;
    text-align: center;
}

.wiki-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.wiki-nav-card {
    background: var(--paper-light);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all var(--transition-medium);
    text-decoration: none;
    color: var(--text-dark) !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
}

.wiki-nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
    color: var(--text-dark) !important;
    background: var(--paper-white);
}

.wiki-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--primary-color);
    text-align: center;
}

.wiki-nav-card h3 {
    color: var(--text-dark) !important;
    margin-bottom: var(--space-sm);
    text-align: center;
}

.wiki-nav-card p {
    color: var(--text-medium) !important;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

/* Quick reference section */
.quick-reference {
    background: var(--paper-light);
    color: var(--text-dark);
    padding: var(--space-xxl) 0;
}

.quick-reference h2 {
    color: var(--text-dark) !important;
    text-align: center;
}

.quick-reference .section-subtitle {
    color: var(--text-medium) !important;
    text-align: center;
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.reference-card {
    background: var(--paper-white);
    padding: var(--space-lg);
    border-radius: 15px;
    border: 2px solid var(--paper-shadow);
    box-shadow: var(--shadow-light);
}

.reference-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.reference-list {
    list-style: none;
    padding: 0;
}

.reference-list li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--paper-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.reference-list li:last-child {
    border-bottom: none;
}

.resource-cost {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Getting started section */
.getting-started {
    background: var(--paper-cream);
    padding: var(--space-xxl) 0;
}

.getting-started h2 {
    color: var(--text-dark) !important;
    text-align: center;
}

.getting-started .section-subtitle {
    color: var(--text-medium) !important;
    text-align: center;
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.starter-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.step-card {
    background: var(--paper-white);
    padding: var(--space-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: var(--space-lg);
    background: var(--primary-color);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-top: var(--space-md);
    color: var(--text-dark) !important;
}

/* Latest updates section */
.latest-updates {
    background: var(--paper-white);
    padding: var(--space-xxl) 0;
}

.latest-updates h2 {
    color: var(--text-dark) !important;
    text-align: center;
}

.latest-updates .section-subtitle {
    color: var(--text-medium) !important;
    text-align: center;
    font-weight: 600;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.update-card {
    border-left: 4px solid var(--primary-color);
    padding: var(--space-md) var(--space-lg);
    background: var(--paper-light);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.update-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.update-title {
    color: var(--text-dark) !important;
    margin-bottom: var(--space-sm);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--paper-light);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--paper-shadow);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    color: var(--text-medium);
}

.breadcrumb-item:not(:last-child)::after {
    content: '→';
    margin-left: var(--space-xs);
    color: var(--primary-color);
}

.breadcrumb-link {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Responsive adjustments for wiki index */
@media (max-width: 768px) {
    .wiki-nav-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wiki-search-box {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wiki-search-input,
    .wiki-search-btn {
        width: 100%;
    }
    
    .reference-grid,
    .starter-steps,
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .wiki-hero {
        padding: 5rem 0 3rem; /* Added proper top spacing for mobile navbar */
        margin-top: 0;
    }
    
    .wiki-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Additional mobile fixes for all main content sections */
@media (max-width: 768px) {
    /* Ensure all main content sections have proper top spacing */
    .section:first-of-type {
        padding-top: 5rem; /* Extra spacing for first section after navbar */
    }
    
    .wiki-main {
        margin-top: 90px !important; /* Adjusted for mobile navbar height */
    }
}

@media (max-width: 480px) {
    .section:first-of-type {
        padding-top: 6rem;
    }
    
    .wiki-main {
        margin-top: 85px !important;
    }
}

/* ====================================
   Enhanced Unit Header Styles
   ==================================== */

/* Improved unit header layout - Clean and minimal */
.unit-header,
.worker-header,
.combat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e8e2d6;
}

/* Enhanced unit icons - Clean styling with proper hex colors */
.unit-icon,
.worker-icon,
.combat-icon {
    font-size: 2.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    background: transparent;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

/* Unit title container */
.unit-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0; /* Allows text to wrap properly */
    justify-content: center;
}

/* Unit title heading - Clean white text */
.unit-title h3,
.worker-header h4,
.combat-header h4 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Unit type/category labels - Clean white italic text */
.unit-type {
    font-size: 0.85rem;
    color: #ffffff !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: block;
    line-height: 1.2;
    font-style: italic;
    opacity: 0.9;
}

/* Unit category labels - Black text for combat units */
.unit-category {
    font-size: 0.85rem;
    color: #2c3e50 !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: block;
    line-height: 1.2;
    font-style: normal;
}

/* Specific icon styling - Clean colored emojis only */
.prime-icon {
    color: #ffd700;
}

.pupils-icon {
    color: #4a90e2;
}

.proteges-icon {
    color: #9b59b6;
}

.paper-picker-icon,
.prospector-icon,
.pusher-icon {
    color: #d4af37;
}

.pikeman-icon,
.pelter-icon,
.patcher-icon,
.prowler-icon,
.plaguebearer-icon,
.proxy-icon {
    color: #e74c3c;
}

/* Combat header specific adjustments */
.combat-header {
    align-items: center;
    flex-direction: row;
}

/* Special handling for worker headers without unit-title wrapper */
.worker-header h4 {
    margin: 0 !important;
    color: #2c3e50 !important;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: Georgia, 'Times New Roman', serif;
    flex: 1;
}

.combat-header .unit-category {
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.75rem;
}

/* Combat unit cards need position relative for absolute positioning */
.combat-unit-card {
    position: relative;
}

/* Hover effects for icons - Subtle scaling only */
.unit-card:hover .unit-icon,
.worker-card:hover .worker-icon,
.combat-unit-card:hover .combat-icon {
    transform: scale(1.1);
}

/* Responsive adjustments for unit headers */
@media (max-width: 768px) {
    .unit-header,
    .worker-header,
    .combat-header {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .unit-icon,
    .worker-icon,
    .combat-icon {
        font-size: 2rem;
        min-width: 2.5rem;
        height: 2.5rem;
        align-self: flex-start;
    }
    
    .unit-title h3,
    .worker-header h4,
    .combat-header h4 {
        font-size: 1.25rem;
    }
    
    .combat-header .unit-category {
        position: static;
        margin-top: 0.5rem;
        align-self: flex-start;
    }
}
