/* ===== Bahá'í Calendar – Elegant Theme ===== */

.bahai-calendar-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 940px;
    margin: 0 auto;
    padding: 48px 24px;
    color: #3D3630;
    line-height: 1.5;
}

/* ---------- Title ---------- */

.bahai-calendar-title {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    font-family: 'Lora', Georgia, serif;
    color: #1A1410;
    margin: 0 0 8px;
    letter-spacing: 0.3px;
    line-height: 1.35;
    text-transform: uppercase;
}

.bahai-calendar-subtitle {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: #5C5047;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

.bahai-calendar-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 2px;
    background: #B8963E;
    margin: 20px auto 0;
}

/* ---------- Section Headers ---------- */

.bahai-calendar-section-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: #3D3630;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #DDD5C9;
}

/* ---------- Legend ---------- */

.bahai-calendar-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 0;
}

.bahai-calendar-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4A4038;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.bahai-calendar-legend__swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.bahai-calendar-legend__swatch--month {
    background: #E8DCCA;
    border: 1px solid #D4C5A0;
}

.bahai-calendar-legend__swatch--intercalary {
    background: #B8963E;
}

.bahai-calendar-legend__swatch--holy {
    background: #6B4226;
}

/* ---------- Calendar List Layout ---------- */

.bahai-calendar.list-view {
    column-count: 2;
    column-gap: 48px;
    background: #FAF7F2;
    border: 1px solid #E4DACE;
    border-radius: 8px;
    padding: 20px 24px;
}

/* ---------- Calendar Rows (Months) ---------- */

.bahai-calendar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid #EBE5DB;
    background: transparent;
    break-inside: avoid;
}

.bahai-calendar-row__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bahai-calendar-row__num {
    font-weight: 700;
    font-size: 14px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E8DCCA;
    color: #4A3508;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.bahai-calendar-row__name {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.bahai-calendar-row__name strong {
    font-size: 17px;
    font-weight: 600;
    display: block;
    color: #1A1410;
    font-family: 'Lora', Georgia, serif;
}

.bahai-calendar-row__attr {
    font-size: 14px;
    color: #6E6259;
    font-style: italic;
    font-weight: 400;
}

.bahai-calendar-row__date {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
    min-width: 130px;
    color: #3D3630;
}

/* ---------- Ayyám-i-Há (Intercalary) ---------- */

.bahai-calendar-row--special {
    border: 1px solid #C9B48A;
    border-radius: 6px;
    padding: 13px 16px;
    margin: 4px 0;
    border-bottom: 1px solid #C9B48A;
}

.bahai-calendar-row--special .bahai-calendar-row__name strong {
    color: #4A3508;
}

.bahai-calendar-row--special .bahai-calendar-row__attr {
    color: #5C4510;
}

.bahai-calendar-row--special .bahai-calendar-row__date {
    color: #4A3508;
    font-weight: 600;
}

/* ---------- Holy Days & Significant Dates Grid ---------- */

.bahai-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
    padding-top: 0;
}

.bahai-dates-column {
    min-width: 0;
    padding: 20px;
    border-radius: 8px;
}

/* Holy Days column – deep warm brown */
.bahai-dates-column--holy {
    background: #F9F3EB;
    border: 1px solid #E0CEB5;
}

.bahai-dates-column--holy .bahai-dates-header {
    border-bottom-color: #D4BFA3;
}

.bahai-dates-column--holy .bahai-dates-title {
    color: #6B4226;
}

.bahai-dates-column--holy .bahai-calendar-row {
    border-bottom-color: #E8DBC9;
}

.bahai-dates-column--holy .bahai-calendar-row__name strong {
    color: #4A2C14;
}

/* Significant Dates column – muted gold/olive */
.bahai-dates-column--significant {
    background: #F7F4EC;
    border: 1px solid #DDD5C0;
}

.bahai-dates-column--significant .bahai-dates-header {
    border-bottom-color: #CFC5A8;
}

.bahai-dates-column--significant .bahai-dates-title {
    color: #6B5A10;
}

.bahai-dates-column--significant .bahai-calendar-row {
    border-bottom-color: #E5DFC9;
}

.bahai-dates-column--significant .bahai-calendar-row__name strong {
    color: #3D3415;
}

.bahai-dates-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid #DDD5C9;
    gap: 12px;
}

.bahai-dates-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #3D3630;
    font-family: 'Lora', Georgia, serif;
}

.bahai-dates-year {
    font-size: 14px;
    color: #6E6259;
    font-style: italic;
}

/* Rows inside dates columns */
.bahai-dates-column .bahai-calendar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #EBE5DB;
    margin-bottom: 0;
    box-shadow: none;
    background: transparent;
}

.bahai-dates-column .bahai-calendar-row:last-child {
    border-bottom: none;
}

.bahai-dates-column .bahai-calendar-row__left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bahai-dates-column .bahai-calendar-row__left::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bahai-dates-column--holy .bahai-calendar-row__left::before {
    background: #6B4226;
}

.bahai-dates-column--significant .bahai-calendar-row__left::before {
    background: #B8963E;
}

.bahai-dates-column .bahai-calendar-row__name strong {
    font-size: 16px;
    font-weight: 600;
    color: #1A1410;
}

.bahai-dates-column .bahai-calendar-row__date {
    font-size: 15px;
    color: #3D3630;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .bahai-calendar-container {
        padding: 32px 0;
    }

    .bahai-calendar-title {
        font-size: 22px;
    }

    .bahai-calendar.list-view {
        column-count: 1;
    }

    .bahai-dates-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .bahai-calendar-row {
        padding: 11px 0;
    }

    .bahai-calendar-row__left {
        gap: 10px;
        width: 100%;
    }

    .bahai-calendar-row__num {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    .bahai-calendar-row__name strong {
        font-size: 16px;
    }

    .bahai-calendar-row__date {
        font-size: 14px;
        min-width: auto;
    }

    .bahai-calendar-row--special {
        padding: 14px 12px;
    }

    .bahai-calendar-row--special .bahai-calendar-row__date {
        white-space: normal;
        text-wrap: wrap;
        min-width: 0;
    }

    .bahai-calendar-legend {
        gap: 16px;
    }
}
