/*
Theme Name: Rockbridge Fair
Theme URI: 
Author: Rockbridge Digital Services
Description: Rockbridge Regional Fair & Expo Theme
Version: 1.0
*/

/* =========================================
   BASE RESET & TYPOGRAPHY
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bitter', Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    color: #111111;
    background-color: #4a3728;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Young Serif', Georgia, serif;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }

p {
    margin-bottom: 1em;
    color: #111111;
}

a {
    color: #5a3e28;
    text-decoration: underline;
}

a:hover {
    color: #8b6914;
}

ul, ol {
    margin: 0 0 1em 1.5em;
    color: #111111;
}

li {
    color: #111111;
    margin-bottom: 0.3em;
}

/* =========================================
   HEADER
   ========================================= */

.site-header {
    background: #2c1a0e;
    text-align: center;
    padding: 0;
}

.site-header a {
    display: block;
    text-decoration: none;
}

.header-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   RIBBON NAV
   ========================================= */

.ribbon-nav-wrapper {
    position: relative;
    background: linear-gradient(180deg, #5a3010 0%, #3d1f08 50%, #2c1508 100%);
    border-top: 2px solid #c8a84b;
    border-bottom: 2px solid #c8a84b;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    z-index: 100;
}

.ribbon-nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.ribbon-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.ribbon-nav ul li {
    margin: 0;
}

.ribbon-nav ul li a {
    display: block;
    padding: 12px 12px;
    color: #f0d080;
    text-decoration: none;
    font-family: 'Bitter', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
}

.ribbon-nav ul li a:hover,
.ribbon-nav ul li.current-menu-item a,
.ribbon-nav ul li.current_page_item a {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

/* =========================================
   LAYOUT
   ========================================= */

.site-content-wrapper {
    padding: 30px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.site-content-overlay {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.content-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* =========================================
   SIDEBAR
   ========================================= */

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.widget {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #c8a84b;
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
}

.widget-title {
    font-family: 'Young Serif', Georgia, serif;
    font-size: 1.1em;
    color: #3d1f08;
    border-bottom: 1px solid #c8a84b;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.widget ul {
    margin-left: 1em;
}

.widget a {
    color: #5a3e28;
}

/* =========================================
   PAGE CONTENT
   ========================================= */

.page-content {
    margin-top: 15px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

.page-content th,
.page-content td {
    padding: 8px 12px;
    border: 1px solid #c8a84b;
    text-align: left;
    color: #111111;
}

.page-content th {
    background: #3d1f08;
    color: #f0d080;
    font-family: 'Young Serif', Georgia, serif;
}

.page-content tr:nth-child(even) td {
    background: rgba(200, 168, 75, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    background: #2c1a0e;
    color: #c8a84b;
    text-align: center;
    padding: 20px;
    font-family: 'Bitter', Georgia, serif;
    font-size: 14px;
    border-top: 2px solid #c8a84b;
}

.site-footer a {
    color: #f0d080;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn, .button, input[type="submit"], button[type="submit"] {
    display: inline-block;
    background: #3d1f08;
    color: #f0d080;
    border: 2px solid #c8a84b;
    padding: 10px 24px;
    font-family: 'Bitter', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn:hover, .button:hover, input[type="submit"]:hover, button[type="submit"]:hover {
    background: #c8a84b;
    color: #2c1a0e;
}

/* =========================================
   EXPO PAGE STYLES
   ========================================= */

.toc-box {
    background: rgba(200, 168, 75, 0.15);
    border: 2px solid #c8a84b;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.toc-box h2 {
    color: #3d1f08;
    margin-bottom: 15px;
}

.toc-box a {
    color: #3d1f08;
    text-decoration: none;
    font-weight: 700;
}

.toc-box a:hover {
    color: #8b6914;
    text-decoration: underline;
}

.division-section {
    border-left: 4px solid #c8a84b;
    background: rgba(200, 168, 75, 0.08);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.entry-list {
    columns: 2;
    column-gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.entry-list li {
    padding: 4px 0;
    border-bottom: 1px dotted #c8a84b;
    break-inside: avoid;
    color: #111111;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .ribbon-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .entry-list {
        columns: 1;
    }

    h1 { font-size: 1.7em; }
    h2 { font-size: 1.4em; }
}