@font-face{font-family:"DM Sans";src:url("/assets/dm-sans.woff2") format("woff2");font-style:normal;font-weight:400 700;font-display:swap}
@font-face{font-family:"DM Serif Text";src:url("/assets/dm-serif-text.woff2") format("woff2");font-weight:400;font-display:swap}
:root{--bg:#f7f8f4;--paper:#fff;--ink:#172e28;--green:#205546;--muted:#58685f;--line:#dce3db;--tint:#eaf1e9;--serif:"DM Serif Text",Georgia,serif;font-family:"DM Sans",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;font-size:16px;line-height:1.5}
[hidden]{display:none!important}
h1,h2,p,ul{margin:0}
h1,h2,.brand,.footer-brand{font-family:var(--serif);font-weight:400}
h1{font-size:clamp(2.7rem,4.5vw,3.75rem);letter-spacing:-.047em;line-height:1.04}
h2{font-size:1.85rem;line-height:1.18;letter-spacing:-.035em}
button,input,select{font:inherit}
button,a{touch-action:manipulation}
button{cursor:pointer;color:inherit;border:0;background:none}
button:disabled{cursor:wait;opacity:.7}
a{color:var(--green)}
button,a,select,input{outline-offset:4px}
:focus-visible{outline:3px solid #ad782a}
button:active:not(:disabled){transform:translateY(1px)}
button,a{transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.skip{position:absolute;z-index:10;top:-80px;left:12px;background:white;padding:12px;border-radius:6px}
.skip:focus{top:6px}
.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.bar{background:#fff;border-bottom:1px solid var(--line)}
.bar-inner,main,footer{width:min(1120px,calc(100% - 80px));margin-inline:auto}
.bar-inner{height:74px;display:flex;align-items:center;justify-content:space-between}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#1b4036;font-size:2rem;letter-spacing:-.047em;line-height:1}
.brand img{display:block}
nav{display:flex;align-items:center;gap:10px}
.nav-item,.icon-button,.place-pill,.subtle-button,.gps-button,.primary,.light-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font-weight:600}
.nav-item{text-decoration:none;color:var(--muted);border-radius:9px;font-size:.89rem;padding:0 15px}
.nav-item .icon{width:17px;height:17px}
.nav-item.current,.nav-item:hover,.icon-button:hover,.place-pill:hover,.subtle-button:hover{background:var(--tint);color:var(--green)}
.nav-divider{height:23px;width:1px;background:var(--line);margin-inline:4px}
.icon-button{width:44px;border-radius:50%;padding:0;color:var(--green)}
main{padding-top:38px;outline:none}
.heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:25px}
.dateline,.eyebrow,.hero-kicker{display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.145em;font-weight:700;font-size:.68rem}
.dateline{color:var(--muted);margin-bottom:8px;letter-spacing:.13em}
.dateline .icon{height:15px;width:15px;color:#547166}
.location-control{display:grid;justify-items:end;gap:4px;max-width:48%}
.location-control small{color:var(--muted);font-size:.72rem;padding-right:9px}
.place-pill{background:white;border:1px solid #ced8cd;border-radius:50px;padding:0 15px;max-width:100%;font-size:.9rem;color:var(--green)}
.place-pill span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.place-pill .icon:first-child{width:17px}.place-pill .icon:last-child{width:14px}
.hero{position:relative;isolation:isolate;overflow:hidden;background:#173b38 url("/assets/istanbul.webp") center 57%/cover no-repeat;color:#fff;border-radius:20px;min-height:229px;display:flex;align-items:center}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,39,36,.83),rgba(9,41,37,.57) 32%,rgba(8,24,24,.03) 72%)}
.hero-content{padding:30px 40px;max-width:78%}
.hero-kicker{color:#e0eade;letter-spacing:.17em;font-size:.68rem}
.live-dot,.tag span{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a6d7ad}
.live-dot{box-shadow:0 0 0 4px #e1f5ce19;margin:0 5px 0 3px}
.hero-heading{display:flex;align-items:baseline;gap:18px;margin:8px 0 12px}
.hero-heading h2{color:#fcfcf5;font-size:clamp(2.75rem,5.2vw,4.35rem);line-height:1.06;letter-spacing:-.045em}
#hero-arabic{color:#e6d4a6;font-size:1.85rem;font-family:Georgia,serif}
#hero-detail{color:#eff3eb;font-size:.96rem}
.hero-meta{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.hero-time,.countdown{display:inline-flex;align-items:center;gap:7px;font-variant-numeric:tabular-nums}
.hero-time{font-weight:600;font-size:1.16rem}
.hero-time .icon{width:19px}
.countdown{border-left:1px solid #ffffff61;padding-left:15px;font-size:.93rem}
.light-button{margin-top:16px;padding:0 16px;min-height:40px;background:#f3f6e9;color:#214638;border-radius:9px;font-size:.88rem}
.light-button:hover{background:white}
.columns{display:grid;grid-template-columns:minmax(0,1.66fr) minmax(0,1fr);align-items:start;gap:22px;margin-top:24px}
.panel,.fajr-card{border:1px solid var(--line);border-radius:17px;background:var(--paper);box-shadow:0 2px 3px #14392a04}
.panel-heading,.search-card,.favorite-card,.fajr-card{padding:25px 27px}
.eyebrow{color:#4d6e5e;margin-bottom:7px}
.eyebrow .icon{height:16px;width:16px}
.small-line{width:17px;height:2px;background:#86a397}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tag{font-size:.73rem;display:inline-flex;align-items:center;gap:6px;border-radius:50px;background:#eef3ec;padding:4px 9px;color:#3e6352;font-weight:600}
.tag span{background:#6a8b71;width:5px;height:5px}
.panel-heading{padding-bottom:16px}
.time-list,.results{list-style:none;padding:0}
.time-list{padding:0 15px 8px}
.time-row{padding:10px 12px;min-height:66px;display:flex;align-items:center;gap:13px;position:relative}
.time-row+.time-row:before{content:"";position:absolute;top:0;left:13px;right:13px;border-top:1px solid #edf0eb}
.time-row.upcoming{border-radius:10px;background:#ebf2e9}
.time-row.upcoming:before,.time-row.upcoming+.time-row:before{border-color:transparent}
.prayer-icon{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:#eef1ee;color:#49695c}
.prayer-icon .icon{width:22px;height:22px}
.time-row[data-key="fajr"] .prayer-icon,.time-row[data-key="isha"] .prayer-icon{background:#efedf6;color:#6e6184}
.time-row[data-key="sunrise"] .prayer-icon,.time-row[data-key="dhuhr"] .prayer-icon{background:#f8f1dd;color:#926d29}
.time-row[data-key="maghrib"] .prayer-icon{background:#f8ece2;color:#a56440}
.time-row.upcoming .prayer-icon{background:#d9e8d6;color:var(--green)}
.row-title{display:block;font-size:1rem;font-weight:700;line-height:1.35}
.row-sub,.hint,.panel-note,.favorite-card p,.fajr-card p,.empty-copy{font-size:.86rem;color:var(--muted)}
.row-sub{display:block;font-size:.77rem;margin-top:1px}
.row-time{margin-left:auto;white-space:nowrap;font-weight:650;font-size:1.15rem;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
.row-time small,.hero-time small{font-size:.7rem;letter-spacing:0;font-weight:500;margin-left:4px}
.next-badge{margin-left:4px;background:#d7e7d3;color:#2a5537;font-size:.64rem;font-weight:700;border-radius:40px;padding:3px 8px}
.panel-note{border-top:1px solid var(--line);padding:13px 27px;font-size:.77rem}
aside{display:grid;gap:18px}
.fajr-card{position:relative;overflow:hidden;background:#f6f1e5;border-color:#e5decd}
.gold{color:#806323}
.fajr-card h2{color:#453e2a}
.fajr-card p,.favorite-card p{margin-top:9px;max-width:37ch}
.fajr-card p{color:#665e48}
.fajr-range{display:flex;align-items:center;gap:14px;margin-top:19px;padding-top:17px;border-top:1px solid #dcd4bf}
.fajr-range>div{display:flex;flex-direction:column;flex:none}
.fajr-range>div:last-child{text-align:right}
.fajr-range>div>span{font-size:.73rem;color:#695d43;font-weight:600}
.fajr-range strong{font-size:1.65rem;line-height:1.3;font-weight:550;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.range-line{display:flex;align-items:center;gap:5px;color:#967032;flex:1;justify-content:center}
.range-line:before,.range-line:after{content:"";border-top:1px dashed #bea978;flex:1}
.subtle-button,.gps-button,.primary{min-height:44px;border-radius:9px;font-size:.88rem}
.subtle-button{border:1px solid #bfcec1;padding:0 14px;color:var(--green);margin-top:16px}
.subtle-button .icon{width:16px;height:16px}
.gps-button{width:100%;justify-content:flex-start;padding:9px 13px;background:#edf3ec;color:var(--green);border:1px solid #d3dfd2}
.gps-button .icon:last-child{margin-left:auto;width:16px}
.gps-button:not(:disabled):hover{background:#dfeade}
.primary{background:var(--green);color:white;padding:0 16px}
.primary:hover{background:#143f32}
.hint:empty{display:none}
.hint{margin:9px 0 12px}
#picker{margin-top:19px}
body>#picker{display:none}
#picker label,#dialog-settings label{display:block;font-weight:650;font-size:.88rem;margin:17px 0 7px}
.search-box{display:flex;align-items:center;gap:10px;border:1px solid #becbc0;padding:0 12px;border-radius:10px;color:#63766c;background:white}
.search-box:focus-within{outline:2px solid var(--green);outline-offset:1px}
.search-box .icon{width:18px}
.search-box input{min-height:46px;min-width:0;width:100%;border:0;background:transparent;outline:none;color:var(--ink)}
.results{display:grid;gap:2px;max-height:300px;overflow-y:auto}
.result{width:100%;text-align:left;min-height:48px;display:flex;align-items:center;gap:10px;padding:8px 5px;color:var(--ink);border-radius:7px}
.result:hover,.fav-row:hover{background:var(--tint)}
.result .icon:first-child{color:#6c8275;width:16px}
.result span,.fav-row button:first-child span{min-width:0;overflow-wrap:anywhere}
.result strong,.result small,#fav-list button strong,.fav-row small{display:block}
.result strong,.fav-row strong{font-weight:600;font-size:.94rem}
.result small,.fav-row small{font-size:.77rem;color:var(--muted)}
.result .icon:last-child{margin-left:auto;width:15px}
.fav-row{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:4px;border-radius:5px}
.fav-row button:first-child{display:flex;align-items:center;text-align:left;gap:10px;padding:8px 4px;min-height:46px;flex:1;min-width:0}
.fav-row button:first-child>.icon{width:16px;color:var(--green)}
#fav-list{margin:8px 0 17px}
#side-favorites .fav-row:first-child{margin-top:8px}
.text-button{padding:8px 0;min-height:44px;color:var(--green);font-weight:600;text-decoration:underline;text-underline-offset:3px}
footer{display:flex;justify-content:space-between;align-items:center;color:var(--muted);border-top:1px solid var(--line);margin-top:32px;padding-block:17px 25px;font-size:.78rem}
footer>div{display:flex;align-items:baseline;gap:8px}
.footer-brand{font-size:1.14rem;color:var(--green)}
footer button{font-size:.78rem;min-height:44px}
footer button:hover{text-decoration:underline}
dialog{width:min(460px,calc(100vw - 26px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:23px 25px 26px;color:var(--ink);box-shadow:0 20px 70px #122e2140}
dialog::backdrop{background:#102b24a3}
dialog[open]{animation:arrive .19s ease-out}
@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.dialog-head h2{font-size:1.7rem}
#dialog-settings select{width:100%;min-height:45px;border:1px solid #b5c3b6;border-radius:8px;background:#fff;padding:8px;color:var(--ink)}
#dialog-about p{margin-top:15px;font-size:.91rem}
.source-links a{display:block;line-height:1.8}
.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 18px;background:#153f32;color:white;border-radius:12px;box-shadow:0 4px 18px #163c3120;font-size:.9rem;z-index:5;max-width:90vw;width:max-content}
.toast:empty{display:none}
@media(min-width:1450px){main{padding-top:46px}.hero{min-height:250px}}
@media(max-width:800px){.bar-inner,main,footer{width:calc(100% - 46px)}.columns{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:15px}.panel-heading,.search-card,.favorite-card,.fajr-card{padding:21px}.next-badge{font-size:.6rem;padding:3px 5px}.time-list{padding-inline:7px}.time-row{gap:8px}.hero-content{max-width:85%}}
@media(max-width:660px){.bar-inner,main,footer{width:calc(100% - 32px)}.bar-inner{height:62px}.brand{font-size:1.76rem;gap:7px}.brand img{width:35px;height:35px}nav{gap:2px}.nav-item{padding:0 10px;gap:6px}.nav-divider{margin-inline:2px}.nav-item.current{display:none}.bar nav .icon-button{width:44px}main{padding-top:24px}.heading{gap:8px;align-items:flex-end;margin-bottom:18px}.dateline{font-size:.58rem;letter-spacing:.075em;gap:5px}.dateline .icon{width:13px;height:13px}h1{font-size:clamp(2.15rem,8vw,2.9rem)}.location-control{max-width:43%}.location-control small{font-size:.64rem;padding-right:5px}.place-pill{padding:0 9px;font-size:.76rem;gap:4px;max-width:100%}.place-pill .icon:first-child{width:15px}.place-pill .icon:last-child{width:12px}.hero{min-height:202px;background-position:66% 54%;border-radius:15px}.hero:before{background:linear-gradient(90deg,#092c2be6,#0b2b298f 55%,#09252426)}.hero-content{padding:24px;max-width:100%}.hero-heading h2{font-size:2.75rem}.hero-heading{gap:10px}#hero-detail{font-size:.89rem;max-width:39ch}.hero-kicker{font-size:.59rem}.hero-time{font-size:1.06rem}.countdown{font-size:.83rem}.columns{grid-template-columns:1fr;gap:14px;margin-top:16px}aside{gap:14px}.panel,.fajr-card{border-radius:14px}.panel-heading,.search-card,.favorite-card,.fajr-card{padding:21px}.panel-heading{padding-bottom:13px}.time-list{padding:0 10px 8px}.time-row{min-height:61px;gap:11px}.row-time{font-size:1.08rem}.next-badge{font-size:.6rem}.fajr-card p,.favorite-card p{max-width:100%}.hero-meta{gap:10px}.countdown{padding-left:10px}.panel-note{padding:11px 21px}h2{font-size:1.65rem}footer{margin-top:23px;padding-bottom:16px}.search-card #picker{margin-top:12px}}
@media(max-width:360px){.bar-inner,main,footer{width:calc(100% - 24px)}.heading{flex-wrap:wrap}.place-pill{max-width:100%}.hero-content{padding:20px}.time-row{padding:10px 4px}.hero-heading h2{font-size:2.4rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
