/* Majmuo website. Palette taken from the logo: maroon ink, terracotta, peach, blush. */

@font-face { font-family: "Hind Vadodara"; src: url("../fonts/HindVadodara-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind Vadodara"; src: url("../fonts/HindVadodara-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hind Vadodara"; src: url("../fonts/HindVadodara-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hind Vadodara"; src: url("../fonts/HindVadodara-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noorehuda"; src: url("../fonts/noorehuda.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Noto Sans Gujarati"; src: url("../fonts/NotoSansGujarati.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "MeQuran"; src: url("../fonts/me_quran.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #fbf6f1;
  --bg-2: #f5ebe3;
  --surface: #ffffff;
  --surface-2: #fdf9f6;
  --ink: #2a1512;
  --ink-2: #5f4640;
  --ink-3: #8f7770;
  --line: #ecdcd2;
  --line-2: #e2cbbd;
  --brand: #7a231f;
  --brand-ink: #ffffff;
  --accent: #c96e40;
  --accent-soft: #f8cdb4;
  --blush: #f6e7e0;
  --khushi: #2f7a4f;
  --khushi-soft: #e3f1e8;
  --gham: #7a231f;
  --gham-soft: #f6e2df;
  --focus: #c96e40;
  --shadow: 0 1px 2px rgba(74, 28, 20, .06), 0 8px 24px -12px rgba(74, 28, 20, .18);
  --shadow-lg: 0 24px 60px -24px rgba(74, 28, 20, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --ui: "Hind Vadodara", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ar: "Noorehuda", "Traditional Arabic", "Amiri", serif;
  --quran: "MeQuran", "Noorehuda", "Amiri", serif;
  --ar-size: 30px;
  --tr-size: 18px;
  --tl-size: 20px;
  --maxw: 1160px;
  color-scheme: light;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 52px; width: auto; }
.brand__mark { display: none; height: 40px; width: 40px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blush); color: var(--ink); }
.nav a.is-active { background: var(--brand); color: var(--brand-ink); }
.topbar__actions { display: flex; gap: 6px; }
.iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.iconbtn:hover { color: var(--brand); border-color: var(--line-2); }
.iconbtn:active { transform: scale(.94); }
.iconbtn.is-on { color: var(--brand); background: var(--blush); border-color: var(--accent-soft); }
.iconbtn.is-on svg { fill: currentColor; }

/* ---------- Mobile tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .topbar__inner { padding: 8px 16px; justify-content: space-between; }
  .brand__logo { height: 44px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 500; text-decoration: none; color: var(--ink-3); padding: 4px 0; border-radius: 12px; }
  .tabbar a.is-active { color: var(--brand); }
  .tabbar a.is-active svg { stroke-width: 2.2; }
  body { padding-bottom: 72px; }
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px 56px; }
.wrap--narrow { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding: 20px 16px 40px; } }
.page-head { margin-bottom: 24px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 4px; }
.h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0; font-weight: 700; color: var(--brand); letter-spacing: -.01em; }
.h2 { font-size: 22px; margin: 0 0 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.h2 small { font-size: 14px; color: var(--ink-3); font-weight: 400; }
.lede { color: var(--ink-2); margin: 8px 0 0; max-width: 60ch; }
.section { margin-top: 40px; }
.section:first-child { margin-top: 0; }
.muted { color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 18px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-weight: 500;
  text-decoration: none; transition: background .2s, border-color .2s, transform .15s; font-size: 15px;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--ghost:hover { background: var(--blush); border-color: transparent; }
.btn--sm { padding: 6px 12px; font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--blush); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.chip--khushi { background: var(--khushi-soft); color: var(--khushi); }
.chip--gham { background: var(--gham-soft); color: var(--gham); }

.seg { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 999px; border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--ink-2); }
.seg button.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }

.input {
  width: 100%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 14px;
  padding: 12px 16px; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

/* ---------- Hero (today) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 28px; padding: 36px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent-soft) 80%, transparent), transparent 60%),
    linear-gradient(160deg, var(--surface) 0%, var(--blush) 100%);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: stretch;
}
.hero::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px;
  background: url("../img/mark.png") center / contain no-repeat; opacity: .07; pointer-events: none;
}
.hero__date { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.hero__hijri { font-size: clamp(34px, 5vw, 54px); font-weight: 700; line-height: 1.1; color: var(--brand); margin: 6px 0 0; letter-spacing: -.01em; }
.hero__hijri-en { color: var(--ink-2); font-size: 17px; margin-top: 6px; }
.hero__greg { color: var(--ink-3); margin-top: 2px; }
.hero__events { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.event { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.event__dot { width: 8px; height: 8px; border-radius: 99px; margin-top: 9px; flex: none; background: var(--ink-3); }
.event--1 .event__dot { background: var(--khushi); }
.event--2 .event__dot { background: var(--gham); }
.hero__prayer { position: relative; z-index: 1; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 24px; border-radius: 22px; gap: 24px; } }

/* ---------- Prayer card ---------- */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.pcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pcard__place { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.pcard__place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__place svg { width: 18px; height: 18px; color: var(--accent); }
.pcard__next { background: var(--brand); color: var(--brand-ink); border-radius: 16px; padding: 14px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pcard__next b { font-size: 20px; }
.pcard__next .count { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 600; }
.pcard__next small { opacity: .85; display: block; font-size: 13px; }
.ptimes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ptime { border-radius: 14px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ptime__name { font-size: 13px; color: var(--ink-3); }
.ptime__at { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ptime.is-next { border-color: var(--accent); background: var(--blush); }
.ptime.is-next .ptime__name { color: var(--accent); font-weight: 600; }
.ptime.is-past .ptime__at { color: var(--ink-3); }
.pempty { flex: 1; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--ink-2); gap: 12px; }

/* ---------- Lists / grids ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .2s; min-height: 108px; overflow: hidden;
}
.tile:hover { transform: translateY(-2px); border-color: var(--accent-soft); box-shadow: var(--shadow-lg); }
.tile__title { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tile__meta { font-size: 13.5px; color: var(--ink-3); margin-top: auto; }
.tile__glyph {
  position: absolute; right: -16px; bottom: -22px; width: 104px; height: 104px; pointer-events: none;
  background: url("../img/mark.png") center / contain no-repeat; opacity: .09; transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1);
}
.tile:hover .tile__glyph { opacity: .16; transform: translateY(-3px); }
.tile > *:not(.tile__glyph) { position: relative; }

.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.item:first-child { border-top: 0; }
.item:hover { background: var(--surface-2); }
.item__num { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--blush); color: var(--brand); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.item__body { flex: 1; min-width: 0; }
.item__title { font-weight: 600; font-size: 17px; line-height: 1.35; }
.item__sub { font-size: 13.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__ar { font-family: var(--ar); font-size: 22px; color: var(--ink-2); direction: rtl; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__side { flex: none; display: flex; gap: 4px; align-items: center; color: var(--ink-3); }
.item__side .iconbtn { width: 36px; height: 36px; border-color: transparent; background: transparent; }
.item__side .iconbtn svg { width: 19px; height: 19px; }
@media (max-width: 600px) { .item__ar { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Dua reader ---------- */
.reader-head { text-align: center; padding: 8px 0 20px; }
.reader-head .h1 { font-size: clamp(30px, 5vw, 46px); }
.reader-head__ar { font-family: var(--ar); font-size: 34px; color: var(--accent); direction: rtl; margin-top: 4px; }
.reader-head__ref { color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.reader-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.toolbar {
  position: sticky; top: 73px; z-index: 20; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px; margin: 0 auto 20px; width: fit-content; max-width: 100%;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .toolbar { top: 61px; border-radius: 18px; justify-content: center; } }
.toggle { border: 1px solid transparent; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-3); }
.toggle.is-on { background: var(--blush); color: var(--brand); border-color: var(--accent-soft); }
.toolbar__sep { width: 1px; height: 22px; background: var(--line); }

.audio { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 auto 24px; max-width: 820px; }
.audio audio { flex: 1; min-width: 0; height: 40px; }
@media (max-width: 600px) { .audio { flex-direction: column; align-items: stretch; } .audio .seg { align-self: center; } .audio audio { width: 100%; flex: none; } }

.lines { display: flex; flex-direction: column; gap: 14px; }
.line {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px 16px; box-shadow: var(--shadow); scroll-margin-top: 150px; transition: border-color .3s, background .3s;
}
.line.is-flash { border-color: var(--accent); background: var(--blush); }
.line__ar { font-family: var(--ar); font-size: var(--ar-size); line-height: 1.95; direction: rtl; text-align: right; color: var(--ink); }
.is-quran .line__ar { font-family: var(--quran); line-height: 2.1; }
.line__tl { font-family: "Noto Sans Gujarati", var(--ui); font-size: var(--tl-size); line-height: 1.7; color: var(--accent); margin-top: 10px; }
.line__tr { font-size: var(--tr-size); line-height: 1.7; color: var(--ink-2); margin-top: 8px; }
.line__action {
  background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--ink-2); font-size: 15.5px; white-space: pre-line; margin-bottom: 12px;
}
.line__ref { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.line__foot { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.line__no { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-right: auto; }
.line__foot .iconbtn { width: 34px; height: 34px; border-color: transparent; background: transparent; }
.line__foot .iconbtn svg { width: 18px; height: 18px; }
.line--note { background: var(--bg-2); box-shadow: none; }
.hide-ar .line__ar, .hide-tl .line__tl, .hide-tr .line__tr, .hide-ar .ayah__ar, .hide-ar .bismillah, .hide-tr .ayah__gu { display: none; }
@media (max-width: 600px) { .line { padding: 18px 16px 12px; } }

/* ---------- Quran ---------- */
.surah-tile { flex-direction: row; align-items: center; gap: 16px; min-height: 88px; }
.medal {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--brand);
  background: var(--blush); border-radius: 12px; transform: rotate(45deg);
}
.medal > span { transform: rotate(-45deg); font-variant-numeric: tabular-nums; }
.surah-tile .tile__ar { margin-left: auto; font-family: var(--quran); font-size: 22px; color: var(--accent); direction: rtl; white-space: nowrap; }
.ayah { padding: 22px 24px; }
.ayah__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ayah__ar { font-family: var(--quran); font-size: var(--ar-size); line-height: 2.1; direction: rtl; text-align: right; }
.ayah__gu { font-size: var(--tr-size); color: var(--ink-2); margin-top: 8px; line-height: 1.75; }
.ayah-num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Ayat medallion, as in the app: a circle over a rotated square, sized with the text. */
.ayat-mark {
  position: relative; display: inline-grid; place-items: center; vertical-align: middle;
  width: 1em; height: 1em; font-size: .9em; margin-inline: .12em; direction: ltr;
  font-family: var(--ui); line-height: 1; font-style: normal;
}
.ayat-mark--tl { font-size: 1.15em; }
.ayat-mark::before, .ayat-mark::after { content: ""; position: absolute; }
.ayat-mark::before { inset: 15%; border: 1px solid rgba(162, 86, 65, .45); border-radius: 2px; transform: rotate(45deg); }
.ayat-mark::after { inset: 8%; border-radius: 50%; background: rgba(254, 226, 206, .85); border: 1px solid #a25641; }
.ayat-mark > span { position: relative; z-index: 1; font-size: .44em; font-weight: 600; color: #a25641; }
.ayat-mark.is-3 > span { font-size: .36em; }
.sajdah-mark { color: #a25641; font-size: .8em; margin-inline-start: .2em; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.bismillah { text-align: center; font-family: var(--quran); font-size: 34px; color: var(--brand); margin: 8px 0 24px; direction: rtl; }

/* ---------- Tafsir drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(30, 10, 6, .45); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg);
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.drawer__head h2 { margin: 0; font-size: 20px; color: var(--brand); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.hadith { padding: 18px 20px; margin-top: 12px; }
.hadith__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hadith__ar { font-family: var(--ar); font-size: 24px; line-height: 1.9; direction: rtl; text-align: right; }
.hadith__gu { color: var(--ink-2); margin-top: 8px; line-height: 1.75; }
.hadith__ref { font-size: 13px; color: var(--ink-3); margin-top: 10px; direction: rtl; text-align: right; }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__scrim, .tile { transition: none; } html { scroll-behavior: auto; } }

/* ---------- Search ---------- */
.searchbar { position: relative; }
.searchbar svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.searchbar .input { padding-left: 48px; font-size: 18px; padding-top: 14px; padding-bottom: 14px; border-radius: 18px; }
mark { background: var(--accent-soft); color: inherit; border-radius: 4px; padding: 0 2px; }

/* ---------- Prayer page ---------- */
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.ptable th, .ptable td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ptable th { font-size: 13px; color: var(--ink-3); font-weight: 600; position: sticky; top: 0; background: var(--surface); }
.ptable td:first-child, .ptable th:first-child { text-align: left; }
.ptable tr.is-today td { background: var(--blush); font-weight: 600; }
.tablewrap { overflow-x: auto; }
.citylist { max-height: 320px; overflow-y: auto; margin-top: 8px; }
.formgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.label { font-size: 13px; color: var(--ink-3); font-weight: 600; display: block; margin-bottom: 6px; }

/* ---------- Misc ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty svg { width: 44px; height: 44px; color: var(--accent-soft); margin: 0 auto 12px; stroke-width: 1.4; }
.empty b { display: block; color: var(--ink-2); font-size: 18px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--surface-2), var(--bg-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.loader { display: grid; place-items: center; padding: 64px 0; }
.loader span { width: 34px; height: 34px; border-radius: 99px; border: 3px solid var(--accent-soft); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: var(--gham-soft); color: var(--gham); padding: 14px 18px; border-radius: 14px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 80;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 14.5px;
  transition: opacity .25s, transform .25s; pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) { .toast { bottom: 90px; } }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; color: var(--ink-2); }
.footer__inner img { margin-bottom: 6px; }
.footer p { margin: 0; }
.footer__ar { font-family: var(--ar); font-size: 26px; color: var(--brand); }
.footer__small { font-size: 13px; color: var(--ink-3); margin-top: 8px !important; }

.textsize { display: inline-flex; align-items: center; gap: 2px; }
.textsize button { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.textsize button:hover { background: var(--blush); }
.btn.is-on { color: var(--brand); background: var(--blush); border-color: var(--accent-soft); }
.btn.is-on svg { fill: currentColor; }

/* Links to other duas inside content text. */
.dua-link { color: var(--brand); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; text-decoration-thickness: 2px; font-weight: 500; }
.dua-link:hover { text-decoration-color: var(--accent); }
