:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #fefefe;
    --text: #111111;
    --muted: #5d6470;
    --line: #dde2ea;
    --brand: #e21818;
    --brand-dark: #b80f0f;
    --radius: 18px;
    --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
    --container: 1080px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans Myanmar", "Roboto", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(calc(100% - 1rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-hidden {
    transform: translateY(calc(-100% - 6px));
}

.header-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 0;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 700;
}

.brand-title {
    font-size: 2rem;
    line-height: 1;
    color: var(--brand);
}

.brand-subtitle {
    font-size: 1.3rem;
    line-height: 1;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.96rem;
    font-weight: 600;
}

.hero-section,
.section-block,
.page-intro,
.post-layout {
    padding: 1rem 0 1.5rem;
}

.hero-card,
.featured-post,
.post-card,
.single-post-card,
.weekly-results-card,
.calendar-card,
.lightbox-dialog__content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff2f2 100%);
}

.eyebrow,
.meta-line,
.archive-copy {
    color: var(--muted);
}

.eyebrow,
.meta-line {
    font-size: 0.9rem;
}

.hero-card h1,
.page-intro h1,
.featured-content h2,
.post-copy h3 {
    margin: 0 0 0.7rem;
    line-height: 1.35;
}

.hero-card h1 {
    font-size: 1.55rem;
}

.hero-text,
.post-copy p,
.featured-content p,
.single-content {
    font-size: 1rem;
}

.featured-post {
    overflow: hidden;
}

.featured-content,
.post-copy,
.single-content {
    padding: 1rem;
}

.featured-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.read-more,
.section-link {
    color: var(--brand-dark);
    font-weight: 700;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.section-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.post-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
}

.post-card {
    overflow: hidden;
}

.latest-post-card .post-copy {
    padding: 1rem;
}

.title-list {
    display: grid;
    gap: 0.75rem;
}

.title-list-item {
    padding: 0.95rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.title-list-item h3 {
    margin: 0;
    line-height: 1.45;
    font-size: 1rem;
}

.weekly-results-card {
    padding: 1rem;
}

.weekly-results-compact {
    padding: 0.75rem;
}

.weekly-table-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.weekly-table-wrap::-webkit-scrollbar {
    display: none;
}

.weekly-results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.weekly-results-table th,
.weekly-results-table td {
    border: 1px solid var(--line);
    text-align: center;
    padding: 0.55rem 0.35rem;
}

.weekly-results-table th {
    font-size: 0.9rem;
    background: #fff2c7;
    color: #c1121f;
    font-weight: 800;
}

.weekly-results-table td {
    background: #fefefe;
}

.time-label {
    display: block;
    margin-bottom: 0.2rem;
    color: #374151;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.weekly-results-table strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.1;
    color: #0b4fd1;
    font-weight: 800;
}

.post-copy h3 {
    font-size: 1.1rem;
}

.single-content img,
.single-content table,
.single-content iframe {
    max-width: 100%;
}

.single-content img {
    cursor: zoom-in;
}

.single-content table {
    display: block;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .container {
        width: min(calc(100% - 0.75rem), var(--container));
    }

    .site-header {
        background: rgba(255, 255, 255, 0.985);
    }

    .header-row {
        gap: 0.25rem;
        padding: 0.55rem 0 0.35rem;
    }

    .brand {
        gap: 0.3rem;
    }

    .brand-title {
        font-size: 1.45rem;
    }

    .brand-subtitle {
        font-size: 0.95rem;
    }

    .site-nav {
        border-top: 1px solid #eef1f5;
        padding-top: 0.25rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        justify-content: flex-start;
    }

    .nav-menu a {
        justify-content: flex-start;
        min-height: 2.2rem;
        padding: 0.3rem 0.55rem;
        border: 1px solid #f0b5b5;
        border-radius: 10px;
        background: #fff3f3;
        font-size: 0.82rem;
        font-weight: 600;
        color: #a31515;
        line-height: 1.25;
        text-align: left;
        box-shadow: 0 1px 0 rgba(226, 24, 24, 0.06);
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible {
        color: #7c1010;
        border-color: #ea8e8e;
        background: #ffe3e3;
    }

    .section-block,
    .page-intro,
    .post-layout {
        padding: 0.75rem 0 1rem;
    }

    .section-head {
        margin-bottom: 0.55rem;
    }

    .section-head h2 {
        font-size: 1.08rem;
    }

    .featured-post,
    .post-card,
    .single-post-card,
    .weekly-results-card,
    .calendar-card,
    .lightbox-dialog__content {
        border-radius: 14px;
    }

    .featured-content,
    .post-copy,
    .single-content {
        padding: 0.85rem;
    }

    .weekly-results-card {
        padding: 0.7rem;
    }

    .weekly-results-compact {
        padding: 0.45rem;
    }

    .weekly-results-table th,
    .weekly-results-table td {
        padding: 0.45rem 0.25rem;
    }

    .page-intro h1 {
        font-size: 1.45rem;
        margin-bottom: 0.35rem;
    }

    .calendar-hub-card {
        min-height: 3.9rem;
        padding: 0.7rem 0.5rem;
    }

    .calendar-hub-card strong {
        font-size: 0.98rem;
    }
}

.footer-inner {
    padding: 1.5rem 0 2rem;
    text-align: center;
    color: var(--muted);
}

.footer-name {
    margin: 0 0 0.3rem;
    color: var(--text);
    font-weight: 700;
}

.calendar-section + .calendar-section {
    margin-top: 1.5rem;
}

.calendar-section-copy {
    margin: -0.2rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.calendar-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.calendar-hub-card {
    display: grid;
    place-items: center;
    min-height: 4.4rem;
    padding: 0.75rem 0.45rem;
    background: linear-gradient(135deg, #fff6f6 0%, #ffe3e3 100%);
    border: 1px solid #efb4b4;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    color: #991b1b;
}

.calendar-hub-card strong {
    font-size: 0.92rem;
    line-height: 1.35;
}

.calendar-back-link {
    color: var(--brand-dark);
    font-weight: 700;
}

.calendar-date-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.calendar-date-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 0.95rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.calendar-date-card strong {
    font-size: 1rem;
}

.calendar-date-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.calendar-card {
    position: relative;
    overflow: hidden;
}

.calendar-badge-wrap {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 1;
}

.calendar-badge {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
}

.calendar-image-link {
    display: block;
    background: #eef2ff;
}

.calendar-image-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

.calendar-copy {
    padding: 0.8rem;
}

.calendar-copy h3 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    line-height: 1.45;
}

.calendar-download {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: #f3f6fb;
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
}

.calendar-placeholder {
    display: grid;
    place-items: center;
    min-height: 12rem;
    padding: 1rem;
    color: var(--muted);
    background: #f8fafc;
}

.lightbox-dialog {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.78);
}

.lightbox-dialog.is-open {
    display: grid;
    place-items: center;
}

.lightbox-dialog__content {
    position: relative;
    width: min(100%, 900px);
    max-height: calc(100vh - 2rem);
    padding: 0.75rem;
    overflow: auto;
}

.lightbox-dialog__image {
    width: 100%;
    height: auto;
}

.lightbox-dialog__title {
    margin: 0.75rem 0 0;
    font-size: 0.96rem;
}

.lightbox-dialog__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.75);
    color: #ffffff;
    cursor: pointer;
}

.pagination-wrap .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .container {
        width: min(calc(100% - 2rem), var(--container));
    }

    .header-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-card {
        padding: 2rem;
    }

    .hero-card h1 {
        font-size: 2.2rem;
    }

    .featured-post {
        display: grid;
        grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    }

    .post-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-date-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-only {
        display: block;
    }
}

@media (min-width: 1100px) {
    .post-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
