/* ===== JAMAAT TIME FINDER CSS - START ===== */
/* Full width inside theme flex container */
.site-content .site-home {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

/* Colour roles:
   --bg      page background (darkest)
   --card    the 3 big cards
   --inset   things inside a card (chips, toggles, open row, inner boxes)
   --surface kept for other CSS files (map, overlays)
   --link    link colour */
.jtf {
  --bg: #e8eeed;
  --card: #fff;
  --inset: #f3f6f5;
  --surface: #fff;
  --ink: #14282a;
  --muted: #5c6f70;
  --line: #d9e2e0;
  --brand: #0f4c4a;
  --brand-ink: #fff;
  --accent: #e8a317;
  --accent-ink: #3d2900;
  --next-ink: #9a5b00;
  --link: #0f4c4a;
  --gone: #98a6a5;
  --warn: #9a5b00;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.45 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  text-align: left;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jtf {
    --bg: #091213;
    --card: #121f21;
    --inset: #0d1a1b;
    --surface: #162628;
    --ink: #e6efee;
    --muted: #93a7a6;
    --line: #26383a;
    --brand: #0a3836;
    --accent: #f0b43a;
    --accent-ink: #2b1d00;
    --next-ink: #f0b43a;
    --link: #f0b43a;
    --gone: #5f7473;
    --warn: #e6b05a;
  }
}
:root[data-theme="dark"] .jtf {
  --bg: #091213;
  --card: #121f21;
  --inset: #0d1a1b;
  --surface: #162628;
  --ink: #e6efee;
  --muted: #93a7a6;
  --line: #26383a;
  --brand: #0a3836;
  --accent: #f0b43a;
  --accent-ink: #2b1d00;
  --next-ink: #f0b43a;
  --link: #f0b43a;
  --gone: #5f7473;
  --warn: #e6b05a;
}
.jtf *,
.jtf *::before,
.jtf *::after {
  box-sizing: border-box;
}
.jtf .wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Cards (hero card = .jtf-header, main card, info card) ===== */
.jtf .jtf-main,
.jtf .jtf-info {
  padding-top: 16px;
}
.jtf .jtf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 0; /* no side padding: content goes edge to edge, text blocks add their own */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Hero card (rich style) */
.jtf .jtf-header {
  background: linear-gradient(135deg, var(--brand) 0%, #1d7f5f 100%);
  color: var(--brand-ink);
  padding: 20px 0 22px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 20px rgba(15, 76, 74, 0.25);
}
.jtf .jtf-header::before {
  content: "";
  position: absolute;
  inset: 0 0 0 35%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='white' stroke-opacity='.16' stroke-width='1.2'%3E%3Crect x='15' y='15' width='30' height='30'/%3E%3Crect x='15' y='15' width='30' height='30' transform='rotate(45 30 30)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
  pointer-events: none;
}
.jtf .jtf-header .wrap {
  position: relative;
}
/* Order in the hero: title, AI badge, yellow line, clock... */
.jtf h1 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.9;
  line-height: 1.3;
}
.jtf .hl {
  height: 1px;
  margin: 14px 0 0;
  background: rgba(240, 180, 58, 0.6);
}
.jtf .theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand-ink);
  cursor: pointer;
  flex: none;
  transition:
    background 150ms ease,
    border-color 150ms ease;
}
.jtf .theme-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}
.jtf .theme-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.refresh-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jtf .refresh-btn {
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  margin: 0 0 0 2px;
  min-width: 0;
  min-height: 0;
  line-height: 0;
  border-radius: 6px;
  vertical-align: middle;
}
.jtf .q {
  margin: 4px 0 0;
  opacity: 0.85;
  font-size: 0.95rem;
}
.jtf .hero {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.jtf .clock {
  font-size: 2.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.jtf .day {
  font-size: 1.15rem;
  opacity: 0.9;
}
.jtf .dates {
  margin-top: 8px;
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.5;
}
.jtf #hijri {
  color: #f0b43a;
  font-weight: 700;
}
.jtf .sun {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.9rem;
  opacity: 0.85;
}
.jtf .sun:empty {
  display: none;
}
.jtf .sun span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.jtf .sun svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.jtf .moon {
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
  color: var(--accent);
}

/* Controls */
.jtf .bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.jtf .bar select,
.jtf .bar button {
  font: inherit;
  color: var(--ink);
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.jtf .bar button {
  cursor: pointer;
}

/* Prayer tabs: one connected strip, only the active tab is filled */
.jtf .tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--card);
  padding: 4px 0 10px;
  z-index: 2;
}
.jtf .tab {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border: 0;
  background: var(--inset);
  color: var(--ink);
  border-radius: 0;
  padding: 10px 0;
  min-width: 0;
  white-space: nowrap;
  cursor: pointer;
}
.jtf .tab + .tab {
  box-shadow: inset 1px 0 0 var(--line);
}
.jtf .tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.jtf .tab small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  opacity: 0.8;
}
@media (max-width: 340px) {
  .jtf .tab {
    font-size: 0.78rem;
  }
}
.jtf :focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.jtf .note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 6px;
  padding: 0 14px;
}
.jtf .note .note-left {
  white-space: nowrap;
  min-width: 0;
}
@media (max-width: 360px) {
  .jtf .note {
    padding: 0 10px;
  }
}
.jtf .note select {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 4px 2px;
  margin-left: 2px;
  outline: none;
}
.jtf .note select:focus,
.jtf .note select:focus-visible {
  outline: none;
  box-shadow: none;
}

/* List / Map segmented toggle */
.jtf .view-toggle {
  display: inline-flex;
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  margin-left: auto;
}
.jtf .view-toggle button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease;
}
.jtf .view-toggle button[aria-pressed="true"] {
  background: var(--brand);
  color: var(--brand-ink);
}

/* List: no boxes, only thin divider lines between rows */
.jtf ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.jtf #list {
  gap: 0;
}
.jtf ul[hidden] {
  display: none;
}
.jtf li.m {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}
.jtf #list li.m:last-child {
  border-bottom-color: transparent;
}
.jtf li.m.open {
  background: var(--inset);
  border-radius: 0;
  border-bottom-color: transparent;
}

.jtf .name {
  font-weight: 650;
}
.jtf .meta {
  font-size: 0.85rem;
  color: var(--muted);
}
/* Updated today: light mode */
.jtf .tag.updated-today {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 600;
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
}

.jtf .tag.updated-today::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Dark mode: manual toggle */
:root[data-theme="dark"] .jtf .tag.updated-today {
  color: #6fd3a8;
  background: rgba(111, 211, 168, 0.12);
}

/* Dark mode: device setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jtf .tag.updated-today {
    color: #6fd3a8;
    background: rgba(111, 211, 168, 0.12);
  }
}
.jtf .time {
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.1;
}
.jtf .left {
  font-size: 0.8rem;
  text-align: right;
  color: var(--warn);
  font-weight: 700;
}
.jtf li.m.gone .left,
.jtf .slotrow.gone .left {
  color: var(--gone);
  font-weight: 400;
}
.jtf .times {
  display: grid;
  gap: 6px;
}
.jtf .slotrow.gone .time {
  color: var(--gone);
}

/* Magrib row (sunset based, no masjid list) */
.jtf li.m.mg {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
}
.jtf li.m.mg .mg-note {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.jtf li.m.mg.gone .time {
  color: var(--gone);
}

/* Next Jamaat: soft tint + accent edge + small label (no heavy strip) */
.jtf li.m.next {
  background: rgba(240, 180, 58, 0.1);
  border-radius: 0;
  border-bottom-color: transparent;
  box-shadow: inset 3px 0 0 var(--accent);
}
.jtf li.m.next::before {
  content: "NEXT JAMAAT";
  display: block;
  color: var(--next-ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 14px 0 16px;
}
.jtf li.m.next .head {
  padding-left: 16px;
  padding-top: 6px;
}
.jtf li.m.next .time {
  font-size: 1.9rem;
}

.jtf .head {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.jtf .chev {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  transition: transform 0.2s;
}
.jtf li.open .chev {
  transform: rotate(180deg);
}
.jtf .body {
  display: none;
  padding: 0 14px 12px;
}
.jtf li.open .body {
  display: grid;
  grid-template-columns: minmax(0, 20fr) minmax(0, 80fr);
  gap: 12px 8px;
  align-items: start;
}
.jtf .photo {
  width: 33%;
  min-width: 96px;
  flex: none;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: var(--line);
}
.jtf .info {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
.jtf .unit {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 12px;
  padding: 8px;
}
.jtf .unit .th {
  flex: 0 0 25%;
}
.jtf .unit .info {
  flex: 1;
}
.jtf .th {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  text-align: center;
}
.jtf .th img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: 4px;
  background: var(--line);
}
.jtf .addr {
  grid-column: 1/-1;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.jtf .who {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.jtf .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
  flex: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.jtf .who small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.jtf .cr {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin: 2px 0;
}
.jtf .cr svg {
  width: 14px;
  height: 14px;
}
.jtf .tag {
  font-size: 0.78rem;
  color: var(--muted);
}
.jtf .tag.warn {
  color: var(--warn);
  font-weight: 600;
}
.jtf .empty {
  margin: 4px 14px 8px;
  background: var(--inset);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
}

.av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ===== Info card (quiet: smaller headings, muted text, sections split by thin lines) ===== */
.jtf .jtf-card > section {
  padding-left: 14px;
  padding-right: 14px;
}
.jtf .jtf-card > section + section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* SEO block (server-rendered) */
.jtf .jtf-seo {
  color: var(--ink);
}
.jtf .jtf-seo h2 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.jtf .jtf-seo h2:first-child {
  margin-top: 0;
}
.jtf .jtf-seo h3 {
  margin: 14px 0 8px;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
}
.jtf .jtf-seo p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.jtf .jtf-seo ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.jtf .jtf-seo ol li {
  margin: 0 0 4px;
}
.jtf .jtf-seo a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.jtf .jtf-seo a:hover {
  text-decoration: underline;
}
.jtf .jtf-seo .jtf-seo-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.jtf .jtf-seo ul.jtf-seo-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.jtf .jtf-seo ul.jtf-seo-areas li {
  background: var(--inset);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.82rem;
}
.jtf .jtf-seo ul.jtf-seo-areas a {
  color: var(--ink);
  font-weight: 500;
}

/* ===== AI look (same palette and motion as the upload page) ===== */
.jtf {
  --ai-a: #4f8cff;
  --ai-b: #8b5cf6;
  --ai-c: #ec4899;
  --ai-grad: linear-gradient(110deg, var(--ai-a), var(--ai-b), var(--ai-c));
}
.jtf .ai-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.jtf .ai-spark {
  width: 1em;
  height: 1em;
  flex: none;
  fill: url(#jtf-g);
}

/* Hero badge: glowing gradient border that flows */
.jtf .ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding: 5px 13px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.4;
  background:
    linear-gradient(rgba(9, 40, 40, 0.82), rgba(9, 40, 40, 0.82)) padding-box,
    linear-gradient(110deg, var(--ai-a), var(--ai-b), var(--ai-c), var(--ai-a))
      border-box;
  background-size:
    100% 100%,
    300% 100%;
  animation: jt-ai-flow 3s linear infinite;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.jtf .ai-pill .ai-spark {
  width: 15px;
  height: 15px;
  animation: jt-ai-pulse 1.8s ease-in-out infinite;
}
.jtf .ai-pill b {
  font-weight: 700;
}

/* "How the times get here": slim flat row of 3 steps at the top of the info card */
.jtf .ai-how-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}
.jtf .ai-how-title .ai-spark {
  width: 16px;
  height: 16px;
  animation: jt-ai-pulse 1.8s ease-in-out infinite;
}
.jtf .ai-how-title span {
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.jtf .ai-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.jtf .ai-steps li {
  text-align: center;
  padding: 0 2px;
}
.jtf .ai-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 auto 6px;
  border-radius: 50%;
  color: #fff;
  background: var(--ai-grad);
  background-size: 200% 100%;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.28);
}
.jtf .ai-ic svg {
  width: 17px;
  height: 17px;
}
.jtf .ai-ic svg.sp {
  fill: #fff;
  animation: jt-ai-pulse 1.6s ease-in-out infinite;
}
.jtf .ai-steps li.hot .ai-ic {
  animation: jt-ai-glow 1.8s ease-in-out infinite;
}
.jtf .ai-steps b {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
}
.jtf .ai-steps small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

@keyframes jt-ai-flow {
  0% {
    background-position:
      0 0,
      0% 0;
  }
  100% {
    background-position:
      0 0,
      300% 0;
  }
}
@keyframes jt-ai-pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.22) rotate(18deg);
  }
}
@keyframes jt-ai-glow {
  0%,
  100% {
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(139, 92, 246, 0.14),
      0 4px 16px rgba(236, 72, 153, 0.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jtf .ai-pill,
  .jtf .ai-pill .ai-spark,
  .jtf .ai-how-title .ai-spark,
  .jtf .ai-steps li.hot .ai-ic,
  .jtf .ai-ic svg.sp {
    animation: none !important;
  }
}

/* Footer text (outside the cards) */
.jtf .jtf-footer {
  padding: 20px 0 26px;
  font-size: 0.82rem;
  color: var(--muted);
}
.jtf .jtf-footer b {
  color: var(--ink);
}

/* Main tabs: Nearby / Saved (light underline tabs, so they don't compete with prayer tabs) */
.jtf .main-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 8px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.jtf .mtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  padding: 10px 0;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}
.jtf .mtab svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jtf .mtab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: #168a62;
}
.jtf .mtab[aria-selected="true"] svg {
  color: #168a62;
}
.jtf .mtab .mt-count:not(:empty) {
  font-size: 0.75rem;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink);
}
.jtf .mtab[aria-selected="true"] .mt-count:not(:empty) {
  background: #168a62;
  color: #fff;
}

/* Saved bar */
.jtf .saved-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 14px 10px 11px;
  background: rgba(22, 138, 98, 0.14);
  border: 0;
  border-top: 1px solid rgba(22, 138, 98, 0.35);
  border-bottom: 1px solid rgba(22, 138, 98, 0.35);
  border-left: 3px solid #168a62;
  border-radius: 0;
}
.jtf .saved-bar[hidden] {
  display: none;
}
.jtf .sb-heart {
  width: 22px;
  height: 22px;
  flex: none;
  fill: #e5484d;
  stroke: none;
}
.jtf .sb-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.jtf .sb-text b {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.jtf .sb-text #saved-info {
  font-size: 0.8rem;
  color: var(--muted);
}
.jtf .add-btn {
  flex: none;
  white-space: nowrap;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Save button inside an open row */
.jtf .acts {
  grid-column: 1 / -1;
  display: flex;
}
.jtf .save-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
}
.jtf .save-btn.on {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.jtf .empty button {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  margin-left: 6px;
  cursor: pointer;
}

/* Uploaded 1-2 days ago: green text, no dot */
.jtf .tag.updated-recent {
  color: #15803d;
  font-weight: 600;
}
:root[data-theme="dark"] .jtf .tag.updated-recent {
  color: #6fd3a8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jtf .tag.updated-recent {
    color: #6fd3a8;
  }
}

/* NEXT JAMAAT label on the Magrib row (the row is a 2-column grid, so the label spans both) */
.jtf li.m.mg.next {
  padding-left: 16px;
}
.jtf li.m.mg.next::before {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 0;
}

/* Contact Us (last section of the info card): plain text link, no big button */
.jtf .jtf-contact h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.jtf .jtf-contact p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
.jtf .jtf-contact a.jtf-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  color: var(--link);
  background: none;
  border: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
}
.jtf .jtf-contact a.jtf-contact-btn:hover {
  text-decoration: underline;
}
.jtf .jtf-contact .jtf-contact-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Trademark line in the footer */
.jtf .jtf-footer .jtf-legal {
  margin: 10px 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
}
/* ===== JAMAAT TIME FINDER CSS - END ===== */
