/* =====================
   Base
   ===================== */
body {
    background-color: #FFFBFB;
    font-family: Arial, Helvetica, sans-serif;
    margin: 40px auto;
    max-width: 800px;
    padding: 0 20px;
    line-height: 1.7;
    color: #222;
}

/* =====================
   Navbar
   ===================== */
.navbar {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.navbar a {
    text-decoration: none;
    color: #333;
    margin: 0 8px;
}

.navbar a:hover,
.navbar a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* =====================
   Homepage intro (image + text side by side)
   ===================== */
.intro {
    display: flex;
    align-items: stretch;
    gap: 28px;
    margin-bottom: 8px;
}

.intro picture {
    flex-shrink: 0;
    width: 300px;
    display: block;
}

.intro img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.intro-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.intro-text p {
    margin: 0;
}

/* =====================
   Post list (blog / bug reports)
   ===================== */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.blog-header h1 {
    margin: 0;
}

.rss-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 0.85rem;
    color: #444;
    background-color: #f3f3f3;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rss-badge:hover {
    background-color: #eaeaea;
    border-color: #bbb;
    color: #000;
    text-decoration: none;
}

.rss-icon {
    stroke: #e65c00;
}

.post {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.post h2 {
    margin-bottom: 4px;
}

.post h2 a {
    text-decoration: none;
    color: #222;
}

.post h2 a:hover {
    text-decoration: underline;
}

.date {
    color: #595959;
    font-size: 0.875em;
    margin: 0 0 8px;
}

/* Screen reader only utility for SEO and accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================
   Article (full post page)
   ===================== */
.article h2 {
    margin-bottom: 4px;
}

/* =====================
   Bug reports table
   ===================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

tr:hover td {
    background-color: #faf5f5;
}

/* =====================
   Generic
   ===================== */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 28px 0;
}

a {
    color: #333;
}

a:hover {
    color: #000;
}

/* =====================
   Mobile responsiveness
   ===================== */
@media (max-width: 600px) {
    body {
        margin: 20px auto;
        padding: 0 16px;
        font-size: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.15rem;
    }

    .navbar {
        margin-bottom: 24px;
    }

    .navbar a {
        display: inline-block;
        margin: 4px 6px;
    }

    /* Stack image above text on mobile */
    .intro {
        flex-direction: column;
        align-items: center;
    }

    .intro picture,
    .intro img {
        width: 100%;
        max-width: 340px;
    }

    .intro-text {
        justify-content: flex-start;
        gap: 12px;
    }

    .intro-text p {
        margin: 0;
    }

    /* Make table horizontally scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    td, th {
        white-space: normal;
        min-width: 100px;
    }
}
