@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Newsreader:opsz,wght@6..72,500&display=swap');
:root { --ink:#17231f; --cream:#f4f0e6; --paper:#fffdf7; --green:#1f5b48; --gold:#c69a4b; --line:#d8d4c8; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--cream); font-family:'DM Sans',sans-serif; }
body::before { content:''; position:fixed; inset:0; pointer-events:none; opacity:.35; background-image:radial-gradient(#796f5c 0.5px,transparent 0.5px); background-size:7px 7px; }
main { width:min(960px,calc(100% - 32px)); margin:0 auto; padding:72px 0; position:relative; }
header { max-width:720px; margin-bottom:42px; }
.site-topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:48px; }
.site-brand { display:flex; align-items:center; gap:11px; color:var(--green); text-decoration:none; font-weight:600; font-size:18px; }
.site-brand img { border-radius:10px; }.site-brand small { display:block; margin-top:3px; font-size:10px; font-weight:400; text-transform:uppercase; letter-spacing:.12em; }
.app-downloads { text-align:right; }.download-label { display:block; font-size:10px; color:#64706b; margin-bottom:8px; }.app-downloads>div { display:flex; flex-wrap:wrap; gap:8px; }
.app-downloads a,.app-download-pending { display:block; padding:10px 14px; border:1px solid var(--green); border-radius:10px; color:var(--paper); background:var(--green); text-decoration:none; font-size:13px; font-weight:600; text-align:left; }
.app-downloads a span,.app-download-pending small { display:block; margin-top:3px; font-size:10px; font-weight:400; }.app-download-pending { color:#64706b; background:transparent; border-color:var(--line); }.app-downloads a:hover { background:#174536; }.app-downloads a:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
@media(max-width:650px){.site-topbar{flex-wrap:wrap;gap:20px;margin-bottom:36px}.app-downloads{text-align:left}.site-brand{font-size:17px} }
.eyebrow { color:var(--green); text-transform:uppercase; letter-spacing:.18em; font-size:12px; font-weight:600; }
h1 { font:500 clamp(52px,9vw,92px)/.88 'Newsreader',serif; letter-spacing:-.045em; margin:16px 0 22px; }
.lede { font-size:18px; line-height:1.6; max-width:590px; color:#53605b; }
.panel { background:var(--paper); border:1px solid var(--line); border-radius:18px; padding:30px; box-shadow:0 18px 60px #36301e10; }
.mode-tabs { display:flex; gap:8px; padding:6px; border:1px solid var(--line); border-radius:999px; width:fit-content; }
.mode-tabs button { margin:0; background:transparent; color:var(--green); }.mode-tabs [aria-selected="true"] { background:var(--green); color:white; }
.mode-tabs button:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.prayer-settings { margin-top:26px; border-top:1px solid var(--line); padding-top:20px; }.prayer-settings>summary { cursor:pointer; color:var(--green); font-weight:600; }
.checkbox-label { display:flex; align-items:center; text-transform:none; letter-spacing:0; margin-top:20px; }.checkbox-label input { width:auto; }
.next-prayer { display:grid; grid-template-columns:1fr 1fr auto; align-items:center; gap:18px; padding:22px; margin:20px 0; border-radius:14px; background:var(--green); color:var(--paper); }
.next-prayer h2 { margin:8px 0; font-size:34px; }.next-prayer .section-label { color:#d7e7df; }.next-prayer time { font-size:36px; font-variant-numeric:tabular-nums; }.next-prayer p { margin:0; font-variant-numeric:tabular-nums; }
.next-prayer svg { width:110px; height:110px; }.next-prayer .compass-ring { fill:transparent; }.next-prayer .compass-center { fill:var(--paper); }
.daily-event.is-next { border:2px solid var(--green); background:#edf3ee; }
@media(max-width:650px){.next-prayer{gap:12px;padding:16px}.next-prayer time{font-size:28px}.next-prayer h2{font-size:28px}.next-prayer svg{width:80px;height:80px}.mode-tabs button{padding:13px 18px} }
@media(max-width:400px){.next-prayer{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px}.next-prayer h2{font-size:27px}.next-prayer #widget-compass{grid-column:2;grid-row:1/3}.next-prayer time{grid-column:1;grid-row:2}.mode-tabs{gap:0}.mode-tabs button{padding:12px 14px} }
#daily-prayers { margin-bottom:32px; }#daily-heading,#flight-heading { margin-top:0; }
.daily-actions { display:flex; align-items:end; }.daily-actions button { margin:0; }
.daily-actions .secondary-button { color:var(--green); background:#e9eee9; }
.daily-events { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.daily-event { padding:18px; border:1px solid var(--line); border-radius:10px; }
.daily-event h3 { margin:0 0 10px; font:500 25px 'Newsreader',serif; }.daily-event time { font-size:22px; color:var(--green); }
.daily-qibla { display:flex; align-items:center; gap:22px; margin-top:24px; }.daily-qibla svg { width:150px; height:150px; }
#daily-results { margin-top:28px; }
@media(max-width:650px){.daily-events{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-qibla{flex-wrap:wrap}.daily-event{padding:12px}.daily-event time{font-size:20px} }
.flight-lookup { margin:-8px -8px 30px; padding:20px; border-radius:12px; background:#f3f0e7; }
.lookup-heading div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
.lookup-heading span { font:500 23px 'Newsreader',serif; }
.lookup-heading small { color:#7a827e; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.lookup-fields { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:16px; margin-top:16px; }
.lookup-fields .secondary-button { margin:0; color:var(--green); background:transparent; border:1px solid var(--green); white-space:nowrap; }
.lookup-fields .secondary-button:hover { color:white; background:var(--green); }
.lookup-status { min-height:18px; margin-top:10px; color:#66706b; font-size:11px; }
.error-text { color:#842f2f; }
.flight-matches { display:grid; gap:8px; }
.flight-match { display:grid; grid-template-columns:.7fr 1fr 1fr auto; align-items:center; gap:14px; padding:14px; background:var(--paper); }
.flight-match>div { display:grid; }
.flight-match>div strong { font:500 22px 'Newsreader',serif; }
.flight-match>div span { color:var(--green); font-size:12px; }
.flight-match p { display:grid; gap:3px; margin:0; color:var(--ink); font-size:11px; }
.flight-match p b,.flight-match p small { color:#7a827e; font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.flight-match button { margin:0; padding:10px 14px; }
.airport-row { display:grid; grid-template-columns:1fr auto 1fr; gap:22px; align-items:end; }
label { display:grid; gap:9px; font-size:12px; text-transform:uppercase; letter-spacing:.1em; color:#64706b; font-weight:600; }
input,select { width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--ink); padding:9px 0; font:500 18px 'DM Sans'; outline:none; }
select { border:1px solid var(--line); border-radius:8px; padding:11px 12px; font-size:14px; }
.airport-row input { font:500 56px 'Newsreader',serif; text-transform:uppercase; letter-spacing:.04em; }
input:focus,select:focus { border-color:var(--green); }
.route-mark { font-size:32px; color:var(--gold); padding-bottom:14px; }
.details { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:28px; }
.calculation-settings { margin-top:22px; }
.hint { color:#7a827e; font-size:12px; }
button { margin-top:14px; border:0; border-radius:999px; padding:15px 24px; color:white; background:var(--green); font:600 14px 'DM Sans'; cursor:pointer; }
button:hover { background:#174536; } button:disabled { opacity:.65; }
.error { margin-top:18px; padding:13px 16px; border-radius:9px; color:#842f2f; background:#f7e6e2; }
#results { padding-top:60px; }
.summary { display:grid; grid-template-columns:1fr 1fr 2fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.summary div { background:var(--paper); padding:18px; display:grid; gap:7px; }
.summary span, dt { color:#77807c; text-transform:uppercase; letter-spacing:.1em; font-size:10px; }
.summary strong { font-size:13px; }
.journey-visuals { display:grid; gap:16px; margin-top:20px; }
.visual-card { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:18px; overflow:hidden; }
.visual-heading { display:flex; justify-content:space-between; gap:16px; align-items:baseline; margin-bottom:10px; }
.visual-heading span { font:500 22px 'Newsreader',serif; }
.visual-heading small { color:#7a827e; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
#route-map { position:relative; height:390px; border-radius:9px; overflow:hidden; background:#e8e5dc; }
#route-map[data-tile-error]::after { content:attr(data-tile-error); position:absolute; z-index:1000; left:12px; top:12px; padding:7px 10px; border-radius:6px; color:#842f2f; background:#f7e6e2; font-size:11px; }
.map-unavailable { margin:0; padding:30px; color:#65706b; }
.leaflet-container { font-family:'DM Sans',sans-serif; }
.leaflet-tooltip { border:0; border-radius:5px; box-shadow:0 3px 14px #0002; color:var(--ink); background:var(--paper); font-size:11px; font-weight:600; }
.solar-track .day,.solar-legend .day { background:#d9aa4e; }
.solar-track .twilight,.solar-legend .twilight { background:#bb7e6c; }
.solar-track .night,.solar-legend .night { background:#263f4a; }
.timeline-card { overflow:visible; padding-bottom:20px; }
.solar-legend { display:flex; justify-content:flex-end; gap:14px; color:#65706b; font-size:10px; }
.solar-legend span { display:flex; align-items:center; gap:5px; }.solar-legend i { width:14px; height:5px; border-radius:4px; }
.timeline-wrap { position:relative; margin:48px 4px 44px; }
.solar-track { display:flex; height:12px; border-radius:999px; overflow:hidden; box-shadow:inset 0 0 0 1px #0001; }
.solar-track i { height:100%; }
.timeline-prayer { position:absolute; top:-8px; transform:translateX(-50%); display:grid; justify-items:center; gap:24px; color:var(--green); font-size:10px; font-style:normal; }
.timeline-prayer::after { content:''; position:absolute; top:6px; width:2px; height:28px; background:var(--green); }
.timeline-prayer b { transform:translateY(-22px); white-space:nowrap; }.timeline-prayer em { color:#747d79; font-size:9px; font-style:normal; white-space:nowrap; }
.timeline-endpoints { display:flex; justify-content:space-between; gap:20px; color:var(--green); font-size:11px; font-weight:600; }
.timeline-endpoints span { display:grid; gap:4px; }.timeline-endpoints span:last-child { text-align:right; }.timeline-endpoints b { color:#737c78; font-size:10px; font-weight:400; }
.section-label { color:var(--green); text-transform:uppercase; letter-spacing:.14em; font-size:11px; font-weight:600; }
.timeline-label { margin:36px 0 12px; }
.prayer-group>summary { display:flex; align-items:center; justify-content:space-between; gap:14px; cursor:pointer; list-style:none; user-select:none; }
.prayer-group>summary::-webkit-details-marker { display:none; }
.prayer-group>summary::after { content:'Hide'; min-width:48px; color:#7a827e; font-size:10px; font-weight:500; letter-spacing:.06em; text-align:right; }
.prayer-group:not([open])>summary::after { content:'Show'; }
.prayer-group:not([open])>summary { margin-bottom:0; }
.prayer-group>summary:focus-visible { outline:2px solid var(--green); outline-offset:5px; border-radius:2px; }
.ground-events { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ground-event { display:grid; gap:7px; padding:16px; }
.ground-event span { font:500 22px 'Newsreader',serif; }
.ground-event strong { font-size:13px; }
.ground-event small { color:#7a827e; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.qibla-line { margin:5px 0; color:#59645f; font-size:12px; }
.qibla-line b { color:var(--green); }
.events { display:grid; grid-template-columns:1fr; gap:16px; margin:0; }
article,.empty { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:22px; }
.event-title { display:flex; justify-content:space-between; align-items:center; }
.event-title span { font:500 30px 'Newsreader',serif; }
.event-title b { color:var(--gold); font-size:12px; }
.track { height:2px; background:#e4e0d5; margin:16px 0; }.track i { display:block; height:100%; background:var(--gold); }
article>strong { font-size:18px; } article>p { color:#747d79; font-size:12px; }
.inflight-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; }
.prayer-column { min-width:0; padding:4px 8px 4px 0; }
.prayer-column>strong { font-size:18px; }
.prayer-column>p { color:#747d79; font-size:12px; }
.qibla-column { min-width:0; padding:14px; border-radius:9px; background:#f3f0e7; }
.direction-diagram { display:grid; grid-template-columns:150px 1fr; align-items:center; gap:8px; }
.direction-diagram svg { width:150px; height:150px; overflow:visible; }
.compass-ring { fill:#fffdf8; stroke:#d8d4c8; stroke-width:1.5; stroke-dasharray:2 4; }
.compass-center { fill:var(--ink); }
.flight-arrow line { stroke:var(--green); stroke-width:4; stroke-linecap:round; }
.flight-arrow polygon { fill:var(--green); }
.qibla-arrow line { stroke:var(--gold); stroke-width:3; stroke-linecap:round; }
.qibla-arrow polygon { fill:var(--gold); }
.direction-diagram text { fill:#78817d; font:600 8px 'DM Sans'; text-anchor:middle; letter-spacing:1.4px; }
.diagram-legend { display:grid; gap:10px; color:#66706b; font-size:11px; }
.diagram-legend span { display:flex; align-items:center; gap:7px; }
.diagram-legend i { width:18px; height:3px; border-radius:2px; }
.flight-key { background:var(--green); }.qibla-key { background:var(--gold); }
.qibla-panel { display:grid; gap:4px; border-top:1px solid var(--line); padding-top:12px; }
.qibla-panel small { color:#7a827e; font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.qibla-panel strong { color:var(--green); font:500 20px 'Newsreader',serif; }
.qibla-panel span { color:#747d79; font-size:11px; }
dl { margin:16px 0 0; border-top:1px solid #e6e1d7; padding-top:12px; display:grid; gap:8px; } dl div { display:grid; grid-template-columns:45px 1fr; } dd { margin:0; font-size:12px; }
aside { margin-top:40px; border-left:3px solid var(--gold); padding-left:22px; } h2 { font:500 23px 'Newsreader',serif; } li { margin:8px 0; color:#616a66; font-size:13px; line-height:1.5; }
footer { border-top:1px solid var(--line); padding:24px; text-align:center; color:#78817d; font-size:12px; position:relative; }
.footer-about { max-width:660px; margin:18px auto 0; }.footer-about summary { color:var(--green); cursor:pointer; width:fit-content; margin:0 auto; font-weight:600; }.footer-about>div { text-align:left; margin-top:22px; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:#53605b; font-size:14px; line-height:1.7; }.footer-about h2 { color:var(--ink); margin-top:0; }.footer-about a { color:var(--green); text-underline-offset:3px; }.footer-about summary:focus-visible { outline:2px solid var(--green); outline-offset:5px; }
@media(max-width:650px){ main{padding-top:42px}.panel{padding:20px}.lookup-heading div{align-items:flex-start;flex-direction:column;gap:4px}.lookup-fields,.flight-match{grid-template-columns:1fr}.airport-row input{font-size:40px}.details,.summary,.ground-events,.inflight-columns{grid-template-columns:1fr}.prayer-column{padding-right:0}.direction-diagram{grid-template-columns:150px 1fr}.summary{gap:0}.summary div+div{border-top:1px solid var(--line)} }
