/* Generated by the website build from site.css: the site's header, menu and footer for the course pages. */

:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-2: #efe7d6;
  --ink: #2a251e;
  --ink-2: #4f4639;
  --muted: #7a6f5e;
  --line: #e2d7c1;
  --gold: #9c7834;
  --gold-soft: rgba(156, 120, 52, 0.2);
  --accent: #1544d6;
  --accent-ink: #ffffff;
  --accent-soft: rgba(21, 68, 214, 0.08);
  --shadow: 0 1px 2px rgba(60, 45, 20, 0.05), 0 8px 24px rgba(60, 45, 20, 0.06);
  --band-hero: #e9dcc1;
  --band-alt: #efe7d7;
  --band-memorial: #1d3b2f;
  --memorial-ink: #e6dec8;
  --memorial-gold: #d8b66e;
  --radius: 14px;
  --radius-sm: 9px;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Literata", Georgia, "Times New Roman", serif;
  --font-ar: "Amiri Quran", "Amiri", "Scheherazade New", "Traditional Arabic", serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1713;
  --surface: #14211b;
  --surface-2: #1b2b24;
  --ink: #efe7d3;
  --ink-2: #cfc6af;
  --muted: #a1a08a;
  --line: #273830;
  --gold: #d6b46c;
  --gold-soft: rgba(214, 180, 108, 0.2);
  --accent: #dcbc75;
  --accent-ink: #18130a;
  --accent-soft: rgba(220, 188, 117, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --band-hero: #152820;
  --band-alt: #111e18;
  --band-memorial: #1b3a2c;
  color-scheme: dark;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 50; border-radius: 8px; }

.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

@media (min-width: 720px) { .wrap { padding: 0 28px; } }

[hidden] { display: none !important; }


.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 2px; }
.brand-word { height: 34px; width: auto; }
/* Dark theme: black letters become light; the 180deg hue turn keeps the blue rules blue. */
[data-theme="dark"] .brand-word { filter: invert(1) hue-rotate(180deg) brightness(0.95); }
@media (max-width: 400px) { .brand-word { height: 30px; } }
.header-actions { display: flex; gap: 4px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.theme-toggle[aria-pressed="true"] .i-moon { display: none; }

/* menu items: <details class="mega"> + a plain About link */
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.mega > summary, .nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 600; font-size: 0.98rem; text-decoration: none;
  cursor: pointer; list-style: none; user-select: none;
}
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary:hover, .nav-link:hover, .mega[open] > summary { background: var(--surface-2); color: var(--ink); }
.mega[data-current] > summary, .nav-link[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 2px 2px; }
.chev { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mega[open] .chev { transform: rotate(180deg); }

.mega-panel { display: grid; gap: 28px; }
.mega-head { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.mega-note { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.mega-links { list-style: none; margin: 10px 0 0; padding: 0; }
.mega-links a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.mega-links a span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.mega-links a:hover { color: var(--accent); }
.mega-links-stacked a span { display: block; margin: 0; font-size: 0.88rem; }
.mega-all { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 0.95rem; }
.soon { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-size: 0.88rem; font-weight: 600; }

@media (min-width: 900px) {
  .mega-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 26px max(28px, calc((100vw - 1080px) / 2 + 28px)) 30px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(40, 30, 10, 0.12);
  }
  .mega-col-wide { grid-column: span 2; }
  .mega-panel-narrow { grid-template-columns: minmax(0, 560px); }
  .mega-panel .mega-links { columns: 1; }
}

/* phones + small tablets: the menu is a drawer under the header */
@media (max-width: 899px) {
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    max-height: calc(100vh - 66px); overflow-y: auto;
    padding: 8px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(40, 30, 10, 0.14);
  }
  html:not(.js) .site-nav { position: static; box-shadow: none; }
  .mega { border-bottom: 1px solid var(--line); }
  .mega > summary, .nav-link { justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; border-radius: 0; }
  .mega > summary:hover, .mega[open] > summary { background: transparent; }
  .mega[data-current] > summary, .nav-link[aria-current] { box-shadow: none; color: var(--accent); }
  .mega-panel { padding: 0 4px 18px; gap: 18px; }
  .menu-toggle { display: grid; }
}
@media (min-width: 900px) { .menu-toggle { display: none !important; } }
/* Very small phones (320 px): a little tighter so logo, buttons and menu fit on one line. */
@media (max-width: 380px) { .header-inner { gap: 6px; } .brand-word { height: 23px; } .brand-mark { width: 32px; height: 32px; } .header-actions { gap: 2px; } .icon-btn { width: 38px; height: 38px; } }




.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: grid; gap: 14px; }
.footer-name { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-2); }
.footer-small { font-size: 0.85rem; }




.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 22px 0 10px; box-shadow: var(--shadow); }
.player-vertical { aspect-ratio: 9 / 16; max-width: 340px; margin-left: auto; margin-right: auto; }
.player-link { position: absolute; inset: 0; display: block; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px;
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease;
}
.play-btn svg { width: 28px; height: 28px; fill: var(--accent-ink); margin-left: 4px; }
.player-link:hover .play-btn { transform: scale(1.07); }
.vcard-static .play-btn { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.vcard-static .play-btn svg { width: 21px; height: 21px; }
.credit { color: var(--muted); font-size: 0.92rem; }
.credit a { white-space: nowrap; }
.credit svg { width: 13px; height: 13px; vertical-align: -1px; }




.short-dialog { padding: 0; border: 0; background: transparent; width: min(92vw, 380px); max-height: 92vh; overflow: visible; }
.short-dialog::backdrop { background: rgba(10, 8, 5, 0.82); }
.short-dialog form { position: absolute; top: 0; right: 0; z-index: 1; }
.short-frame { aspect-ratio: 9 / 16; max-height: 86vh; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; }
.short-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.dialog-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
@media (max-width: 440px) { .dialog-close { right: 4px; top: -48px; } }




html:not(.js) .js-only { display: none !important; }
.topbar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
/* Date on the left, "A Sadaqah Jariyah Project" centred, prayer times on the right. */
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 36px; }
.hijri { justify-self: start; font-family: var(--font-head); font-style: italic; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0.3em; max-width: 100%; }
.topbar-tag { justify-self: center; font-family: var(--font-head); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.05em; color: var(--ink-2); white-space: nowrap; }
.topbar-inner .prayer-chip { justify-self: end; }
/* Phones: the words get their own centred line above the date and prayer times. */
@media (max-width: 600px) {
  .topbar-inner { grid-template-columns: 1fr auto; row-gap: 2px; padding-top: 4px; padding-bottom: 5px; }
  .topbar-tag { grid-column: 1 / -1; grid-row: 1; }
}
.prayer-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; min-height: 30px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: 600 0.86rem/1 var(--font-body); cursor: pointer; white-space: nowrap;
}
.prayer-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.prayer-chip:hover { border-color: var(--gold); }




.season { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .season { background: var(--gold); color: #17120a; }
.season-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding-top: 8px; padding-bottom: 8px; }
.season p { font-size: 0.95rem; }
.season a { color: inherit; font-weight: 700; white-space: nowrap; }
.season-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; opacity: 0.75; }
.season-x:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }




.prayer-dialog {
  width: min(94vw, 440px); max-height: 90vh; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.prayer-dialog::backdrop { background: rgba(10, 8, 5, 0.55); }
.pd-head { display: flex; align-items: center; justify-content: space-between; }
.pd-head h2 { font-size: 1.35rem; }
.pd-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.pd-place { color: var(--muted); margin-top: 4px; font-size: 0.95rem; }
.pd-times { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.pd-times:empty { display: none; }
.pd-times li { display: flex; justify-content: space-between; padding: 10px 14px; font-weight: 600; }
.pd-times li + li { border-top: 1px solid var(--line); }
.pd-times time { font-variant-numeric: tabular-nums; }
.pd-times .is-sunrise { color: var(--muted); font-weight: 400; font-size: 0.92rem; }
.pd-times .is-next { background: var(--gold-soft); }
.pd-times .is-next span::after { content: "Next"; margin-left: 8px; font-size: 0.72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }
.pd-settings { display: grid; gap: 12px; margin-top: 16px; }
.pd-settings label { display: grid; gap: 4px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2); }
.pd-settings select {
  min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit; font-weight: 400;
}
.pd-note { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
.prose ul { padding-left: 1.3em; margin: 8px 0 14px; } .prose li + li { margin-top: 6px; } .privacy { max-width: 760px; }



:is(.site-header, .prayer-dialog, .season) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: 600 0.98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
}
:is(.site-header, .prayer-dialog, .season) .btn:hover { border-color: var(--gold); }
:is(.site-header, .prayer-dialog, .season) .btn svg { width: 16px; height: 16px; fill: currentColor; }
:is(.site-header, .prayer-dialog, .season) .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:is(.site-header, .prayer-dialog, .season) .btn-play { min-height: 38px; padding: 8px 14px; font-size: 0.92rem; background: var(--accent-soft); border-color: transparent; color: var(--accent); }
:is(.site-header, .prayer-dialog, .season) .btn-play:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

:is(.site-header, .prayer-dialog, .season) .chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
:is(.site-header, .prayer-dialog, .season) .chips-left { justify-content: flex-start; }
:is(.site-header, .prayer-dialog, .season) .chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-weight: 600; font-size: 0.93rem; text-decoration: none;
}
:is(.site-header, .prayer-dialog, .season) .chip span { color: var(--muted); font-weight: 600; font-size: 0.82rem; }
:is(.site-header, .prayer-dialog, .season) .chip:hover { border-color: var(--gold); }
:is(.site-header, .prayer-dialog, .season) .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
:is(.site-header, .prayer-dialog, .season) .chip[aria-current] span { color: inherit; opacity: 0.7; }
:is(.site-header, .prayer-dialog, .season) .chip-quiet { background: transparent; border-style: dashed; }



.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 60; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-header .prog-link { margin-left: 0; }
.site-header .acct-btn { margin-left: 0; }
@media (max-width: 600px) { .site-header .prog-link { display: none; } }