/* --- 1. GLOBAL RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    padding: 20px;
}

/* --- 2. NAVIGATION --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFDE7;
    padding: 10px 20px;
    min-height: 50px;
}
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links li {
    margin-left: 20px;
    list-style-image: none; /* Removes bullets from the menu */
}
.nav-links li a {
    text-decoration: none;
    font-weight: bold;
    color: #990033;
}

.site-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    background-color: #fffde7;
    padding: 15px 20px;
    border-bottom: 2px solid #f0e68c;
    margin-bottom: 20px;
}

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
}

.site-nav ul li a {
    color: #990033; /* Brand Red */
    font-weight: bold;
    text-decoration: none; 
}

.site-nav ul li a:hover {
    text-decoration: underline;
}

.site-nav .logo img {
    display: block;
}

/* --- 3. LINK STATES --- */
a:link { color: #990033; text-decoration: underline; }
a:visited { color: #000000; text-decoration: underline; }
a:hover { color: #ff6600; }
a:active { color: #ff0000; }

/* --- 4. LAYOUT --- */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-pane {
    flex: 3;
    min-width: 0; 
}

.right-col {
    flex: 1;
    background: #fdfdfd;
    padding: 15px;
    min-width: 250px;
    font-size: 0.85rem;
    color: #444;        
}

@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; }
    .site-nav { flex-direction: column; text-align: center; }
}

/* --- 5. TYPOGRAPHY & LISTS --- */
h1, h2, h3 { color: #990033; margin-bottom: 1rem; }
p { margin-bottom: 1.2rem; }

p.highlight {
    font-family: "Times New Roman", Times, serif; 
    font-weight: bold; 
    font-style: italic; 
    color: #990033;
}

/* Both panes now use the bullet.gif */
.main-pane ul, .sidenav_bullet {
    list-style-image: url('../images/bullet.gif');
    margin-left: 25px;
    margin-bottom: 1.2rem;
}

.sidenav_head { 
    background-color: #CCCCCC; 
    margin-bottom: 0px; 
	padding: 2px 5px;
}

/* --- 6. SIDEBAR SPECIFIC --- */
.sidenav_head {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 0.9rem;
    color: #000000;
    background-color: #eeeeee;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 10px;
    margin-bottom: 0 !important; 
    margin-top: 30px; 
}

.right-col .sidenav_head:first-of-type { margin-top: 0; }

.sidenav_bullet {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

.sidenav_bullet li {
    margin-bottom: 18px; 
    line-height: 1.4;
    padding-left: 5px; 
}

.right-col a { font-weight: bold; }

/* --- 7. ARTICLE LIST --- */
.article-list dl { display: flex; align-items: flex-start; padding: 12px 0; margin: 0; }
.article-list dt { flex: 0 0 auto; white-space: nowrap; font-weight: bold; font-size: 1rem; padding-right: 15px; min-width: 120px; }
.article-list dd { margin: 0; }
.article-list dd:first-of-type { flex: 0 0 auto; text-align: center; padding-right: 15px; min-width: 50px; padding-top: 2px; }
.article-list dd:last-of-type { flex: 1; }

/* --- 8. TIME MACHINE DROPDOWN --- */
.time-machine-select {
    width: 100%;
    padding: 10px;
    font-size: 16px; 
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    color: #990033; /* Brand Red Prompt */
    background-color: #fffde7;
    border: 2px solid #000000; 
    border-radius: 4px;
    cursor: pointer;
    appearance: none;          
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><path fill="%23990033" d="M0 0l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.time-machine-select:hover { background-color: #fff9c4; }
.time-machine-select:focus { outline: none; border-color: #ff6600; }

/* Closes gap between heading and form */
.sidenav_head + form[name="time_machine"] {
    margin-top: 0;
}

/* --- 9. FOOTER --- */
.home-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee; 
}

.home-footer p {
    font-size: 0.75rem; 
    color: #888;        
    line-height: 1.4;
}

/* --- 10. MEDIA & IMAGES --- */
iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

img {
    max-width: 100%;
    height: auto;
}