:root {
    /* Core Palette */
    --nuke-blue: #346699;
    --nuke-blue-dark: #1e3c72;
    --nuke-blue-light: #5183b6;
    --nuke-gold: #FFD700;
    --nuke-gold-dark: #ccac00;
    
    /* Neutral Palette */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    
    /* Typography */
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-condensed: "Arial Narrow", "Helvetica Inserat", "sans-serif-condensed", sans-serif;
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography & Links */
a {
    color: var(--nuke-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--nuke-blue-dark);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { color: var(--nuke-blue-dark); font-size: 2.25rem; }
h2 { color: var(--nuke-blue); font-size: 1.8rem; }
h3 { color: var(--nuke-blue); font-size: 1.5rem; }
h4 { color: var(--nuke-blue-dark); font-size: 1.25rem; }
h5 { color: #e74c3c; font-size: 1.1rem; }
h6 { color: var(--nuke-blue-dark); font-size: 1rem; }

/* Lists */
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

ul ul {
    list-style-image: url(blue-bullet.gif);
}

ul ul ul {
    list-style-image: url(msn-bullet.gif);
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--nuke-blue);
    color: white;
}

/* Legacy Theme Classes (Refined) */
.mstheme {
    separator-image: url(thinlineblue.jpg);
}

.mstheme-bannertxt {
    font-family: var(--font-main);
    color: var(--text-main);
    font-weight: 700;
    font-style: italic;
}

.mstheme-horiz-navtxt, 
.mstheme-vert-navtxt,
.mstheme-navtxthome,
.mstheme-navtxtnext,
.mstheme-navtxtprev,
.mstheme-navtxtup {
    font-family: var(--font-main);
    color: var(--text-main);
    font-weight: 700;
    text-align: center;
}

.mstheme-topbar-font {
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.875rem;
}

/* Tabs */
.tab_select, td.tab_select {
    background-color: var(--nuke-blue-light) !important;
    color: white !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px 4px 0 0;
}

.tab_noselect, td.tab_noselect {
    background-color: var(--nuke-blue-dark) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 700;
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px 4px 0 0;
}

.tab_moneymaker {
    color: var(--nuke-gold);
    font-weight: 800;
    font-size: 1.1rem;
    text-align: center;
}

/* Specialized Styles */
.catbg {
    background-color: var(--nuke-blue);
    color: white;
    padding: 10px;
    font-weight: 700;
}

.style5 { color: #FFFFFF; font-family: var(--font-main); font-size: 0.8rem; }
.style14 { font-family: var(--font-condensed); color: #FFFFFF; }
.style18 { color: var(--nuke-gold); font-size: 1.1rem; }
.style19 { font-size: 1.5rem; font-style: italic; font-weight: 900; }
.style20 { color: #FFFFFF; }

/* --- Modern Homepage Styles (Consolidated) --- */

/* Modern Feed Styles (Forum & Jobs) */
.forum-feed, .job-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px;
    margin: 10px 0;
    padding: 0;
}

.forum-feed .forum-item, .job-feed .job-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.forum-feed .forum-item:hover, .job-feed .job-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--nuke-blue);
}

.forum-item-board, .job-item-company {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--nuke-blue) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.forum-item-title, .job-item-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-main) !important;
    line-height: 1.4;
    margin-bottom: 4px;
    display: block;
    text-decoration: none !important;
}

.forum-item-title {
    font-family: var(--font-condensed);
    letter-spacing: -0.2px;
}

.status-new {
    background: var(--nuke-gold);
    color: #000 !important;
    font-size: 0.75em;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
    text-transform: uppercase;
}

.forum-item-title strong, .job-item-title strong {
    color: #e74c3c;
}

.forum-item-meta, .job-item-meta {
    font-size: 0.85em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.forum-item-meta i, .job-item-meta i {
    margin-right: 5px;
    color: #bdc3c7;
}

@media (min-width: 1460px) {
    .forum-feed, .job-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

.forum-feed .hideOnMobile {
    display: inline;
}

@media only screen and (max-width: 1060px) {
    .forum-feed .hideOnMobile {
        display: none !important;
    }
}

/* Job Overflow Styles */
.job-overflow-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 25px 0;
    justify-content: center;
}

.job-overflow-card {
    background: var(--bg-white);
    border: 1px solid var(--nuke-gold);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.1);
}

.job-overflow-card:hover {
    background: var(--nuke-gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.job-overflow-card .extra-icon {
    color: #000;
    margin-right: 10px;
    font-size: 1.1em;
}

.job-overflow-card .extra-text {
    color: #333;
    font-weight: 700;
    font-size: 0.9em;
}

.job-overflow-card:hover .extra-text {
    color: #000;
}

/* Modern Action Bar */
.top-action-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
.action-card {
    background: linear-gradient(180deg, var(--nuke-blue-light) 0%, var(--nuke-blue) 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: #ffffff !important;
}
.action-card i {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff !important;
    transition: transform 0.2s ease, color 0.2s ease;
}
.action-card:hover i {
    transform: scale(1.15);
    color: var(--nuke-gold) !important;
}
.action-card span {
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.2;
    color: #ffffff !important;
}
