/* The white days (round 351): the page (white-days.php), the days in the calendar (calendar.php) and the line on the
   city pages (prayer-times.php). Logical properties, so the same file serves right-to-left pages (css/rtl/ is a copy). */

/* ── the page ── */
.wd-page { max-width: 1100px; }
.wd-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; align-items: center; margin: 14px 0 48px; }
.wd-kicker { margin: 0 0 10px; font: 700 12px/1.4 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--t-accent); }
.wd-h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 16px; color: var(--t-text); font-weight: 700; }
.wd-lead { font-size: 1.1rem; line-height: 1.65; color: var(--t-text-secondary); margin: 0; max-width: 560px; }

.wd-next { position: relative; overflow: hidden; padding: 28px 26px 24px; border-radius: 26px; color: #eef2f8;
    background: radial-gradient(120% 90% at 85% 0%, #2c3d63 0%, #18223c 55%, #0f1628 100%); box-shadow: 0 24px 50px -28px rgba(15, 22, 40, .7); }
.wd-next::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 32% 68%, #fff 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 58% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 8% 84%, #fff 50%, transparent 51%),
        radial-gradient(1px 1px at 46% 40%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 22% 50%, #fff 50%, transparent 51%); }
.wd-fullmoon { position: absolute; top: 22px; inset-inline-end: 24px; width: 92px; height: 92px; border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, rgba(0, 0, 0, .07) 0 9%, transparent 10%), radial-gradient(circle at 62% 58%, rgba(0, 0, 0, .08) 0 13%, transparent 14%),
        radial-gradient(circle at 40% 70%, rgba(0, 0, 0, .06) 0 7%, transparent 8%), radial-gradient(circle at 70% 30%, rgba(0, 0, 0, .05) 0 6%, transparent 7%),
        radial-gradient(circle at 40% 35%, #fffdf6, #f1ead7 60%, #ddd3bb);
    box-shadow: 0 0 0 10px rgba(255, 248, 225, .05), 0 0 40px 8px rgba(255, 244, 210, .35); }
.wd-next > *:not(.wd-fullmoon) { position: relative; }
.wd-next-k { margin: 0 0 10px; font: 700 12px/1.3 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #f2d58a; padding-inline-end: 110px; }
.wd-next-d { margin: 0; font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.02em; padding-inline-end: 110px; }
.wd-next-d span { font-weight: 500; opacity: .6; }
.wd-next-h { margin: 8px 0 0; font-size: 15px; color: rgba(238, 242, 248, .78); }
.wd-next-in { display: inline-flex; margin: 14px 0 0; padding: 5px 12px; border-radius: 999px; background: rgba(242, 213, 138, .14); color: #f2d58a; font: 700 13px/1.3 'Inter', sans-serif; }
.wd-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.wd-chips li { display: grid; gap: 2px; padding: 12px 12px 11px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); }
.wd-chips b { font: 700 22px/1 'Space Grotesk', sans-serif; color: #fff7e2; }
.wd-chips span { font-size: 13px; font-weight: 600; text-transform: capitalize; }
.wd-chips small { font-size: 12px; opacity: .7; }
.wd-chips li.is-today { background: rgba(242, 213, 138, .2); border-color: rgba(242, 213, 138, .6); }
.wd-chips li.is-past { opacity: .45; }
.wd-next-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(238, 242, 248, .72); }

.wd-sec { margin-bottom: 44px; }
.wd-sec h2, .wd-page .gr-faq h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; color: var(--t-text); font-weight: 700; }
.wd-p { margin: 0 0 14px; font-size: 1.03rem; line-height: 1.7; color: var(--t-text-secondary); max-width: 820px; }
.wd-note { margin: 12px 0 0; font-size: .92rem; line-height: 1.6; padding: 12px 16px; border-radius: 14px; background: var(--t-input-bg, rgba(0, 0, 0, .04)); color: var(--t-text-secondary); max-width: 860px; }
.wd-table th small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: var(--t-text-secondary); }
.wd-table tr.is-next th, .wd-table tr.is-next td { background: color-mix(in srgb, var(--t-accent) 9%, transparent); }
.wd-star { color: var(--t-accent); font-weight: 700; }

.wd-hadiths { display: grid; gap: 14px; max-width: 900px; }
.wd-hd { margin: 0; padding: 20px 24px; border-radius: 18px; border-inline-start: 4px solid var(--t-accent); background: linear-gradient(135deg, rgba(var(--t-accent-rgb), .09), var(--t-card) 70%); }
.wd-hd blockquote { margin: 0; font-size: 1.08rem; line-height: 1.7; color: var(--t-text); white-space: pre-line; }
html[lang="ar"] .wd-hd blockquote, html[lang="ur"] .wd-hd blockquote, html[lang="fa"] .wd-hd blockquote { font-size: 1.25rem; line-height: 1.9; }
.wd-hd figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 13px; color: var(--t-text-secondary); }
.wd-hd figcaption a { margin-inline-start: auto; color: var(--t-accent); font-weight: 650; text-decoration: none; }
.wd-hd figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wd-hd-ref { font-size: 1rem; line-height: 1.65; color: var(--t-text); background: var(--t-card); border-inline-start-color: color-mix(in srgb, var(--t-accent) 35%, var(--t-border)); }
.hd-grade { display: inline-flex; align-items: center; flex: none; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: rgba(22, 163, 74, .12); color: #15803d; }
.hd-grade.is-hasan { background: rgba(14, 165, 233, .13); color: #0369a1; }
.hd-grade.is-other { background: var(--t-bg); color: var(--t-text-secondary); }
[data-theme="midnight"] .hd-grade.is-sahih, [data-theme="slate"] .hd-grade.is-sahih { color: #4ade80; }
[data-theme="midnight"] .hd-grade.is-hasan, [data-theme="slate"] .hd-grade.is-hasan { color: #7dd3fc; }

.wd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wd-card { padding: 20px; border-radius: 18px; border: 1px solid var(--t-border); background: var(--t-card); }
.wd-card h3 { margin: 0 0 6px; font: 700 1.04rem/1.3 'Space Grotesk', sans-serif; color: var(--t-text); }
.wd-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--t-text-secondary); }
.wd-weak .wd-p { padding: 16px 18px; border-radius: 16px; border: 1px dashed color-mix(in srgb, #d97706 55%, transparent); background: color-mix(in srgb, #d97706 6%, transparent); }

.wd-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 10px; }
.wd-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--t-accent); color: #fff; font: 650 15px/1 'Inter', sans-serif; text-decoration: none; }
.wd-btn:hover { filter: brightness(1.08); }
.wd-btn-2 { background: none; color: var(--t-accent); box-shadow: inset 0 0 0 1.5px var(--t-accent); }

@media (max-width: 900px) { .wd-hero { grid-template-columns: 1fr; gap: 24px; } .wd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .wd-cards { grid-template-columns: 1fr; } .wd-hd { padding: 16px 18px; }
    .wd-fullmoon { width: 64px; height: 64px; top: 18px; inset-inline-end: 18px; }
    .wd-next-k, .wd-next-d { padding-inline-end: 76px; }
    .wd-chips { gap: 6px; } .wd-chips li { padding: 10px 9px; }
}

/* ── the calendar: the white days glow like moonlight ── */
.cg-table td.is-white { background: #f6efd8; box-shadow: inset 0 0 0 1px rgba(201, 176, 112, .45); cursor: help; outline: none; }
.cg-table td.is-white::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fffaf0; box-shadow: 0 0 0 1px rgba(176, 146, 72, .6), 0 0 6px rgba(255, 226, 150, .9); }
.cg-table td.is-white.has-link { cursor: pointer; }
.cg-table td.is-white:hover, .cg-table td.is-white:focus, .cg-table td.is-white:focus-within { box-shadow: inset 0 0 0 1.5px rgba(176, 146, 72, .75); }
.cg-table td.is-white.is-today { background: var(--t-accent); }
[data-theme="midnight"] .cg-table td.is-white, [data-theme="slate"] .cg-table td.is-white { background: rgba(242, 226, 180, .14); box-shadow: inset 0 0 0 1px rgba(242, 226, 180, .25); }
.cg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 14px 0 0; font-size: 13px; color: var(--t-text-secondary); }
.cg-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cg-legend i { flex: none; width: 18px; height: 18px; border-radius: 6px; }
.cg-legend .is-white i { background: #f6efd8; box-shadow: inset 0 0 0 1px rgba(201, 176, 112, .55); }
[data-theme="midnight"] .cg-legend .is-white i, [data-theme="slate"] .cg-legend .is-white i { background: rgba(242, 226, 180, .18); }
.cg-legend .is-holiday i { background: rgba(217, 119, 6, .22); }
.cg-legend a { color: var(--t-accent); font-weight: 600; text-decoration: none; }
.cg-legend a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── the line on the city pages and the calendar ── */
.wd-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--t-text-secondary);
    background: color-mix(in srgb, var(--t-card) 70%, transparent); border: 1px solid var(--t-border); }
.wd-line .wd-moon { flex: none; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fffdf6, #e9e0c8 70%); box-shadow: 0 0 0 1px rgba(148, 130, 90, .35), 0 0 10px rgba(255, 230, 160, .55); }
.wd-line .wd-line-t { color: var(--t-text); font-weight: 600; }
.wd-line a { margin-inline-start: auto; color: var(--t-accent); font-weight: 650; text-decoration: none; white-space: nowrap; }
.wd-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wd-line.is-on { border-color: rgba(212, 175, 90, .55); background: linear-gradient(90deg, rgba(242, 213, 138, .18), transparent 80%); }
