/* rattilha.com/prayer — صفحات مواقيت المدن (site/prayer). تُحمَّل بعد style.css وتعيد استخدام متغيّراته:
   رأس «سماء الوقت» (doc-sky + data-sky يضبطه سطر JS حسب الوقت الآن في المدينة) فوق ورق دافئ.
   خصائص منطقية فقط (inline-start/end) ليعمل العربي والإنجليزي بنفس القواعد. بلا صور ولا حركة. */
.pt-head { padding-block: 1.5rem 4.25rem; }
.pt-head .crumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .5rem; }
.pt-head .crumb li + li::before { content: "←"; margin-inline-end: .5rem; opacity: .7; }
html[dir="ltr"] .pt-head .crumb li + li::before { content: "→"; }
.pt-head .crumb li[aria-current] { font-weight: 700; color: var(--sky-ink); }
.pt-head h1 { margin: .4rem 0 .15rem; font-weight: 800; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.35; }
.pt-date { margin: 0 0 1.25rem; color: var(--sky-soft); font-size: .98rem; }

.pt-today { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; }
.pt-today li { position: relative; background: var(--sky-glass); border: 1px solid var(--sky-line); border-radius: 18px; padding: .8rem .9rem .85rem; display: flex; flex-direction: column; gap: .1rem; }
.pt-n { font-size: .9rem; color: var(--sky-soft); font-weight: 500; }
.pt-t { font-size: 1.55rem; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-t small, .pt-week small { font-size: .62em; font-weight: 600; opacity: .85; }
.pt-today .pt-sun { opacity: .82; }
.pt-today .pt-sun .pt-t { font-weight: 600; }
.pt-today li.is-next { background: var(--gold-l); border-color: var(--gold); color: #3a2a08; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .55); }
.pt-today li.is-next .pt-n { color: #6b4e14; }
.pt-badge { position: absolute; inset-block-start: -.6rem; inset-inline-end: .7rem; background: var(--gold); color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; padding: .05rem .55rem; border-radius: 999px; }
.pt-na { opacity: .6; }

.pt-main { padding-block: 1.5rem 3.5rem; }
.pt-intro { max-width: 72ch; font-size: 1.05rem; color: var(--ink-2); margin: 0 0 2rem; }
.pt-intro strong { color: var(--head); }
.pt-sec { margin-block: 2.25rem; }
.pt-sec h2, .pt-card h2 { margin: 0 0 .9rem; font-size: 1.3rem; color: var(--head); line-height: 1.5; }
.pt-sec h2 small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.pt-note { margin: .75rem 0 0; font-size: .86rem; color: var(--muted); }
.pt-more { margin: 1rem 0 0; font-weight: 500; }

.pt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.pt-scroll:focus-visible { outline-offset: 2px; }
.pt-week { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.pt-week th, .pt-week td { padding: .7rem .75rem; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pt-week thead th { font-size: .85rem; color: var(--muted); font-weight: 700; background: var(--stone); }
.pt-week tbody th { text-align: start; font-weight: 500; position: sticky; inset-inline-start: 0; background: var(--paper); }
.pt-week tbody th b { color: var(--head); }
.pt-week tbody th span { color: var(--ink-2); }
.pt-week tbody th small { display: block; color: var(--gold-text); font-size: .78rem; }
.pt-week tbody tr:last-child > * { border-bottom: 0; }
.pt-week tr.is-today > * { background: var(--mint); }
.pt-week tr.is-today th b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: .4rem; border-radius: 50%; background: var(--brand); vertical-align: middle; }
.pt-week td.is-next { background: var(--gold-l); color: #3a2a08; font-weight: 700; }
.pt-dst { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.pt-cities tbody th a { font-weight: 700; text-decoration: none; }
.pt-cities tbody th a:hover { text-decoration: underline; }

.pt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-block: 2.25rem; }
.pt-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.35rem 1.5rem; box-shadow: var(--shadow); }
.pt-dl { margin: 0; }
.pt-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.pt-dl div:last-child { border-bottom: 0; }
.pt-dl dt { color: var(--muted); font-size: .92rem; flex: none; }
.pt-dl dd { margin: 0; font-weight: 600; text-align: end; }
.pt-qrow { display: flex; align-items: center; gap: 1.25rem; }
.pt-qrow p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pt-compass { width: 128px; height: 128px; flex: none; }
.pt-compass .c-ring { fill: var(--stone); stroke: var(--line); stroke-width: 2; }
.pt-compass .c-tick { stroke: var(--muted); stroke-width: 2; }
.pt-compass .c-n { fill: var(--muted); font: 700 13px "Noto Kufi Arabic", system-ui, sans-serif; }
.pt-compass .c-arrow { fill: var(--brand-d); }
.pt-compass .c-kaaba { fill: var(--ink); stroke: var(--gold); stroke-width: 1.5; }
.pt-compass .c-hub { fill: var(--gold); }
.pt-big { font-size: 1rem; }
.pt-big b { font-size: 2.2rem; color: var(--head); font-weight: 800; line-height: 1.2; }
.pt-big span { display: block; color: var(--ink-2); font-weight: 600; }

.pt-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .55rem; }
.pt-links li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .9rem; display: flex; flex-direction: column; line-height: 1.5; }
.pt-links a, .pt-az a { font-weight: 600; text-decoration: none; }
.pt-links a:hover, .pt-az a:hover { text-decoration: underline; }
.pt-links small, .pt-az small { color: var(--muted); font-size: .8rem; }
.pt-az { list-style: none; margin: 0; padding: 0; columns: 4 12rem; column-gap: 1.5rem; }
.pt-az li { padding: .22rem 0; break-inside: avoid; }
.pt-pages { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.pt-pages a, .pt-pages span { min-width: 2.5rem; min-height: 2.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; }
.pt-pages span { background: var(--brand-d); color: #fff; border-color: var(--brand-d); }

.pt-cta { margin-top: 3rem; padding: 2rem 1.75rem; border-radius: calc(var(--r) + 4px); color: #fff; background: radial-gradient(70% 90% at 15% 100%, rgba(255, 199, 120, .45), rgba(255, 199, 120, 0) 70%), linear-gradient(160deg, #3b2a55 0%, #94506c 60%, #c9715a 100%); }
.pt-cta h2 { margin: 0 0 .5rem; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); color: #fff; }
.pt-cta p { margin: 0 0 1.25rem; max-width: 60ch; color: rgba(255, 255, 255, .92); }
.pt-cta-a { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.pt-apk { color: #fff; font-weight: 600; }

@media (max-width: 900px) {
    .pt-today { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .pt-head { padding-block: 1rem 3rem; }
    .pt-today { gap: .55rem; }
    .pt-today li { padding: .65rem .7rem; border-radius: 14px; }
    .pt-t { font-size: 1.22rem; }
    .pt-n { font-size: .82rem; }
    .pt-scroll { margin-inline: -1rem; border-radius: 0; border-inline: 0; }
    .pt-week { font-size: .84rem; }
    .pt-week th, .pt-week td { padding: .55rem .3rem; }
    .pt-week thead th { font-size: .76rem; }
    /* الشروق موجود في بطاقات اليوم أعلى الصفحة — يُخفى من الجدول على الهاتف لتظهر الصلوات الخمس بلا تمرير */
    .pt-week:not(.pt-cities) tr > :nth-child(3) { display: none; }
    .pt-week:not(.pt-cities) tbody th { line-height: 1.45; white-space: normal; width: 5.2rem; min-width: 4.6rem; }
    .pt-week tbody th small { font-size: .7rem; line-height: 1.35; }
    .pt-week:not(.pt-cities) tbody th b, .pt-week:not(.pt-cities) tbody th span { display: block; }
    .pt-week tbody th span { font-size: .74rem; }
    .pt-week tr.is-today th b::after { display: none; }
    .pt-cities { font-size: .8rem; }
    .pt-cities th, .pt-cities td { padding-inline: .22rem; }
    .pt-cities tbody th { white-space: normal; min-width: 4.5rem; }
    .pt-card { padding: 1.15rem 1.1rem; }
    .pt-compass { width: 104px; height: 104px; }
    .pt-az { columns: 2; }
    .pt-cta { padding: 1.5rem 1.25rem; }
    .pt-cta .btn { width: 100%; }
}
@media (max-width: 380px) {
    .pt-week { font-size: .79rem; }
    .pt-week th, .pt-week td { padding-inline: .24rem; }
}
