/* Hijri date pages (scripts/hijri-pages): parchment and gold on the city-pages base. */
:root { --ink: #1d1a12; --gold: #b38a2a; --vellum: #fffdf6; --vellum-2: #f6eeda; --today: #006400; }
@media (prefers-color-scheme: dark) { :root { --ink: #f2ead2; --gold: #e2c15a; --vellum: #121a3d; --vellum-2: #0b1130; --today: #4caf50; } }
.langs { font-size: 13px; padding: 10px 16px 0; color: var(--muted); }
.h { gap: 20px; }
.h > * { min-width: 0; }
.hhead { text-align: center; padding: 30px 18px 24px; border-radius: 16px; color: var(--ink);
  background: radial-gradient(120% 120% at 50% 0%, var(--vellum), var(--vellum-2)); border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 5px var(--vellum), inset 0 0 0 6px color-mix(in srgb, var(--gold) 55%, transparent); }
.hhead h1 { font-family: Marcellus, Georgia, serif; font-weight: 400; font-size: clamp(22px, 4vw, 32px); }
.hhead .ar { font-family: Amiri, serif; font-size: clamp(24px, 5vw, 34px); color: var(--gold); }
.today-card .eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.today-card .big { font-family: Marcellus, Georgia, serif; font-size: clamp(30px, 7vw, 52px); line-height: 1.15; margin: 6px 0; }
.today-card h1 { font-size: 16px; color: var(--muted); margin-top: 12px; font-family: inherit; }
.hgrid { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.hgrid ol { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd li { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.days li { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; align-content: start; gap: 2px; background: var(--paper); }
.days li.pad { border: 0; background: none; }
.days b { font-family: Marcellus, Georgia, serif; font-size: 20px; font-weight: 400; color: var(--ink); }
.days small { font-size: 11px; color: var(--muted); }
.days i { font-style: normal; font-size: 11px; line-height: 1.25; color: var(--gold-dark); font-weight: 600; overflow-wrap: anywhere; }
.days .is-ev { background: var(--gold-soft); border-color: var(--gold); }
.days .is-fri b { color: var(--green); }
.days .is-today { box-shadow: 0 0 0 2px var(--today); }
.more { text-align: end; }
.evs { list-style: none; display: grid; gap: 10px; }
.conv label { display: grid; gap: 6px; max-width: 320px; }
.conv input { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--paper); color: var(--text); }
.conv output { display: block; margin-top: 12px; font-family: Marcellus, Georgia, serif; font-size: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 500; min-height: 32px; }
.faq p { margin-top: 6px; color: var(--muted); }
.mlist { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mlist a { display: grid; grid-template-columns: 36px 1fr; gap: 0 10px; padding: 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mlist a:hover { border-color: var(--gold); }
.mlist b { grid-row: span 3; align-self: center; text-align: center; font-family: Marcellus, serif; color: var(--gold-dark); }
.mlist .ar { font-family: Amiri, serif; font-size: 20px; }
.mlist small { color: var(--muted); }
.pn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pn a, .pn b { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; }
@media (max-width: 560px) { .days li { min-height: 52px; padding: 4px; } .days b { font-size: 16px; } .days small { font-size: 10px; } }
