/* Root Variables redesigned to represent classic Windows XP colors (Luna Theme) */
:root {
    --bg-primary: #ECE9D8; /* Classic XP dialogue grey-beige */
    --bg-secondary: #F1EFE2;
    --surface-card: #FFFFFF;
    --surface-alt: #E0DFE3;
    --accent-primary: #0043CA; /* Luna Blue */
    --accent-primary-bright: #0054E3;
    --accent-secondary: #387A22; /* XP Start Button green */
    --accent-tertiary: #D97706; /* Classic yellow/amber */
    --accent-tertiary-bright: #B65C00;
    --accent-alert: #E04315; /* XP Close Button Orange-Red */
    --border-color: #808080; /* Neutral grey 3D borders */
    --border-hover: #0054E3;
    
    --text-primary: #000000;
    --text-secondary: #202020;
    --muted-label: #505050;
    
    --font-heading: 'Trebuchet MS', "Tahoma", system-ui, sans-serif;
    --font-body: "Tahoma", "Segoe UI", sans-serif;
    --transition-fast: 0.1s linear;
    --transition-normal: 0.2s ease-out;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0c60f0; /* Default solid fallback blue */
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px; /* Default Windows XP System size */
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Vector representation of XP Bliss Hills Wallpaper */
.desktop-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: linear-gradient(to bottom, #4fa5e8 0%, #a6e3fc 60%, #469622 61%, #7fd330 100%);
    overflow: hidden;
}
.bliss-sun {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
    top: 5%;
    right: 15%;
}
.bliss-cloud-1 {
    position: absolute;
    width: 320px;
    height: 80px;
    background: #ffffff;
    opacity: 0.35;
    border-radius: 100px;
    filter: blur(20px);
    top: 15%;
    left: 10%;
}
.bliss-cloud-2 {
    position: absolute;
    width: 400px;
    height: 100px;
    background: #ffffff;
    opacity: 0.25;
    border-radius: 100px;
    filter: blur(30px);
    top: 30%;
    right: 20%;
}
.bliss-hill-back {
    position: absolute;
    width: 160%;
    height: 70%;
    background: radial-gradient(circle at 50% 100%, #5cae32 0%, #3a7a1c 80%);
    bottom: -20%;
    left: -30%;
    border-radius: 50% / 40%;
}
.bliss-hill-front {
    position: absolute;
    width: 150%;
    height: 55%;
    background: radial-gradient(circle at 30% 100%, #76ca3d 0%, #438e21 100%);
    bottom: -15%;
    left: -10%;
    border-radius: 50% / 50%;
}

a {
    color: #0033bb;
    text-decoration: underline;
}
a:hover {
    color: #ff3300;
}

button {
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

/* Desktop layout container shell */
.desktop-area {
    width: 100%;
    min-height: 100vh;
    padding: 16px 16px 60px 16px; /* Space at bottom for 40px taskbar */
    display: flex;
    flex-direction: column;
}

/* Desktop Icons Styling */
.desktop-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    grid-auto-rows: 90px;
    gap: 16px;
    margin-bottom: 24px;
    z-index: 5;
    pointer-events: auto;
}

@media (max-width: 576px) {
    .desktop-shortcuts {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

.desktop-icon-btn {
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-shadow: 1px 1px 3px #000000;
    font-size: 11px;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    transition: background-color var(--transition-fast);
}
.desktop-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.desktop-icon-btn svg {
    margin-bottom: 6px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

/* Windows Stack Container */
.windows-container-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* XP Window styling (The iconic Luna Blue Window frame) */
.xp-window {
    background-color: #ECE9D8; /* Dialogue cream gray background */
    border: 3px solid #0054E3; /* Thick Luna blue frame border */
    border-top: none;
    border-radius: 7px 7px 0 0;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
    display: flex; /* Show all windows by default as requested */
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Window Titlebar */
.xp-titlebar {
    background: linear-gradient(to bottom, #0058e6 0%, #3a92ff 10%, #0056e0 50%, #0043ca 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 13px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-shadow: 1px 1px 1px #002280;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    user-select: none;
}
.xp-title-text {
    display: flex;
    align-items: center;
    gap: 6px;
}
.win-title-icon {
    display: inline-block;
    vertical-align: middle;
}

/* Control Buttons (Minimize, Maximize, Close) */
.xp-window-controls {
    display: flex;
    gap: 2px;
}
.win-btn {
    width: 21px;
    height: 21px;
    border: 1px solid #ffffff;
    border-radius: 3px;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-shadow: none;
}
.win-btn-minimize {
    background: linear-gradient(to bottom, #7da2f3 0%, #3c7bf0 50%, #1a51ca 100%);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.4);
}
.win-btn-maximize {
    background: linear-gradient(to bottom, #7da2f3 0%, #3c7bf0 50%, #1a51ca 100%);
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.4);
}
.win-btn-close-app, .win-btn-close {
    background: linear-gradient(to bottom, #f37d57 0%, #e04315 45%, #b62b04 100%);
    border: 1px solid #7d1c02;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5);
    font-size: 10px;
}
.win-btn:active {
    filter: brightness(0.8);
}

/* Classical Grey Menu Bar */
.xp-menubar {
    background-color: #ECE9D8;
    border-bottom: 1px solid #999;
    padding: 4px 8px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #000;
}
.menu-item {
    cursor: pointer;
    padding: 1px 4px;
}
.menu-item:hover {
    background-color: #316ac5;
    color: #ffffff;
}

/* Window Content Area */
.xp-window-body {
    background-color: #ffffff; /* System Window Default to white */
    padding: 16px;
    max-height: 700px;
    overflow-y: auto;
    border-left: 2px solid #dedede;
    border-right: 2px solid #dedede;
}

/* System Status Bar at Bottom of Window */
.xp-statusbar {
    background-color: #ECE9D8;
    border-top: 1px solid #999;
    display: flex;
    font-size: 11px;
    padding: 3px 0;
}
.status-sec {
    padding: 0 10px;
    border-right: 1px solid #b0b0b0;
    color: #404040;
}
.status-sec:last-child {
    border-right: none;
    margin-left: auto;
}

/* XP Taskbar (At the absolute bottom of page) */
.xp-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, #1e2e88 0%, #245dd7 10%, #1e2e88 100%);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 4px;
    border-top: 1px solid #4a6ea9;
}

/* Start Button styling */
.xp-start-button {
    background: linear-gradient(to bottom, #387a22 0%, #62b83b 10%, #387a22 100%);
    border: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 2px 0px 4px rgba(0,0,0,0.4);
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 16px;
    font-style: italic;
    font-weight: 800;
    text-shadow: 1px 1px 2px #000000;
    transition: filter var(--transition-fast);
}
.xp-start-button:hover {
    filter: brightness(1.1);
}
.start-flag {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    width: 14px;
    height: 14px;
    transform: rotate(-10deg);
}
.flag-quad.red { background-color: #ff3300; }
.flag-quad.green { background-color: #44cc00; }
.flag-quad.blue { background-color: #0066ff; }
.flag-quad.yellow { background-color: #ffcc00; }

/* Taskbar running tasks list */
.xp-taskbar-items {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    flex-grow: 1;
    overflow-x: auto;
}
.taskbar-item {
    background: linear-gradient(to bottom, #3c7bf0 0%, #1a51ca 100%);
    border: 1px solid #103080;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 10px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.2);
}
.taskbar-item.active-task {
    background: #1a51ca;
    box-shadow: inset 1px 1px 3px rgba(0,0,0,0.6);
}

/* System Tray */
.xp-system-tray {
    background-color: #0f79f4;
    border-left: 1px solid #103080;
    box-shadow: inset 2px 0 3px rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
    color: #ffffff;
}
.systray-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255,255,255,0.3);
}
.systray-icon {
    font-size: 14px;
}
.systray-clock {
    font-size: 11px;
    font-weight: bold;
}

/* Dual Column XP Start Menu */
.xp-start-menu {
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 380px;
    background-color: #245dd7;
    border: 2px solid #1a51ca;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    box-shadow: 2px -2px 15px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    z-index: 1005;
}
.xp-start-menu.open {
    display: flex;
}
.start-header {
    background: linear-gradient(to bottom, #0056e0 0%, #3a92ff 100%);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-weight: bold;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border: 2px solid #ffffff;
    border-radius: 4px;
    overflow: hidden;
}
.start-columns-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: #ffffff;
}
.start-left-panel {
    background-color: #ffffff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.start-prog-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    text-decoration: none;
    color: #333333;
    border-radius: 3px;
}
.start-prog-link:hover {
    background-color: #316ac5;
    color: #ffffff;
}
.prog-icon {
    font-size: 20px;
}
.prog-meta {
    display: flex;
    flex-direction: column;
}
.prog-title {
    font-weight: bold;
    font-size: 12px;
}
.prog-desc {
    font-size: 10px;
    opacity: 0.8;
}
.start-right-panel {
    background-color: #d3e5fa; /* Classic XP Light blue panel */
    border-left: 1px solid #91b5e7;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.start-sys-title {
    font-weight: bold;
    font-size: 11px;
    color: #003399;
}
.start-sys-link {
    background: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #003399;
    font-size: 12px;
    font-weight: normal;
    padding: 4px;
    text-decoration: none;
}
.start-sys-link:hover {
    background-color: #316ac5;
    color: #ffffff;
}
.start-sys-divider {
    height: 1px;
    background-color: #91b5e7;
}
.start-footer {
    background-color: #0f79f4;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.start-footer-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* IE Toolbar elements */
.ie-toolbar {
    background-color: #ECE9D8;
    border-bottom: 1px solid #b0b0b0;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ie-tool-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 3px 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ie-tool-btn:hover {
    background-color: #e0dfe3;
    border: 1px solid #999;
}
.ie-separator {
    width: 1px;
    height: 20px;
    background-color: #a0a0a0;
}
.ie-address-bar {
    background-color: #ECE9D8;
    border-bottom: 1px solid #b0b0b0;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ie-address-input-wrapper {
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid #7f9db9; /* XP default input border blue */
    display: flex;
    align-items: center;
    padding: 2px 4px;
}
.ie-lock-icon {
    font-size: 11px;
    margin-right: 4px;
    user-select: none;
}
.ie-address-input {
    width: 100%;
    border: none;
    font-family: "Courier New", monospace;
    font-size: 12px;
    outline: none;
}
.ie-go-btn {
    background-color: #ECE9D8;
    border: 1px solid #999;
    padding: 2px 8px;
    font-size: 11px;
}

/* Excel Spreadsheet Formula Bar styling */
.excel-formula-bar {
    background-color: #ECE9D8;
    border-bottom: 1px solid #999;
    display: flex;
    align-items: center;
    padding: 3px;
    gap: 4px;
}
.cell-address-box {
    background-color: #ffffff;
    border: 1px solid #7f9db9;
    padding: 2px 8px;
    font-size: 11px;
}
.fx-indicator {
    font-weight: bold;
    color: #808080;
    font-family: 'Courier Prime', monospace;
    padding: 0 4px;
}
.formula-input {
    flex-grow: 1;
    border: 1px solid #7f9db9;
    padding: 2px 4px;
    font-size: 11px;
}

/* Classic XP 3D grey input button styling */
.xp-btn {
    background-color: #ECE9D8;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    box-shadow: inset 1px 1px 0px #ffffff;
    padding: 4px 14px;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    color: #000000;
}
.xp-btn:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    box-shadow: inset 1px 1px 0px #808080;
}

/* Common Layout Utilities adapted for classic windows XP styling */
.section-padding {
    padding: 24px 8px;
}
.section-container {
    max-width: 1000px;
    margin: 0 auto;
}
.section-header {
    margin-bottom: 24px;
    border-bottom: 1px dotted #808080;
    padding-bottom: 12px;
}
.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    color: #0033bb;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: bold;
    color: #0033bb;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.section-desc {
    color: #333333;
    font-size: 13px;
}

/* Quick Match Facts bar redesigned as XP Alert Warning Strip */
.facts-bar-section {
    background-color: #ffffe1; /* Information Yellow */
    border: 1px solid #ccaa00;
    padding: 12px;
    margin-bottom: 166px;
}
.facts-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.fact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fact-meta {
    display: flex;
    flex-direction: column;
}
.fact-label {
    font-size: 10px;
    color: #775500;
    font-weight: bold;
}
.fact-detail {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
}

/* FAQ / Collapsible list */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background-color: #ffffff;
    border: 1px solid #7f9db9;
}
.faq-trigger {
    width: 100%;
    padding: 8px 12px;
    background-color: #ECE9D8;
    border: none;
    border-bottom: 1px solid #b0b0b0;
    text-align: left;
    font-weight: bold;
    color: #003399;
    display: flex;
    justify-content: space-between;
}
.faq-icon-arrow {
    width: 12px;
    height: 12px;
    border-left: 2px solid #003399;
    border-bottom: 2px solid #003399;
    transform: rotate(-45deg);
    transition: transform var(--transition-fast);
}
.faq-trigger[aria-expanded="true"] .faq-icon-arrow {
    transform: rotate(135deg);
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}
.faq-content p {
    padding: 12px;
    font-size: 12px;
}

/* Footer redesign as XP nested properties frame */
.main-footer {
    max-width: 1000px;
    margin: 40px auto;
    width: 100%;
    display: flex !important; /* Force footer to stay visible */
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 24px;
    border-bottom: 1px dotted #808080;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}
.footer-link-title {
    font-size: 12px;
    font-weight: bold;
    color: #0033bb;
}
.footer-links {
    list-style: none;
}
.footer-links button {
    background: none;
    border: none;
    color: #0033bb;
    text-decoration: underline;
    font-size: 12px;
}
.footer-address-block {
    margin-bottom: 16px;
}
.address-title {
    font-size: 11px;
    font-weight: bold;
}
.footer-disclaimer {
    background-color: #f1efe2;
    border: 1px solid #808080;
    padding: 8px;
    font-size: 11px;
    margin-bottom: 16px;
}

/* Modals styled as XP Warning dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.modal-overlay.active {
    display: flex;
}
.modal-card-legal {
    max-width: 500px;
    width: 100%;
    background-color: #ECE9D8;
}
.modal-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}
.modal-action-btn-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
.last-updated {
    font-weight: bold;
    color: #cc6600;
}

/* WORLD CUP SPECIFIC LAYOUTS */
.top6-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}
@media (max-width: 576px) {
    .top6-grid { grid-template-columns: 1fr; }
}
.top6-card {
    background-color: #ffffff;
    border: 1px solid #7f9db9;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.top6-rank {
    background: #0054E3;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
}
.top6-country { font-weight: bold; font-size: 14px; flex-grow: 1; margin-left: 10px; }
.top6-chance { color: #387A22; font-weight: bold; font-size: 12px;}

.hosts-module {
    background: #ffffe1;
    border: 1px solid #ccaa00;
    padding: 12px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}
.host-item {
    font-weight: bold;
    font-size: 13px;
    color: #0033bb;
}

/* Countries Grid */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.country-card {
    background-color: #F1EFE2;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    padding: 12px;
}
.country-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 6px;
    margin-bottom: 8px;
}
.country-card-header h4 { color: #0033bb; font-size: 15px; margin:0;}
.country-card-rank { font-weight: bold; color: #404040; background:#fff; border:1px solid #c0c0c0; padding:2px 6px; font-size: 11px;}
.country-card-data { font-size: 12px; }
.country-card-data div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dotted #ccc; }
.country-card-data div:last-child { border-bottom: none; }
.country-card-data strong { color: #387A22; }

/* Rankings Table */
.excel-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border-bottom: 1px solid #7f9db9;
    background: #fff;
    max-height: 500px;
    overflow-y: auto;
}
.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.excel-table th {
    background: #ECE9D8;
    border: 1px solid #c0c0c0;
    padding: 6px 12px;
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.excel-table td {
    border: 1px solid #d0d0d0;
    padding: 6px 12px;
    white-space: nowrap;
}
.excel-table tr:hover td { background: #e5f3fb; cursor: default; }

/* Groups Grid */
.groups-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .groups-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .groups-layout { grid-template-columns: 1fr; }
}
.group-box {
    background: #fff;
    border: 1px solid #7f9db9;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.group-title {
    background: linear-gradient(to bottom, #0058e6 0%, #0043ca 100%);
    color: #fff;
    padding: 6px 10px;
    font-size: 14px;
    margin: 0;
    font-weight: bold;
}
.group-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.group-table th, .group-table td { padding: 6px 10px; border-bottom: 1px solid #e0e0e0; text-align: left; }
.group-table th { background: #F1EFE2; font-weight: normal; color: #505050; }
.group-table tr:last-child td { border-bottom: none; }
.group-table td:last-child { font-weight: bold; color: #387A22; }

/* Subpage Navigation styling */
.page-nav {
    background-color: #ECE9D8;
    border-bottom: 2px solid #0054E3;
    padding: 6px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-nav-link {
    background: #f1efe2;
    border: 1px solid #808080;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    color: #0033bb;
    text-decoration: underline;
    transition: background-color var(--transition-fast);
}
.page-nav-link:hover {
    background: #e0dfe3;
    color: #ff3300;
}
.page-nav-link.active {
    background: #0054E3;
    color: #ffffff;
    border-color: #0054E3;
    text-decoration: none;
}

/* Soft Page Elements */
.soft-body {
    background-color: #ffffff;
    padding: 24px;
}
.soft-hero {
    margin-bottom: 24px;
    border-bottom: 1px dotted #808080;
    padding-bottom: 16px;
}
.soft-eyebrow {
    font-size: 11px;
    font-weight: bold;
    color: #0033bb;
    text-transform: uppercase;
}
.soft-hero-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #0033bb;
    margin: 4px 0 8px 0;
}
.soft-hero-lead {
    font-size: 14px;
    color: #404040;
}

/* Soft Table styling for rankings page */
.soft-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #7f9db9;
    background: #ffffff;
}
.soft-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.soft-table th {
    background-color: #ECE9D8;
    border: 1px solid #c0c0c0;
    padding: 8px 12px;
    font-weight: bold;
    text-align: left;
}
.soft-table td {
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
}
.soft-table tr:nth-child(even) {
    background-color: #f9f9f7;
}
.soft-table tr:hover {
    background-color: #e5f3fb;
}

/* Country card grid for subpage */
.country-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

/* Groups subpage stack */
.groups-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Guide page specific styles */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.guide-card {
    background: #F1EFE2;
    border: 1px solid #808080;
    padding: 16px;
    border-radius: 4px;
    position: relative;
}
.guide-num {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: 'Courier Prime', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #0054E3;
    opacity: 0.3;
}
.guide-card h2 {
    font-size: 16px;
    color: #0033bb;
    margin-bottom: 8px;
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 4px;
}
.guide-card p {
    font-size: 12px;
    color: #333333;
}
.guide-note-box {
    background-color: #ffffe1;
    border: 1px solid #ccaa00;
    padding: 16px;
    border-radius: 4px;
}
.guide-note-box h2 {
    font-size: 16px;
    color: #806000;
    margin-bottom: 8px;
}
.guide-note-box p {
    font-size: 12px;
    margin-bottom: 8px;
}
.guide-note-box p:last-child {
    margin-bottom: 0;
}