html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
    margin: 0;
    background: #f5f5f5;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.banner {
    background: linear-gradient(to right, #be1e2d, #002654);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
}

.banner img {
    height: 32px;
    margin-right: 1rem;
}

.sticky-nav {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1rem;
}

.sticky-nav a {
    text-decoration: none;
    color: #002654;
    font-weight: bold;
    padding: 0.3em 0.6em;
    border-radius: 4px;
}

.sticky-nav a.active {
    background: #002654;
    color: white;
}

.sticky-nav a:hover {
    background: #eee;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section {
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1rem;
    cursor: pointer;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    background: #eee;
    box-shadow: 0 1px 4px #777;
}


.tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    font-size: 0.8em;
    border-radius: 4px;
    margin-right: 0.5em;
    color: white;
}

.status-upcoming {
    background-color: goldenrod;
}

.status-active {
    background-color: forestgreen;
}

.status-expired {
    background-color: gray;
}

.status-removed {
    background-color: firebrick;
}

.status-suspended {
    background-color: darkorange;
}


.section[id]::before,
.card h3[id]::before {
    content: "";
    display: block;
    height: 120px;
    margin-top: -120px;
}

.intro-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f6edde;
    border-left: 6px solid #6d6d6d;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.intro-icon img {
    width: 64px;
}

@media (min-width: 768px) {
    .intro-icon img {
        width: 128px;
    }
}


.intro-content {
    flex: 1;
}

.intro-block h2 {
    margin-top: 0;
    color: #002654;
}

.intro-block p {
    margin-bottom: 0;
    line-height: 1.6;
}

.anchor-offset {
    display: block;
    position: relative;
    top: -140px;
    /* adjust to match sticky header height */
    visibility: hidden;
}

.border-red {
    border-left: 8px solid #be1e2d;
}

.border-blue {
    border-left: 8px solid #002654;
}


.count {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
}

.search-bar {
    text-align: center;
    margin-bottom: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}


.filter-container {
    padding: 0.5rem 1rem;
    background: #f8f8f8;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 800px;
}

.filter-bar fieldset {
    border: none;
    padding: 0;
}

.filter-bar legend {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.filter-bar label {
    margin-right: 1rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .filter-bar {
        flex-direction: column;
        align-items: center;
    }
}

.total-count {
    text-align: center;
    font-weight: bold;
    color: #333;
    margin-top: 1rem;
    margin-bottom: -1rem;
}

a.header-home {
    text-decoration: none;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.2s ease-in-out;
}

.analysis {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #f9f9f9;
    /* light blue tone for insight */
    border: 1px solid #888;
    border-radius: 6px;
    font-style: italic;
    color: #333;

}

.analysis p {
    margin: 0;
    line-height: 1.5;
}

.analysis h2 {
    font-style: normal;
}

a {
    color: #d32f2f;
    /* Maple red */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #a52727;
    /* Slightly darker red for visited links */
}

/* color scheme changes 
body {
    background-color: #150707;
    color: #f0f0f0;
}

.banner {
    background: linear-gradient(to right, #d32f2f, #6d0000);
    color: white;
}

.sticky-nav {
    background: #1a1a1c;
    border-bottom: 1px solid #333;
}

.sticky-nav a {
    color: #f0f0f0;
}

.sticky-nav a.active {
    background: #d32f2f;
    color: #fff;
}

.card {
    background: #1e1e20;
    border: 1px solid #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.card a {
    color: #ff6659;
    text-decoration: none;
}

.card:hover {
    background: #333;
}

.card a:hover {
    color: #ff6659;
    text-decoration: underline;
}

.tag {
    color: white;
}

.status-active {
    background-color: #4caf50;
}

.status-upcoming {
    background-color: #fbc02d;
}

.status-removed {
    background-color: #d32f2f;
}

.status-suspended {
    background-color: #ff9800;
}

.status-expired {
    background-color: #757575;
}

.analysis {
    background-color: #1a1d22;
    border-left: 4px solid #d32f2f;
    color: #ccc;
}

.filter-container {
    background: inherit;
}


.intro-block {
    background: inherit;
}

.intro-block h2 {
    color: white;
}*/


img.flag {
    padding: 2px;
    border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
    img.flag {
        background-color: white;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
    }
}


.page-title {
    font-size: larger;
    font-weight: bold;
    padding-right: 15px;
}

.page-subtitle {
    text-decoration: none;
    color: #ddd;
}