/* ================================================================
   AHNAF.KZ — PRAYER TIMES PAGE
   public/assets/site/css/prayertimes.css
================================================================ */

.pt-page { padding: 36px 0 64px; }

.pt-wrap {
    max-width: 800px;
    margin: 0 auto;
}

/* ── Шапка ───────────────────────────────────────────────────── */
.pt-head {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px;
    margin-bottom: 24px; flex-wrap: wrap;
}
.pt-eyebrow {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--teal); display: block; margin-bottom: 5px;
}
.pt-title {
    font-family: var(--font-display);
    font-size: clamp(20px, 3.5vw, 30px);
    font-weight: 400; color: var(--ink); line-height: 1.15;
}
.pt-month-badge {
    font-size: 12px; font-weight: 500;
    color: var(--teal);
    background: var(--mint-soft);
    border: 1px solid var(--teal-light);
    border-radius: var(--r-md);
    padding: 6px 14px;
    text-decoration: none;
    white-space: nowrap;
    align-self: flex-start;
}

/* ── Обёртка таблицы ─────────────────────────────────────────── */
.pt-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Таблица ─────────────────────────────────────────────────── */
.pt-table {
    width: 100%;
    min-width: 380px;           /* влезает в мобиль без скролла */
    border-collapse: separate;
    border-spacing: 0 3px;      /* зазор между строками */
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    table-layout: fixed;
}

/* ── Заголовок ─────────────────────────────────────────────────── */
.pt-head-row th { background: var(--teal); }

.pt-th {
    color: #fff;
    padding: 10px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}
.pt-th--day   { width: 38px; border-radius: 8px 0 0 8px; }
.pt-th--dim   { color: rgba(255,255,255,.65); font-weight: 400; }

/* Скруглить правый угол последнего th */
.pt-head-row th:last-child { border-radius: 0 8px 8px 0; }

/* ── Ячейки строк ──────────────────────────────────────────────── */
.pt-td {
    padding: 9px 6px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
    border-top: 1px solid var(--cream-2);
    border-bottom: 1px solid var(--cream-2);
    line-height: 1;
}
/* Левый и правый край + скругление */
.pt-td:first-child {
    border-left: 1px solid var(--cream-2);
    border-radius: 8px 0 0 8px;
    width: 38px;
}
.pt-td:last-child {
    border-right: 1px solid var(--cream-2);
    border-radius: 0 8px 8px 0;
}

/* День + день недели */
.pt-td--day { padding: 6px 4px; }
.pt-num {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1;
}
/* Слабый столбец (Күн шығу) */
.pt-td--dim { color: var(--muted); font-size: 13px; }

/* ── Состояния строк ───────────────────────────────────────────── */

/* Прошедшие: чуть серый фон, приглушённый текст */
.pt-row--past .pt-td {
    background: var(--bg);
    color: #aaa;
    border-color: transparent;
}
.pt-row--past .pt-td:first-child  { border-left-color: transparent; }
.pt-row--past .pt-td:last-child   { border-right-color: transparent; }
.pt-row--past .pt-num             { color: #bbb; }

/* Жұма: лёгкий зелёный оттенок */
.pt-row--friday .pt-td {
    background: #f2fbf8;
    border-color: #d4f0e8;
}
.pt-row--friday .pt-td:first-child  { border-left-color: #d4f0e8; }
.pt-row--friday .pt-td:last-child   { border-right-color: #d4f0e8; }

/* Сегодня: тёмно-зелёный, как заголовок */
.pt-row--today .pt-td {
    background: var(--teal) !important;
    color: #fff !important;
    border-color: var(--teal) !important;
    font-weight: 600;
}
.pt-row--today .pt-td--dim { color: rgba(255,255,255,.65) !important; font-weight: 400; }

/* Точка-индикатор в ячейке сегодня */
.pt-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: .85;
}

/* ── Пусто / сноска ─────────────────────────────────────────── */
.pt-empty {
    text-align: center; padding: 48px 24px;
    color: var(--muted); font-size: 15px;
}
.pt-footnote {
    margin-top: 12px;
    font-size: 11.5px; color: var(--muted);
    text-align: center; line-height: 1.5;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .pt-table   { font-size: 12.5px; }
    .pt-th      { padding: 9px 4px; font-size: 10px; }
    .pt-td      { padding: 8px 4px; }
    .pt-num     { font-size: 12.5px; }
    .pt-month-badge { display: none; }
}