/* SalahTable — emerald and gold, an eight-point-star pattern and mihrab arches; the answer first, fast on phones. */
/* Self-hosted (OFL, see public/fonts/): Cormorant Garamond latin, variable 600–700; Amiri Bold subset to the six Arabic prayer names. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/cormorant-garamond-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/amiri-bold-prayers.woff2) format("woff2");
  unicode-range: U+0621, U+0627-0628, U+062C, U+0631, U+0634-0635, U+0638-063A, U+0641-0642, U+0644-0645, U+0647-0648; }

:root {
  --bg: #f7f3ea; --card: #fffdf8; --ink: #17221f; --muted: #5f6b66; --line: #e7dfcf; --line-2: #efe9dc;
  --emerald: #0b3d34; --emerald-2: #0f5c4d; --link: #12705d; --tint: #eaf2ec;
  --gold: #b8913a; --gold-hi: #d9b867; --gold-soft: #f6ecd2;
  --hero-ink: #f4efe2; --hero-muted: #b9cbc3;
  --radius: 18px; --shadow: 0 1px 2px rgba(23, 34, 31, .04), 0 8px 24px -12px rgba(23, 34, 31, .12);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --arabic: "Amiri", "Geeza Pro", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d9b867' stroke-width='.8'%3E%3Cpath d='M36 14l6.4 15.6L58 36l-15.6 6.4L36 58l-6.4-15.6L14 36l15.6-6.4z'/%3E%3Crect x='20.4' y='20.4' width='31.2' height='31.2'/%3E%3Crect x='20.4' y='20.4' width='31.2' height='31.2' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 0l14 14M72 0L58 14M0 72l14-14M72 72L58 58M36 0v6M36 66v6M0 36h6M66 36h6'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09130f; --card: #0f1d19; --ink: #e9e4d6; --muted: #9babA4; --line: #1e322c; --line-2: #172822;
    --emerald: #062a23; --emerald-2: #0c4a3e; --link: #7fcfb6; --tint: #12302a;
    --gold: #d9b867; --gold-hi: #e6c97f; --gold-soft: #2a2614;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
/* Shown only when JS runs; the class is set in <head> before first paint, so nothing shifts. */
html:not(.js) .js-only { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); color: var(--ink); padding: 6px 10px; z-index: 10; }
[lang="ar"] { font-family: var(--arabic); font-weight: 700; }

/* ---------- Header + hero: one dark band with the star pattern, ending in a row of arches ---------- */
.top {
  position: relative; color: var(--hero-ink); padding-bottom: 44px;
  background:
    radial-gradient(ellipse 70% 90% at 85% 0%, rgba(217, 184, 103, .16), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(19, 122, 102, .35), transparent 60%),
    var(--emerald);
}
.top::before { content: ""; position: absolute; inset: 0; background: var(--pattern); opacity: .13; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .35) 100%); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px;
  background: radial-gradient(circle at 50% 0, transparent 13px, var(--bg) 14px) 50% 0 / 28px 14px repeat-x; }
.top > * { position: relative; }
.top a { color: var(--hero-ink); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.5rem/1 var(--serif); letter-spacing: .01em; text-decoration: none; }
.brand .mark { width: 30px; height: 30px; color: var(--gold-hi); flex: none; }
header.site nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
header.site nav a { text-decoration: none; font-size: .92rem; color: var(--hero-muted); padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
header.site nav a:hover { color: var(--hero-ink); background: rgba(255, 255, 255, .08); }

.hero { padding-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--hero-muted); margin: 6px 0 14px; }
.crumbs a { color: var(--hero-muted); text-decoration: none; }
.crumbs a:hover { color: var(--hero-ink); }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current] { color: var(--hero-ink); }
.eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.top .eyebrow { color: var(--gold-hi); }
.eyebrow .dot { margin: 0 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.04; margin: 0 0 14px; }
.top .lead { color: var(--hero-muted); max-width: 60ch; margin: 0 0 8px; font-size: 1.02rem; }
.top .lead a { color: var(--gold-hi); }

.hero-split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .hero-split { grid-template-columns: 1fr 340px; gap: 48px; } }

/* Mihrab-arch card for the next prayer (and the home "near you" box) */
.next, .near {
  position: relative; text-align: center; padding: 46px 26px 26px;
  border-radius: 50% 50% var(--radius) var(--radius) / 120px 120px var(--radius) var(--radius);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(217, 184, 103, .45);
  box-shadow: inset 0 0 0 6px rgba(11, 61, 52, .5), inset 0 0 0 7px rgba(217, 184, 103, .18), 0 20px 40px -20px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.next p { margin: 0; }
.next .ar { font-size: 2.6rem; line-height: 1.3; color: var(--gold-hi); }
.next-name { font-size: 1.05rem; color: var(--hero-muted); }
.next-name strong { color: var(--hero-ink); font: 700 1.5rem/1 var(--serif); margin-right: 4px; }
.countdown { font-size: 2.1rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; margin: 12px 0 14px !important; color: var(--hero-ink); }
.progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); border-radius: inherit; transform-origin: left; transition: transform 1s linear; }

.near h2 { font-size: 1.9rem; margin: 0 0 14px; }
.near h2 a { text-decoration: none; }
.mini { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.mini li { display: flex; justify-content: space-between; padding: 7px 4px; border-bottom: 1px solid rgba(217, 184, 103, .16); color: var(--hero-muted); }
.mini li strong { color: var(--hero-ink); font-variant-numeric: tabular-nums; }
.mini li.is-past { opacity: .55; }
.star-art { display: none; }
@media (min-width: 820px) {
  .star-art { display: grid; place-items: center; aspect-ratio: 1; color: var(--gold-hi);
    background: radial-gradient(circle, rgba(217, 184, 103, .18), transparent 62%); }
  .star-art::before { content: ""; grid-area: 1 / 1; width: 78%; aspect-ratio: 1; border: 1px solid rgba(217, 184, 103, .5);
    clip-path: polygon(50% 0, 65.3% 13%, 85.4% 14.6%, 87% 34.7%, 100% 50%, 87% 65.3%, 85.4% 85.4%, 65.3% 87%, 50% 100%, 34.7% 87%, 14.6% 85.4%, 13% 65.3%, 0 50%, 13% 34.7%, 14.6% 14.6%, 34.7% 13%);
    background: linear-gradient(135deg, rgba(217, 184, 103, .35), rgba(217, 184, 103, .06)); }
  .star-art .ic { grid-area: 1 / 1; width: 34%; height: auto; stroke-width: 1.2; }
}

.search { display: flex; gap: 8px; margin-top: 22px; max-width: 520px; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(217, 184, 103, .45);
  background: rgba(255, 255, 255, .96); color: #17221f; }
.search input::placeholder { color: #7a857f; }

/* ---------- Main ---------- */
main { padding: 26px 16px 56px; }
main > section, main > .prose { margin-top: 44px; }
main > section:first-child { margin-top: 4px; }
main h2 { font-size: clamp(1.55rem, 3vw, 1.95rem); line-height: 1.15; margin: 40px 0 14px; display: flex; align-items: center; gap: 10px; }
main h2::before { content: ""; flex: none; width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); margin: 0 6px 0 3px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 16px; margin: 40px 0 14px; }
.section-head h2 { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fine { font-size: .84rem; color: var(--muted); }
.lead { color: var(--muted); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  background: var(--emerald-2); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { background: var(--emerald); box-shadow: 0 6px 16px -8px rgba(11, 61, 52, .6); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--link); border-color: var(--line); }
.button.ghost:hover { border-color: var(--link); box-shadow: none; }
.button.gold, .top .button.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1d1606; }
.button.gold:hover { filter: brightness(1.05); }

/* Today's six prayers */
.prayers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prayers li {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; column-gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.prayers .ic { width: 40px; height: 34px; color: var(--gold); grid-row: span 2; }
.prayers .nm { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.prayers .en { font-weight: 600; }
.prayers .nm .ar { color: var(--muted); font-size: 1.05rem; }
.prayers time { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; grid-row: span 2; }
.prayers small { grid-column: 2; color: var(--muted); font-size: .8rem; }
.prayers small time { font-size: inherit; font-weight: 600; color: var(--ink); }
.prayers li.is-past { opacity: .6; box-shadow: none; }
.prayers li.is-next { background: linear-gradient(160deg, var(--emerald-2), var(--emerald)); border-color: var(--gold); color: var(--hero-ink);
  box-shadow: 0 0 0 1px var(--gold), 0 18px 30px -16px rgba(11, 61, 52, .7); }
.prayers li.is-next .ic, .prayers li.is-next .ar { color: var(--gold-hi); }
.prayers li.is-next small, .prayers li.is-next small time { color: var(--hero-muted); }
.prayers li.is-next::after { content: "Next"; position: absolute; top: -9px; right: 14px; background: var(--gold); color: #1d1606; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
@media (min-width: 640px) {
  .prayers { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .prayers li { grid-template-columns: 1fr; text-align: center; justify-items: center; align-content: start; row-gap: 4px; padding: 22px 14px 18px; border-radius: 999px 999px 16px 16px / 70px 70px 16px 16px; }
  .prayers li:hover { transform: translateY(-2px); }
  .prayers .ic { grid-row: auto; width: 46px; height: 40px; margin-bottom: 4px; }
  .prayers .nm { flex-direction: column; align-items: center; gap: 0; }
  .prayers .nm .ar { font-size: 1.2rem; line-height: 1.5; }
  .prayers time { grid-row: auto; font-size: 1.6rem; margin-top: 2px; }
  .prayers small { grid-column: auto; }
  .prayers li.is-next::after { right: 50%; transform: translateX(50%); }
}
@media (min-width: 980px) { .prayers { grid-template-columns: repeat(6, 1fr); } .prayers time { font-size: 1.5rem; } }

/* Tables */
.scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 11px 14px; text-align: left; }
.grid { font-size: .93rem; font-variant-numeric: tabular-nums; }
.grid thead th { background: var(--tint); color: var(--emerald-2); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .grid thead th { color: var(--gold-hi); } }
.grid td, .grid th { white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid tbody th { font-weight: 600; position: sticky; left: 0; background: var(--card); z-index: 1; }
.grid tbody th a { text-decoration: none; }
.grid tbody th a:hover { text-decoration: underline; }
.grid tbody tr:hover > * { background: var(--tint); }
.grid tr.is-fri > * { background: color-mix(in srgb, var(--tint) 55%, var(--card)); }
.grid tr.is-fri th::after { content: "Jumu‘ah"; margin-left: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-2); background: var(--tint); padding: 1px 6px; border-radius: 999px; }
@media (prefers-color-scheme: dark) { .grid tr.is-fri th::after { color: var(--link); } }
.grid tr.is-today > * { background: var(--gold-soft); }
.grid tr.is-today th { box-shadow: inset 4px 0 0 var(--gold); }
.grid .hj { color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.sw.today { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.sw.fri { background: var(--tint); }
.legend .print { margin-left: auto; padding: 7px 14px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pager a { text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.pager a:hover { border-color: var(--link); }
.top .pager { margin-top: 18px; }
.top .pager a { background: rgba(255, 255, 255, .06); border-color: rgba(217, 184, 103, .35); color: var(--hero-ink); }
.top .pager a:hover { background: rgba(255, 255, 255, .12); }
.pager .today-link { color: var(--gold); }
.top .pager .today-link { color: var(--gold-hi); }

/* Qibla */
.qibla { display: grid; gap: 20px 36px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  background-image: linear-gradient(var(--card), var(--card)), var(--pattern); }
.qibla h2 { margin: 0 0 10px; }
.qibla h2::before { display: none; }
.qibla p { margin: 0 0 14px; }
@media (min-width: 680px) { .qibla { grid-template-columns: 220px 1fr; padding: 28px 32px; } }
.compass { width: 100%; max-width: 220px; margin: 0 auto; display: block; }
.compass .ring { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
@media (prefers-color-scheme: dark) { .compass .ring { fill: #1d3a33; } }
.compass .ring2 { fill: none; stroke: var(--line); stroke-dasharray: 2 4; }
.compass .ticks line { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.compass .ticks line.major { stroke: var(--ink); stroke-width: 1.6; opacity: .8; }
.compass .letters text { font: 600 13px var(--sans); fill: var(--muted); text-anchor: middle; }
.compass .letters text.n { fill: var(--gold); }
.compass .needle { stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; }
.compass .tail { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.compass .kaaba { fill: #141414; stroke: var(--gold); stroke-width: 1; }
.compass .band { fill: var(--gold-hi); }
.compass .hub { fill: var(--gold); stroke: var(--card); stroke-width: 2; }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.stats div { flex: 1 1 110px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.stats dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; }
.stats.on-dark { margin-top: 18px; max-width: 640px; }
.stats.on-dark div { background: rgba(255, 255, 255, .06); border-color: rgba(217, 184, 103, .3); }
.stats.on-dark dt { color: var(--hero-muted); }
.stats.on-dark dd { font-size: 1rem; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color .15s; }
.faq details[open] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.faq summary { cursor: pointer; font-weight: 600; padding: 15px 52px 15px 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 50%; background: var(--tint); color: var(--emerald-2); font-size: 1.15rem; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; background: var(--gold); color: #1d1606; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

/* Lists of places */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; text-decoration: none; font-size: .93rem; transition: border-color .15s, transform .15s; }
.chips a:hover { border-color: var(--gold); transform: translateY(-1px); }
.chips small { font-size: .66rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }

.countries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.countries a { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.countries a:hover { transform: translateY(-2px); border-color: var(--gold); }
.countries strong { display: block; font: 700 1.3rem/1.1 var(--serif); }
.countries small { color: var(--muted); font-size: .8rem; }
.badge { flex: none; width: 48px; height: 48px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--gold-hi);
  background: linear-gradient(140deg, var(--emerald-2), var(--emerald));
  clip-path: polygon(50% 0, 65.3% 13%, 85.4% 14.6%, 87% 34.7%, 100% 50%, 87% 65.3%, 85.4% 85.4%, 65.3% 87%, 50% 100%, 34.7% 87%, 14.6% 85.4%, 13% 65.3%, 0 50%, 13% 34.7%, 14.6% 14.6%, 34.7% 13%); }

.features { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.features .ic { flex: none; width: 46px; height: 46px; padding: 9px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.features strong { display: block; }
.features span { color: var(--muted); font-size: .88rem; }

.filter { margin-bottom: 14px; }
.filter input { width: 100%; max-width: 380px; font: inherit; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8913a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px 50%; background-size: 17px; }

.prose > p, .prose > h2 { max-width: 72ch; }
.prose h2:first-child { margin-top: 0; }
.prose .scroll { margin: 8px 0 16px; }

/* ---------- Footer ---------- */
footer.site { position: relative; margin-top: 30px; padding: 44px 0 28px; color: var(--hero-muted); font-size: .92rem;
  background: var(--emerald); }
footer.site::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 14px;
  background: radial-gradient(circle at 50% 100%, transparent 13px, var(--bg) 14px) 50% 0 / 28px 14px repeat-x; }
footer.site::after { content: ""; position: absolute; inset: 14px 0 0; background: var(--pattern); opacity: .07; pointer-events: none; }
footer.site > * { position: relative; z-index: 1; }
footer .cols { display: grid; gap: 24px; }
@media (min-width: 720px) { footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
footer .brand { color: var(--hero-ink); margin: 0 0 10px; }
footer h2 { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); margin: 6px 0 12px; }
footer nav a { display: block; color: var(--hero-muted); text-decoration: none; padding: 3px 0; }
footer nav a:hover { color: var(--hero-ink); }
footer .fine { color: var(--hero-muted); opacity: .8; border-top: 1px solid rgba(217, 184, 103, .18); padding-top: 18px; margin-top: 26px; }

@media (max-width: 560px) {
  .bar { padding-top: 6px; }
  header.site nav { width: 100%; margin: 0 -12px; padding-bottom: 6px; }
  .top { padding-bottom: 36px; }
  .next, .near { padding: 40px 20px 22px; }
  .countdown { font-size: 1.8rem; }
  .qibla { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .top { background: none; color: #000; padding: 0; }
  .top::before, .top::after, header.site, .next, .pager, .legend, footer.site, .crumbs { display: none; }
  .top .lead, .top .eyebrow { color: #333; }
  body { background: #fff; color: #000; }
  .scroll { border: 0; overflow: visible; box-shadow: none; }
  .grid tbody th { position: static; }
  main { padding: 0; }
}

/* City page: method picker and the UK note (research/06-accuracy-check.md). */
.method-picker { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin: 14px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.method-picker label { display: grid; gap: 4px; font-size: .82rem; color: var(--muted); flex: 1 1 220px; }
.method-picker select { font: inherit; font-size: .95rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; width: 100%; }
.method-picker .button { flex: 0 0 auto; }
.method-picker .fine { flex: 1 0 100%; margin: 0; }
.method-picker .fine:empty { display: none; }
.notice { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 12px 12px 0; font-size: .92rem; }
