/* Global layout */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #492C27;
}

.page-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 0 auto; /* centres the page */
}

/* Header */
.header-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.nav {
    background: #492C27;
    color: #fff;
    padding: 0.3rem;
    margin: 0;
}

.nav-toggle {
    background: #8C0000;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    display: none;
}

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

.nav-links li {
    margin: 0.2rem 0.6rem;
}

.nav-links a {
    color: #FFFF99;
    font-weight: bold;
    text-decoration: none;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Mobile menu */
@media (max-width: 700px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        text-align: center;
    }
    body.nav-open .nav-links {
        display: flex;
    }
}

/* Content */
.content {
    margin: 0;
    padding: 0;
}

.card {
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.6rem 0.8rem;
    margin: 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden; /* prevents floated images overlapping */
}

.card p {
    margin: 0.3rem 0;
}

/* FLEX LAYOUT FOR INTRO */
.intro-flex {
    display: flex;
    gap: 1rem;
}

.intro-text {
    flex: 1;
}

/* SKLR ROTATOR */
.sklr-wrapper {
    width: 266px;
    text-align: center;
    margin-left: auto;
    margin-right: 0;
}

.sklr-image {
    width: 266px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sklr-caption {
    font-size: 0.8rem;
    color: #492C27;
    margin-top: 0.3rem;
}

/* Mobile layout */
@media (max-width: 700px) {
    .intro-flex {
        flex-direction: column;
    }
}

/* Other images */
.side-image,
.side-image2 {
    float: right;
    height: auto;
    margin: 0 0 0.4rem 0.6rem;
    border-radius: 4px;
}

.side-image {
    width: 266px;
}

.side-image2 {
    width: 350px;
}

/* Links table */
.links-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.links-header {
    background: #CCCCCC;
    padding: 0.3rem 0.4rem;
}

.links-body {
    background: #333333;
    color: #fff;
    padding: 0.4rem 0.6rem;
}

.links-body a {
    color: #FFFF99;
    text-decoration: none;
}

.links-body a:hover {
    text-decoration: underline;
}

/* Highlight */
.highlight {
    color: #FF0000;
    font-weight: bold;
}

.update-note {
    color: #8C0000;
    font-weight: bold;
}

/* Ads */
.ad-container {
    margin: 0;
    padding: 0;
    min-height: 120px; /* prevents layout shift */
    overflow: hidden;
    text-align: center;
}

/* Footer */
.footer {
    background: #492C27;
    color: #FFFF99;
    text-align: center;
    padding: 0.6rem;
    margin: 0;
}

.footer a {
    color: #FFFF99;
}

/* Data table formatting */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
}

.data-table th,
.data-table td {
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    vertical-align: top;
}

.data-table th {
    background: #CCCCCC;
    text-align: left;
}

.row-alt {
    background: #F2F2F2;
}

/* Responsive: move images BELOW tables on narrow screens */
@media (max-width: 700px) {
    .side-image,
    .side-image2 {
        float: none;
        display: block;
        margin: 0.6rem auto;
    }
}

/* Force Google CMP (cookie banner) to bottom */
#fc-consent-root {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: 999999 !important;
}
