/* ==========================================================================
   timetable.css - the yearly timetable page
   --------------------------------------------------------------------------
   Used by:     timetable/index.html only.
   ========================================================================== */

/* ---------- Yearly timetable page ---------- */
.tt-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.tt-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #264F27;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid #1d3a1e;
}

.tt-download-btn:hover,
.tt-download-btn:focus-visible {
    background: #1d3a1e;
}

.tt-download-btn.secondary {
    background: #fff;
    color: #264F27;
    border-color: rgba(38,79,39,0.35);
}

.tt-download-btn.secondary:hover {
    background: #f4f8f1;
}

.tt-month-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
}

.tt-tab {
    appearance: none;
    font: inherit;
    cursor: pointer;
    background: #fff;
    color: #264F27;
    font-weight: 600;
    border: 1px solid rgba(38, 79, 39, 0.3);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
}

.tt-tab:hover {
    background: #f4f8f1;
}

.tt-tab.active {
    background: #264F27;
    color: #fff;
    border-color: #1d3a1e;
}

.tt-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.tt-card-title {
    font-size: 1.3rem;
    color: #264F27;
    padding: 1rem 1.25rem 0.6rem;
}

.tt-note {
    padding: 0 1.25rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.tt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.tt-table th {
    text-align: center;
    white-space: nowrap;
    background: #264F27;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-top: 0;
    padding: 0.65rem 0.75rem;
}

.tt-table td {
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-top: 1px solid rgba(38,79,39,0.12);
    white-space: nowrap;
}

.tt-table td.tt-date {
    text-align: left;
    font-weight: 600;
    color: #1d2b1d;
}

.tt-table .tt-start {
    color: var(--text-muted);
    font-size: 0.82rem;
    display: block;
}

.tt-table .tt-iqamah {
    font-weight: 700;
}

.tt-table tr.today {
    background: #EAF0DF;
}

.tt-table tr.friday td {
    background: rgba(38, 79, 39, 0.06);
}

.tt-scroll {
    overflow-x: auto;
}

.tt-jumuah-note {
    margin: 0 0 1.25rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: #F2E8D7;
    color: #264F27;
    font-size: 0.88rem;
    line-height: 1.5;
    border: 1px solid rgba(38,79,39,0.25);
}

button.tt-download-btn {
    font-family: inherit;
}

@media (max-width: 640px) {
    .tt-table {
        font-size: 0.85rem;
    }

    .tt-table th,
    .tt-table td {
        padding: 0.4rem 0.5rem;
    }
}
