/* saudiprayertimes.com: the whole site's styles (replaces bootstrap.rtl.min.css, support.css and blog.rtl.css) */

:root {
  --green: #0b5d52;
  --green-dark: #08463e;
  --green-tint: #e6f0ee;
  --gold: #c8962e;
  --gold-tint: #fbf6ea;
  --gold-ink: #8a6416;
  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #1c2725;
  --muted: #5b6b69;
  --faint: #7a8784;
  --line: #e7e2d7;
  --radius: 12px;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
button { font: inherit; }
ol[itemscope] { padding: 0; margin: .75rem 0 .5rem; font-size: .85rem; color: var(--muted); }
ol[itemscope] li { display: inline; }
.breadcrumbs__separator { color: var(--faint); }

/* layout and the few utility classes the pages still use */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }
.row { display: flex; flex-wrap: wrap; margin-inline: -.375rem; }
.row > * { width: 100%; max-width: 100%; padding-inline: .375rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.rounded { border-radius: var(--radius); }
.px-0 { padding-inline: 0; }
.p-4 { padding: 1.25rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.25rem; }
.my-3 { margin-block: 1rem; }
.fst-italic { font-style: normal; }
.lead { font-size: 1.05rem; }
@media (min-width: 768px) {
  .row-cols-md-3 > * { width: 33.3333%; }
  .p-md-5 { padding: 2rem 2.25rem; }
}

/* page title box (home, time-fajr, salah-remaining) */
.bg-danger { background: var(--green); border-bottom: 3px solid var(--gold); }
.bg-danger .lead { color: var(--green-tint); margin-bottom: 0; }
.display-4 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

/* city link cards (home, time-fajr) */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card.mb-4 { margin-bottom: .6rem; }
.card-body { padding: .8rem 1rem; }
.card-body a { font-weight: 600; }
.card:hover { border-color: var(--green); }

/* tables and forms (salah-remaining) */
.table { width: 100%; margin-bottom: 1rem; background: var(--card); }
.table th, .table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); }
.table .table-primary th { color: var(--green); }
.table thead .table-primary { border-bottom: 2px solid var(--green); }
.form-select { display: block; width: 100%; padding: .6rem .9rem; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

/* header */
.site-header { background: var(--green); color: #fff; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 3.5rem; }
.site-logo { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; color: #fff; font-size: clamp(.98rem, 4.2vw, 1.2rem); font-weight: 800; white-space: nowrap; overflow: hidden; }
.site-logo:hover { color: #fff; }
.site-logo svg { flex: none; }
.site-menu-btn { display: none; flex: none; align-items: center; gap: .4rem; padding: .35rem .65rem; font-size: .92rem; color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; cursor: pointer; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.site-nav a { padding: .4rem .7rem; color: var(--green-tint); border-radius: 999px; font-size: .95rem; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.site-ad-top { text-align: center; margin: 1rem 0; }
@media (max-width: 991px) {
  .site-menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; z-index: 1020; flex-direction: column; gap: 0; padding: .5rem 16px 1rem; background: var(--green-dark); border-bottom: 3px solid var(--gold); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem .25rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header__bar { position: relative; }
}

/* footer */
.site-footer { margin-top: 2.5rem; padding: 1.75rem 0 1.25rem; background: var(--green); border-top: 3px solid var(--gold); color: var(--green-tint); font-size: .92rem; }
.site-footer a { color: #fff; }
.site-footer__app { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer__app p { margin: 0; font-weight: 600; color: #fff; }
.site-footer__badges { display: flex; gap: .6rem; }
.site-footer__badges img { height: 42px; width: auto; }
.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; padding: 1.25rem 0; }
.site-footer__links a { color: var(--green-tint); }
.site-footer__links a:hover { color: #fff; }
.site-footer__copy { margin: 0; font-size: .82rem; color: rgba(230, 240, 238, .75); }
@media (min-width: 768px) {
  .site-footer__links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* city page (time.php) and single-prayer pages (salah-time.php) */
.spt { max-width: 760px; margin: 0 auto; }
.spt-crumbs { list-style: none; padding: 0; margin: .75rem 0 .25rem; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; color: var(--muted); }
.spt-crumbs li { display: block; }
.spt-crumbs li + li::before { content: "‹"; margin-inline-end: .35rem; color: var(--faint); }
.spt-head { margin: .25rem 0 1rem; }
.spt-head h1 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); font-weight: 800; color: var(--ink); margin: 0 0 .3rem; line-height: 1.35; }
.spt-date { color: var(--muted); font-size: .95rem; margin: 0; }
.spt-day { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.spt-day th, .spt-day td { padding: .8rem 1rem; border-bottom: 1px solid #f0ece3; }
.spt-day tr:last-child th, .spt-day tr:last-child td { border-bottom: 0; }
.spt-day th { font-weight: 600; color: var(--ink); text-align: right; font-size: 1.05rem; }
.spt-day td { text-align: left; font-variant-numeric: tabular-nums; font-size: 1.2rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.spt-day tr.is-minor th, .spt-day tr.is-minor td { color: var(--faint); font-weight: 500; font-size: .98rem; }
.spt-day thead th { padding: .55rem 1rem; background: #fbfaf6; color: var(--faint); font-size: .78rem; font-weight: 600; }
.spt-day thead th + th { text-align: left; }
.spt-day td.spt-iq { color: var(--muted); font-size: 1rem; font-weight: 600; }
.spt-day tr.is-minor td.spt-iq { color: #c4c9c7; }
@media (max-width: 420px) {
  .spt-day th, .spt-day td, .spt-day thead th { padding-inline: .6rem; }
}
.spt-day tr.is-selected { background: var(--gold-tint); }
.spt-day tr.is-selected th { box-shadow: inset -4px 0 0 var(--gold); }
.spt-day tr.is-next { background: var(--green-tint); }
.spt-day tr.is-next th { box-shadow: inset -4px 0 0 var(--green); }
.spt-badge { display: inline-block; margin-inline-start: .5rem; padding: .1rem .55rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .72rem; font-weight: 700; vertical-align: middle; }
.spt-badge[hidden] { display: none; }
.spt-answer { background: var(--green-tint); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.spt-answer p { margin: 0; color: var(--ink); font-weight: 600; }
.spt-answer time { font-size: clamp(2rem, 8vw, 2.6rem); font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; line-height: 1.1; }
.spt-answer__t { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.spt-answer__t small { color: var(--muted); font-size: .9rem; font-weight: 600; }
.spt-answer__t small time { font-size: 1rem; color: var(--ink); font-weight: 700; }
.spt-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.spt-links a { display: inline-block; padding: .45rem .95rem; border: 1px solid #d5e3e0; border-radius: 999px; font-size: .95rem; background: var(--card); }
.spt-links a:hover { background: var(--green-tint); }
.spt-note { color: var(--muted); font-size: .92rem; line-height: 1.9; margin: 1rem 0 0; }
.spt-section h2 { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 1.75rem 0 .75rem; }
.spt-near { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.spt-near a { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--card); }
.spt-near a:hover { border-color: var(--green); }
.spt-near small { color: var(--faint); white-space: nowrap; }
.spt-all { display: inline-block; margin: .9rem 0 0; font-weight: 700; }
.spt-day th a { color: var(--ink); }
.spt-day th a:hover { color: var(--green); }

/* iqama page (iqama.php) */
.spt-gap { margin-bottom: 1rem; padding: 1rem 1.1rem; background: var(--green-tint); border-radius: 14px; }
.spt-gap h2 { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 800; }
.spt-gap ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; }
.spt-gap li { display: flex; flex-direction: column; align-items: center; padding: .55rem .2rem; background: var(--card); border-radius: 10px; }
.spt-gap li span { font-size: .85rem; font-weight: 600; color: var(--muted); }
.spt-gap li b { font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; }
.spt-gap li small { font-size: .72rem; color: var(--faint); }
.spt-gap p { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.spt-wide { overflow-x: auto; }
.spt-iqama th, .spt-iqama td { padding: .65rem .45rem; text-align: center; }
.spt-iqama tbody th { text-align: right; font-size: .95rem; }
.spt-iqama td { font-size: 1rem; }
.spt-iqama thead th + th { text-align: center; }
@media (max-width: 420px) {
  .spt-iqama th, .spt-iqama td, .spt-iqama thead th { padding: .6rem .28rem; }
  .spt-iqama td { font-size: .9rem; }
  .spt-iqama tbody th { font-size: .86rem; }
}
.spt-home td.spt-opt, .spt-home thead th.spt-opt { color: var(--faint); font-weight: 500; }
.spt-home td.is-next, .spt-fajr td.is-next { background: var(--green-tint); }
.spt-fajr .spt-split { border-inline-start: 1px solid var(--line); }
.spt-list { padding-inline-start: 1.1rem; margin: 0; line-height: 1.9; color: var(--ink); }
.spt-q { margin: 1rem 0 .25rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.spt-a { margin: 0; color: var(--muted); line-height: 1.9; }
.spt-src { margin: 1.5rem 0 0; font-size: .82rem; color: var(--faint); }

/* Ramadan timetable (imsakiya.php) */
.spt-ramadan { margin-bottom: 1rem; padding: 1rem 1.15rem; background: var(--green); border-bottom: 3px solid var(--gold); border-radius: 14px; color: #fff; }
.spt-ramadan p { margin: 0 0 .25rem; line-height: 1.8; }
.spt-ramadan p b { color: var(--gold-tint); }
.spt-ramadan small { color: var(--green-tint); font-size: .8rem; }
.spt-ramadan ul { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.spt-ramadan li { display: flex; flex-direction: column; align-items: center; padding: .55rem .3rem; background: rgba(255, 255, 255, .1); border-radius: 10px; text-align: center; }
.spt-ramadan li span { font-size: .78rem; color: var(--green-tint); }
.spt-ramadan li b { font-size: 1.05rem; font-weight: 800; }
.spt-tools { display: flex; justify-content: flex-end; margin-bottom: .6rem; }
.spt-print { padding: .45rem .95rem; border: 1px solid #d5e3e0; border-radius: 999px; background: var(--card); color: var(--green); font-weight: 600; cursor: pointer; }
.spt-print:hover { background: var(--green-tint); }
.spt-imsak caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spt-imsak th, .spt-imsak td { padding: .5rem .45rem; text-align: center; font-size: .95rem; white-space: nowrap; }
.spt-imsak thead th { text-align: center; }
.spt-imsak tbody th { position: sticky; right: 0; background: var(--card); color: var(--green); font-weight: 800; }
.spt-imsak td { color: var(--ink); font-weight: 600; }
.spt-imsak td.is-key { color: var(--green); font-weight: 800; }
.spt-imsak-date { font-weight: 500 !important; color: var(--muted) !important; }
.spt-imsak-date span { display: block; font-size: .72rem; color: var(--faint); }
.spt-imsak tr.is-today, .spt-imsak tr.is-today th { background: var(--gold-tint); }
@media screen and (max-width: 480px) {
  .spt-imsak .spt-opt, .spt-home .spt-opt { display: none; }
  .spt-imsak th, .spt-imsak td { padding: .5rem .22rem; font-size: .88rem; }
  .spt-imsak thead th { font-size: .72rem; }
  .spt-imsak-date { font-size: .82rem !important; }
}
.spt-all-cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .spt-all-cities { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media print {
  .site-header, .site-ad-top, .sticky_banner, .site-footer, .spt-crumbs, .spt-tools, .spt-links, .spt-section, .spt-note { display: none !important; }
  body { background: #fff; }
  .spt { max-width: none; }
  .spt-wide { overflow: visible; }
  .spt-imsak caption { position: static; width: auto; height: auto; clip: auto; margin-bottom: .5rem; font-weight: 800; }
  .spt-ramadan { background: #fff; color: #000; border: 1px solid #ccc; }
  .spt-ramadan p b, .spt-ramadan small, .spt-ramadan li span { color: #000; }
  .spt-imsak th, .spt-imsak td { padding: .25rem .4rem; font-size: 10pt; }
}

/* text pages (about.php, privacy.php) */
.spt-text h2 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.spt-text p { line-height: 1.95; color: var(--ink); }
.spt-text .spt-list { margin-bottom: 1rem; }

/* prayer countdown (salah-remaining.php) */
.spt-count { margin-bottom: 1rem; padding: 1rem 1.25rem 1.15rem; background: var(--green); border-bottom: 3px solid var(--gold); border-radius: 14px; color: #fff; text-align: center; }
.spt-count__top { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .6rem; }
.spt-count__top label { color: var(--green-tint); font-weight: 600; }
.spt-count .form-select { width: auto; min-width: 11rem; padding: .4rem .8rem; border-color: transparent; }
.spt-count__left { display: flex; justify-content: center; align-items: flex-start; gap: .35rem; }
.spt-count__left span { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; }
.spt-count__left b { font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spt-count__left small { font-size: .75rem; color: var(--green-tint); }
.spt-count__left i { font-style: normal; font-size: clamp(2rem, 9vw, 2.9rem); line-height: 1.15; color: var(--gold); }
.spt-count__when { margin: .7rem 0 0; }
.spt-count__when b { color: var(--gold-tint); }
@media (min-width: 768px) {
  .spt-near { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
