/* A live next-prayer panel and an independently browsable timetable. */
:root{--today-bg:#f4f6f4;--today-surface:#fff;--today-text:#263e32;--today-muted:#58675e;--today-rule:#e2e7e3;--today-current:#8a6b26;--today-current-bg:#faf7ef;--today-next-bg:#f1f5f1;--sky-sun:#bd7932;--sky-moon:#7a765b}
html[data-theme=night]{--today-bg:#15191c;--today-surface:#20262a;--today-text:#f1f3f2;--today-muted:#bcc4c6;--today-rule:#3e484f;--today-current:#d7be81;--today-current-bg:#2b2d2b;--today-next-bg:#26312d;--sky-sun:#edbb76;--sky-moon:#e4d7b4}
#todayView .page-heading{display:block;margin-bottom:22px}
#todayView .page-heading .eyebrow,#todayView .page-intro,#todayView .hijri-chip{display:none}
#todayView .page-heading h1{margin-top:0}
.today-grid{display:flex;flex-direction:column;gap:22px}
#todayView .hero{--sky-sun:#f1c17c;--sky-moon:#f4ead0;min-height:0;background:#294f3c!important;color:#fff;border:1px solid #294f3c;box-shadow:none!important}
#todayView .hero-content{display:block;padding:16px 24px 20px;margin:0}
#todayView .hero-kicker{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px;padding:0;font-size:.9375rem;letter-spacing:0;text-transform:none;color:#e1ece6!important}
#todayView .sky-scene{position:static;display:block;flex:none;width:36px;height:36px;color:var(--sky-sun);pointer-events:none}
.sky-scene svg{width:100%;height:100%;stroke:none}
.sky-moon,.hero[data-sky=night] .sky-sun{display:none}
.hero[data-sky=night] .sky-moon{display:block;color:var(--sky-moon)}
#todayView .hero-main{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 28px;margin-top:10px}
#todayView .hero-summary{flex:1 1 160px;min-width:0}
#todayView .next-name{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;margin:0;min-width:0;overflow-wrap:anywhere}
#todayView .next-name h2{font-size:2.3rem;line-height:1.2;margin:0}
#todayView .next-name>span{font-size:1.375rem;line-height:1.4;opacity:.8}
#todayView .hero-time{flex:none;max-width:100%;font-size:3.5rem;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.04em;margin:0;margin-inline-start:auto;white-space:nowrap;text-align:end}
#todayView .hero-time small{font-size:.875rem;letter-spacing:0;margin:0;margin-inline-start:5px}
#todayView .hero .next-name h2,#todayView .hero .next-name>span,#todayView .hero-time,#todayView .hero-time small,#todayView .countdown-wrap{color:#fff!important}
#todayView .countdown-wrap{font-size:1rem;line-height:1.4;gap:0;margin-top:8px}
.hero .countdown-dot,.hero .hero-live{display:none}
#todayView .prayer-section{container-type:inline-size;padding:0;border-radius:12px;background:var(--today-surface);overflow:visible}
.timetable-heading{position:relative;padding:16px 12px 12px;text-align:center}
.date-nav{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:64px;max-width:580px;margin:0 auto}
#dateLine{display:flex;flex-direction:column;gap:2px;margin:0;text-align:center;font-size:1rem;line-height:1.4;color:var(--today-text)}
#dateLine .date-hijri{font-size:.8125rem;color:var(--today-muted)}
.date-arrow{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--today-text)}
.date-arrow:hover{background:var(--today-next-bg)}
.date-arrow svg{width:20px;height:20px}
#previousDay svg{transform:rotate(180deg)}
[dir=rtl] #previousDay svg{transform:none}
[dir=rtl] #nextDay svg{transform:rotate(180deg)}
.timetable-footer{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px}
.date-return{min-height:44px;margin:0;font-size:.875rem}
.timetable-heading .month-link{position:absolute;inset-inline-end:16px;top:20px;font-size:.8125rem;min-height:36px}
#prayerCards{display:block;margin:0;padding:0}
#prayerCards .prayer-time-card{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:12px;position:relative;min-height:52px;padding:4px 8px 4px 20px;border:0;border-radius:0;background:transparent;text-align:start}
#prayerCards .prayer-time-card:first-child{border-start-start-radius:12px;border-start-end-radius:12px}
#prayerCards .prayer-time-card:last-child{border-end-start-radius:12px;border-end-end-radius:12px}
#prayerCards .prayer-time-card+.prayer-time-card{border-top:1px solid var(--today-rule)}
#prayerCards .prayer-time-card.current{outline:2px solid var(--today-current);outline-offset:-2px;background:var(--today-current-bg)!important}
#prayerCards .prayer-name{display:block;min-width:0;min-height:0;font-size:1.125rem;line-height:1.3;font-weight:400;color:var(--today-text);overflow-wrap:anywhere}
#prayerCards .prayer-hour{font-size:1.375rem;line-height:1.3;font-weight:400;margin:0;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--today-text);text-align:end}
#prayerCards .prayer-hour .period{font-size:.75rem;font-weight:inherit;margin:0;margin-inline-start:2px;color:var(--today-muted)}
#prayerCards .prayer-time-card :is(.prayer-name,.prayer-hour){font-weight:400}
#prayerCards .prayer-time-card.current :is(.prayer-name,.prayer-hour){font-weight:700}
#prayerCards .prayer-bell,#prayerCards .prayer-bell-space{width:44px;height:44px;margin:0}
#prayerCards .prayer-bell svg{margin:0;width:20px;height:20px}
#prayerCards .prayer-bell:not(.on){color:var(--today-muted)!important}
#prayerCards .prayer-time-card.current :is(.prayer-name,.prayer-hour,.period){color:var(--today-text)!important}
#prayerCards .prayer-time-card.passed :is(.prayer-name,.prayer-hour,.period){color:var(--today-muted)!important}
@container (min-width:960px){
  #prayerCards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:0 20px 20px}
  #prayerCards .prayer-time-card{display:flex;flex-direction:column;justify-content:space-between;gap:10px;min-height:142px;padding:14px 6px 6px;border:1px solid var(--today-rule);border-radius:10px;text-align:center}
  #prayerCards .prayer-name{font-size:1rem;line-height:1.4;min-height:40px}
  #prayerCards .prayer-hour{font-size:1.75rem}
  #prayerCards .prayer-time-card.current{outline-offset:-2px}
}
@container (max-width:760px){.timetable-heading .month-link{display:none}}
.location-current{display:flex;flex-direction:column;padding:12px 16px;margin:12px 0 18px;background:var(--today-next-bg);border-radius:10px;overflow-wrap:anywhere}
.location-current span{font-size:.9375rem;color:var(--today-muted)}
.appearance-options{border:0;padding:0;margin:14px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.appearance-choice{position:relative;display:flex;flex-direction:column;gap:3px;min-width:0;padding:12px;border:1px solid var(--today-rule);border-radius:10px;cursor:pointer;line-height:1.3;background:var(--today-surface)}
.appearance-choice input{position:absolute;opacity:0;width:1px;height:1px}
.appearance-choice:has(input:checked){outline:2px solid var(--green);outline-offset:-2px}
.appearance-choice:has(input:focus-visible){outline:3px solid var(--green);outline-offset:3px;box-shadow:0 0 0 5px var(--today-surface)}
.appearance-label{font-size:1rem;font-weight:650}
.appearance-choice small{font-size:.8125rem;line-height:1.4;color:var(--today-muted)}
.appearance-preview{display:grid;place-items:center;height:48px;margin:0 0 8px;border-radius:6px;background:#f4f5ee;color:#8a6b26!important}
.appearance-preview svg{width:27px;height:27px}
.appearance-dark{background:#252c31;color:#e4d7b4!important}
.appearance-auto{background:linear-gradient(110deg,#f4f5ee 50%,#252c31 50%);color:#87642d!important}
.appearance-device{background:#e9efeb;color:#345441!important}
.app-reminder-info{padding:18px 20px;margin-bottom:20px;border:1px solid var(--today-rule);border-radius:12px;background:var(--today-surface)}
.app-reminder-info h2{font:normal 1.4rem/1.3 Georgia,serif;margin:0 0 8px}
.app-reminder-info p{margin:8px 0 14px;line-height:1.55}
.app-reminder-info .privacy-note{margin-bottom:0}
html[data-theme=night] #todayView .hero{background:#244437!important;border-color:#49695a!important}
html[data-theme=night] .appearance-preview,html[data-theme=night] .appearance-preview *{color:inherit!important}
html[data-theme=night] .appearance-light{color:#8a6b26!important}
html[data-theme=night] .appearance-dark{color:#e4d7b4!important}
html[data-theme=night] .appearance-auto{color:#87642d!important}
html[data-theme=night] .appearance-device{color:#345441!important}
html[data-theme=night] .appearance-choice:has(input:checked){outline-color:var(--n-accent)}
html[data-theme=night] :focus-visible{outline-color:var(--n-accent);box-shadow:0 0 0 5px var(--today-bg)}
html[data-theme=night] #prayerCards .prayer-time-card.current{background:var(--today-current-bg)!important}
html[data-theme=night] #prayerCards .prayer-time-card.current :is(.prayer-name,.prayer-hour,.period){color:var(--today-text)!important}
html[data-theme=night] #prayerCards .prayer-time-card.passed :is(.prayer-name,.prayer-hour,.period){color:var(--today-muted)!important}
html[data-theme=night] .location-current{background:var(--today-next-bg)!important}
.native-app #todayView .name-card,.native-app #todayView .daily-tools{display:none}

@media(max-width:720px){
  .topbar{height:auto;min-height:60px;padding:8px 16px;gap:12px}
  .native-app .topbar{padding-top:calc(8px + var(--app-safe-top))}
  .top-wordmark{flex:none;display:flex;align-items:center;gap:7px}
  .top-wordmark .brand-icon{width:32px;height:32px}
  .top-wordmark .brand-name,.top-wordmark .brand-second{font-size:16px;letter-spacing:-.5px}
  .top-actions{flex:1;min-width:0;justify-content:flex-end;gap:7px}
  .top-actions .location-button{max-width:none;min-width:0;padding:6px 8px;gap:5px;font-size:.9375rem;border:0;background:transparent!important;line-height:1.2}
  .location-button #topCity{max-width:none;min-width:0;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;text-align:start}
  .location-button svg{flex:none;width:16px;height:16px}
  .location-button .chevron-down{width:12px;height:12px}
  .top-actions>.icon-button{flex:none;width:44px;height:44px;background:transparent!important;border:0}
  #todayView.page-wrap{padding:12px 16px calc(78px + env(safe-area-inset-bottom,0px))}
  #todayView .page-heading{margin:0}
  .today-grid{gap:12px}
  #todayView .hero{border-radius:14px}
  #todayView .hero-content{padding:8px 16px 12px}
  #todayView .hero-kicker{font-size:.875rem;min-height:32px}
  #todayView .sky-scene{width:32px;height:32px}
  #todayView .hero-main{gap:10px 12px;margin-top:6px}
  #todayView .hero-summary{flex-basis:140px}
  #todayView .next-name{gap:3px 8px}
  #todayView .next-name h2{font-size:1.8rem}
  #todayView .next-name>span{font-size:1.125rem}
  #todayView .hero-time{font-size:2.5rem}
  #todayView .hero-time small{font-size:.75rem}
  #todayView .countdown-wrap{font-size:.9375rem;margin-top:5px}
  #todayView .timetable-heading{padding:8px 4px}
  .date-nav{gap:2px;min-height:56px}
  #dateLine{font-size:.875rem;line-height:1.4;gap:0}
  #dateLine .date-hijri{font-size:.75rem}
  #prayerCards .prayer-time-card{min-height:48px;padding:2px 5px 2px 16px}
  #prayerCards .prayer-hour{font-size:1.3rem}
  #todayView .name-card,#todayView .daily-tools,#todayView .help-section,#todayView .site-footer{display:none}
  .appearance-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mobile-nav{background:var(--today-surface);padding:4px 2px calc(4px + env(safe-area-inset-bottom,0px))}
  .native-app .mobile-nav{padding-bottom:calc(4px + var(--app-safe-bottom))}
  .mobile-nav button{min-width:0;flex:1;font-size:.75rem!important;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
  .mobile-nav button svg{flex:none}
}
@media(max-width:720px) and (max-height:720px){
  .topbar{min-height:54px;padding-block:5px}
  #todayView.page-wrap{padding-top:8px}
  .today-grid{gap:8px}
  #todayView .hero-content{padding-block:6px 10px}
  #todayView .hero-main{margin-top:3px}
  #todayView .next-name h2{font-size:1.65rem}
  #todayView .hero-time{font-size:2.25rem}
  #prayerCards .prayer-time-card{min-height:48px;padding-block:0}
}
@media(max-width:370px){.top-wordmark .brand-name{display:none}#todayView .next-name>span{display:none}}
@media(forced-colors:active){#prayerCards .prayer-time-card.current{outline-color:Highlight}.appearance-choice:has(input:checked){outline-color:Highlight}}
