:root {
  --bg: #efebe1; --surface: #e4ddcd; --ink: #201f1d; --muted: #5d574b;
  --line: rgba(32,31,29,.16); --acc: #8c6226; --acc-2: #b68235; --glow: rgba(182,130,53,.38); --on-acc: #fbf7ef;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15130f; --surface: #1f1b16; --ink: #efeae0; --muted: #b0a797; --line: rgba(239,234,224,.16); --acc: #d7a458; --acc-2: #ebc07c; --glow: rgba(216,164,88,.42); --on-acc: #15130f; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0); }
.wrap { max-width: 720px; margin: 0 auto; padding: 14px 20px 48px; }
a { color: var(--acc); text-underline-offset: 3px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 14px; white-space: nowrap; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; padding: 10px 0; }
.crumbs { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 10px 0 8px; }
.intro { color: var(--muted); margin: 0 0 22px; }
h2 { font-size: 21px; letter-spacing: -.01em; margin: 38px 0 10px; }
.card { background: var(--surface); border-radius: 14px; padding: 18px; }
.date { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.next { margin: 0 0 12px; font-size: 16px; }
.next b { color: var(--acc); }
ul.today { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.today li { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.today li span { font-size: 14px; color: var(--muted); }
.today li b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.today li.past { opacity: .6; }
.today li.now { outline: 2px solid var(--acc); }
.today li.now span { color: var(--acc); font-weight: 700; }
@media (min-width: 560px) { .today { grid-template-columns: repeat(6, 1fr); } }
.qibla { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.qibla svg { width: 120px; height: 120px; }
.qibla .big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; display: block; }
.qibla p { margin: 4px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 999px;
  background: var(--acc); color: var(--on-acc); font-weight: 700; text-decoration: none; margin-top: 16px; }
.qt { font-size: 30px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.month-head b { font-size: 17px; }
.month-head button { min-width: 48px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--surface); font-size: 13px; color: var(--muted); position: sticky; top: 0; }
tbody th { color: var(--muted); font-weight: 600; }
tr.is-today { background: var(--glow); font-weight: 700; }
td.q { color: var(--acc); }
.note { font-size: 14px; color: var(--muted); }
.near { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.near a { display: inline-block; padding: 10px 14px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; font-size: 15px; }
.cities { columns: 2; column-gap: 24px; padding: 0; list-style: none; }
.cities li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cities a { text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.cities small { color: var(--muted); font-weight: 400; }
@media (min-width: 600px) { .cities { columns: 3; } }
footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.prose p { max-width: 65ch; }
.prose h2 { margin-top: 30px; }
@font-face { font-family: "Amiri Quran Local"; src: url("/amiri-quran.woff2") format("woff2"); font-display: swap; }
.ar { direction: rtl; text-align: right; font-family: "Amiri Quran Local", "Amiri Quran", "Noto Naskh Arabic", "Geeza Pro", serif;
  font-size: 30px; line-height: 2.4; padding: 14px 16px; border-radius: 12px; background: var(--surface); white-space: pre-line; margin: 18px 0 8px; max-width: none !important; }
.tr, .mean { white-space: pre-line; font-size: 17px; line-height: 1.7; }
.tr { font-style: italic; }
.steps { padding-left: 1.6em; }
.steps li { margin: 0 0 12px; line-height: 1.65; padding-left: 4px; }
.steps li::marker { color: var(--acc); font-weight: 700; }
td.dt { text-align: left; white-space: normal; }
.pose { margin: 12px 0 4px; background: var(--surface); border-radius: 12px; padding: 4px; }
.pose img { display: block; width: 100%; height: auto; }
.pose img.w, body.kadin .pose img.m { display: none; }
body.kadin .pose img.w { display: block; }
.gtog { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.gtog span { font-size: 14px; color: var(--muted); }
.gtog button { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--acc); background: transparent; color: var(--acc); font: inherit; font-weight: 700; cursor: pointer; }
.gtog button[aria-pressed="true"] { background: var(--acc); color: var(--on-acc); }
.steps .pose { margin-left: -1.6em; }
