/* مواقيت توداي — design layer (natega colors, pro layout) v4 */

:root {
  --rn-navy: #173f86;
  --rn-blue: #2f67d8;
  --rn-blue-2: #4576cf;
  --rn-gold: #b8871b;
  --rn-gold-bright: #f8d978;
  --rn-gold-soft: #fff8e8;
  --rn-bg: #f7f9fc;
  --rn-soft: #f3f7ff;
  --rn-line: #dce5f2;
  --rn-muted: #4e5b70;
  --rn-title: #202b3e;
  --rn-ink: #111827;
  --rn-btn: linear-gradient(135deg, #173f86, #4576cf);
  --rn-btn-shadow: 0 10px 22px rgba(23, 63, 134, 0.18);
  --rn-card-shadow: 0 6px 16px rgba(23, 63, 134, 0.06);
  --rn-shadow-hover: 0 12px 28px rgba(23, 63, 134, 0.11);
  --rn-r-sm: 12px;
  --rn-r-md: 16px;
  --rn-r-lg: 20px;
  --rn-r-xl: 22px;
  --rn-space: 8px;
  --rn-page-pad: clamp(12px, 3vw, 20px);
  --rn-max: 1120px;

  --bg: var(--rn-bg);
  --bg-accent: var(--rn-bg);
  --brand: var(--rn-navy);
  --brand-bright: var(--rn-blue-2);
  --brand-soft: var(--rn-soft);
  --green: var(--rn-blue);
  --green-2: var(--rn-blue-2);
  --green-soft: color-mix(in srgb, var(--rn-blue) 14%, var(--rn-surface));
  --border: var(--rn-line);
  --border-strong: #cdd5e1;
  --line: var(--rn-line);
  --line-2: var(--border-strong);
  --ink: var(--rn-ink);
  --ink-muted: var(--rn-muted);
  --text: var(--rn-ink);
  --muted: var(--rn-muted);
  --surface-sunken: #eef2f8;
  --brand-soft: var(--rn-soft);
  --shadow-sm: var(--rn-card-shadow);
  --shadow-md: var(--rn-shadow-hover);
  --max: var(--rn-max);
  --radius: var(--rn-r-md);
  --rn-surface: #ffffff;
  --rn-surface-2: #fbfcff;
  --rn-accent: #4576cf;
  --rn-accent-2: #f5d88a;
  --rn-panel-grad: linear-gradient(180deg, var(--rn-surface) 0%, var(--rn-surface-2) 100%);
  --rn-copy-bg: color-mix(in srgb, var(--rn-soft) 72%, var(--rn-surface));
}

/* —— Base rhythm —— */
body {
  background: var(--rn-bg) !important;
  color: var(--rn-ink);
  font-feature-settings: "kern" 1, "liga" 1;
}
.shell {
  width: min(var(--rn-max), calc(100% - var(--rn-page-pad) * 2));
  padding-top: calc(var(--rn-space) * 2);
  padding-bottom: calc(var(--rn-space) * 4);
}
.wrap > * { animation: none; }
.portal { gap: calc(var(--rn-space) * 2); max-width: var(--rn-max); }

/* —— Header —— */
.top {
  background: var(--rn-surface);
  border-bottom: 1px solid var(--rn-line);
  box-shadow: 0 1px 0 rgba(23, 63, 134, 0.03);
}
.top::after {
  height: 2px;
  background: linear-gradient(90deg, var(--rn-navy) 0%, var(--rn-blue-2) 50%, var(--rn-gold-bright) 100%);
  opacity: 0.95;
}
.top-row { min-height: 56px; gap: 0.75rem; }
.brand { font-size: 1.18rem; }
.brand-ar { color: var(--rn-navy); font-weight: 900; }
.brand-accent {
  background: linear-gradient(135deg, var(--rn-gold), #c9941f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 76% 24%, var(--rn-gold-bright) 0 4px, transparent 4.5px),
    linear-gradient(145deg, var(--rn-navy), var(--rn-blue-2));
  box-shadow: var(--rn-card-shadow);
}
.brand-mark::after { border-color: rgba(255, 255, 255, 0.92); }
.nav a[aria-current="page"],
.tabbar a[aria-current="page"] { color: var(--rn-navy) !important; }
.nav a[aria-current="page"]::after { background: var(--rn-gold-bright); height: 2px; }
.nav a[aria-current="page"] svg { color: var(--rn-navy); }
.nav-more-btn { color: var(--rn-muted); font-weight: 700; }
.nav-more-wrap.is-active .nav-more-btn,
.nav-more-wrap.is-open .nav-more-btn { color: var(--rn-navy) !important; }
.nav-more-wrap.is-active .nav-more-btn::after { background: var(--rn-gold-bright); height: 2px; }
.nav-more-menu {
  border-color: var(--rn-line);
  background: var(--rn-surface);
  box-shadow: var(--rn-shadow-hover);
}
.theme-toggle {
  border-color: var(--rn-line);
  background: var(--rn-surface);
  color: var(--rn-muted);
  box-shadow: var(--rn-card-shadow);
}
.theme-toggle:hover { color: var(--rn-navy); border-color: color-mix(in srgb, var(--rn-blue) 35%, var(--rn-line)); }
.place-btn,
.theme-toggle,
.portal-search {
  transition: none;
}
.place-btn {
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rn-navy);
  box-shadow: var(--rn-card-shadow);
}

/* —— Surfaces (card system) —— */
.portal-panel,
.sheet,
.card,
.home-stage {
  border-radius: var(--rn-r-xl);
  border: 1px solid var(--rn-line);
  box-shadow: var(--rn-card-shadow);
  background: var(--rn-surface);
}

/* هيرو مسطّح — بلا طبقة خلفية */
.place-hero,
.place-stage.mh {
  position: relative;
  margin: 0 0 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent !important;
  overflow: visible;
}
.place-hero-bg,
.place-stage-bg,
.place-hero-bg::after,
.place-stage-bg::after {
  display: none !important;
}
.place-hero-inner,
.portal-hero-inner,
.place-stage-body {
  position: relative;
  padding: 0.25rem 0 0.75rem;
}

/* سطر «التوقيت العام · المدينة» — نص خفيف بلا كبسولة */
.place-hero-kicker,
.mh-title-k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none !important;
  color: var(--rn-muted) !important;
  font-size: 0.79rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  line-height: 1.45;
  max-width: 100%;
}
.place-hero-kicker::before,
.mh-title-k::before {
  content: "";
  flex: none;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--rn-gold-bright), color-mix(in srgb, var(--rn-gold) 70%, transparent));
}
.place-hero-text h1,
.mh-title-place {
  color: var(--rn-navy) !important;
  background: none !important;
  -webkit-text-fill-color: unset;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

/* —— Countdown —— */
.mh-countdown-well {
  border: 0;
  border-top: 3px solid var(--hero-c, var(--rn-gold-bright));
  border-radius: var(--rn-r-lg);
  background: var(--rn-btn) !important;
  box-shadow: var(--rn-btn-shadow);
  padding: 1rem 1.1rem 0.85rem;
}
.mh-live { font-size: 0.8rem; letter-spacing: 0.02em; }
.mh .count-clock b { font-variant-numeric: tabular-nums; }

/* —— Home hero —— */
.home-stage .place-stage-bg,
.home-stage .place-stage-bg::after { display: none; }
.home-stage .place-stage-body {
  padding: calc(var(--rn-space) * 2) calc(var(--rn-space) * 2) calc(var(--rn-space) * 1.5);
}
.home-stage .mh-title { text-align: center; margin-bottom: 0.25rem; }
.home-stage .mh-title-place {
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  color: var(--rn-navy) !important;
}
.home-loc-line {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  font-size: 0.86rem;
  color: var(--rn-muted);
  font-weight: 600;
}
.home-loc-line a { color: var(--rn-navy); }
.home-place-pick { color: var(--rn-blue); }
.home-mh-top { margin-bottom: 0.35rem; }
.home-mh-top .mh-date {
  font-size: 0.78rem;
  color: var(--rn-muted);
  font-weight: 700;
}
.mh-score.is-home {
  gap: 0;
  justify-items: center;
}
.mh-score.is-home .mh-countdown-well {
  max-width: min(22rem, 100%);
}
.home-stage .track {
  margin-top: 0.75rem;
  height: 3px;
  background: var(--rn-line);
}
.home-stage .track span { background: var(--hero-c, var(--rn-blue)); }
.home-stage .home-city-more { margin-top: 0.85rem; }
/* —— Countdown hub / detail —— */
.countdown-shell .countdown-hero { margin-bottom: 0.35rem; }
.countdown-flow { max-width: var(--max); margin-inline: auto; padding-inline: 0.75rem; }
.countdown-cards-wrap { margin-top: 0.5rem; }
.countdown-cards-wrap .section-title { margin-bottom: 0.75rem; font-size: 1.05rem; color: var(--rn-navy); }
.countdown-hub-grid .countdown-card {
  min-height: 96px;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--rn-line);
  box-shadow: var(--rn-card-shadow);
}
.countdown-page .count-clock { font-size: clamp(1.6rem, 5vw, 2.35rem); }
.countdown-page-fallback .countdown-place { margin-top: 0; }

.hub-shell.portal > .portal-hero { margin-bottom: 0.5rem; }
.home-portal > .portal-hero { margin-bottom: 0.35rem; }
.home-portal .exclusive-copy { margin-top: 0; margin-bottom: 0.85rem; }
.home-portal .hub-countries .section-title { margin-bottom: 0.65rem; }
.hub-shell.portal .portal-hero .portal-search { margin-top: 0.85rem; max-width: 28rem; }
.home-country-teaser {
  text-align: center;
  font-weight: 700;
  margin-top: 0.35rem;
  padding-bottom: 0.5rem;
}
.home-country-teaser a { color: var(--rn-navy); }
.portal-more-row {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}
.portal-more-countries {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  color: var(--rn-navy);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: var(--rn-card-shadow);
}
.portal-more-countries:hover {
  border-color: var(--rn-accent-2);
  color: var(--rn-accent);
}
.ui-show-more-ic,
.portal-more-ic {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.ui-show-more-ic path,
.portal-more-ic path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.show-more-chevron {
  transition: transform 0.18s ease;
  transform-origin: 12px 18px;
}
.btn-show-more[aria-expanded="true"] .show-more-chevron {
  transform: rotate(180deg);
}
.countries-page-shell .world-table-panel { margin-bottom: 0.75rem; }
.countries-page-shell .hub-countries { margin-top: 0.35rem; }
.portal-foot-regions { margin-top: 0.25rem; }
.exclusive-copy,
article.seo-dynamic {
  margin: 0.65rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--rn-r-lg);
  border: 1px solid var(--rn-line);
  background: var(--rn-copy-bg);
  color: var(--rn-navy);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
}
.home-stage .home-city-more .btn {
  font-size: 0.88rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--rn-r-sm);
}

/* —— Prayer rail —— */
.prayer-rail {
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.35rem 0.15rem 0.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pr-card {
  flex: 0 0 5.5rem;
  padding: 0.55rem 0.35rem 0.5rem;
  border-radius: var(--rn-r-sm);
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  box-shadow: none;
}
.pr-card.is-next {
  border-color: color-mix(in srgb, var(--c, var(--rn-blue)) 50%, var(--rn-line));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 14%, transparent);
}
.pr-ic { width: 36px; height: 36px; font-size: 1rem; }
.pr-name { font-size: 0.7rem; font-weight: 800; color: var(--rn-muted); }
.pr-time { font-size: 0.88rem; font-weight: 800; color: var(--rn-navy); }

/* —— Forms —— */
.portal-search,
.search,
.sn-search,
#picker .search {
  border: 1px solid var(--rn-line);
  border-top: 3px solid var(--rn-gold-bright);
  border-radius: var(--rn-r-sm);
  background: var(--rn-surface);
  box-shadow: 0 2px 8px rgba(23, 63, 134, 0.04);
  min-height: 50px;
  padding-inline: 1rem;
}
.portal-search:focus-within,
.search:focus,
.sn-search:focus-within {
  border-color: var(--rn-blue);
  box-shadow: 0 0 0 3px rgba(47, 103, 216, 0.14);
}
.home-countries .portal-search { margin-bottom: 0.75rem; }

/* —— Section titles —— */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--rn-line);
  color: var(--rn-navy);
  font-size: 1.05rem;
  font-weight: 900;
}
.section-title::before {
  width: 4px;
  height: 1.1em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--rn-gold-bright), var(--rn-gold));
  box-shadow: none;
}

/* —— Country grid (natega-style rows on desktop) —— */
.home-countries.portal-panel {
  padding: calc(var(--rn-space) * 2);
  margin-top: calc(var(--rn-space) * 1.5);
}

/* —— Hub: مواقيت توداي + عنوان + اختر الدولة (كتلة واحدة) —— */
.hub-shell {
  display: grid;
  gap: 0;
  margin-bottom: calc(var(--rn-space) * 1.25);
}
.hub-shell > .place-hero.portal-hero {
  margin: 0;
  padding: 0.65rem 1.1rem 0.35rem;
  border-radius: var(--rn-r-xl) var(--rn-r-xl) 0 0;
  border: 1px solid var(--rn-line);
  border-bottom: 0;
  box-shadow: none;
  background: var(--rn-surface) !important;
}
.hub-shell > .place-hero.portal-hero .place-hero-inner,
.hub-shell > .place-hero.portal-hero .portal-hero-inner {
  padding: 0;
}
.hub-shell > .hub-aside {
  margin: 0;
  padding: 0.55rem 1.1rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
  background: var(--rn-surface);
  border-inline: 1px solid var(--rn-line);
  border-bottom: 1px dashed var(--rn-line);
}
.hub-shell > .hub-aside a { color: var(--rn-navy); }
.hub-shell > .hub-countries.portal-panel {
  margin-top: 0;
  border-radius: 0 0 var(--rn-r-xl) var(--rn-r-xl);
  border-top: 0;
  padding-top: calc(var(--rn-space) * 1.35);
}
.hub-shell > .place-hero.portal-hero .portal-search {
  margin-bottom: 0;
}
.portal.hub-shell-addon {
  margin-top: calc(var(--rn-space) * 1.5);
  padding: calc(var(--rn-space) * 1.5);
  border-radius: var(--rn-r-xl);
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  box-shadow: var(--rn-card-shadow);
}
.pick-grid {
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.pick {
  border-radius: var(--rn-r-md);
  border: 1px solid var(--rn-line);
  box-shadow: none;
  min-height: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pick:hover {
  transform: translateY(-2px);
  box-shadow: var(--rn-shadow-hover);
  border-color: color-mix(in srgb, var(--rn-blue) 35%, var(--rn-line));
}
.pick.is-here {
  border-color: color-mix(in srgb, var(--rn-navy) 40%, var(--rn-line));
  background: var(--rn-soft);
}
.place-pick-panel {
  margin-top: calc(var(--rn-space) * 1.25);
  padding: calc(var(--rn-space) * 1.75);
}
.place-pick-panel.is-suggest {
  margin-top: calc(var(--rn-space) * 1.75);
  border-style: dashed;
}
.pick.pick-place .pick-flag .flag-big {
  opacity: 0.92;
}

@media (min-width: 640px) {
  .pick.pick-country,
  .pick.pick-place,
  .pick.pick-kw {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    gap: 12px;
    min-height: 0;
    padding: 12px 14px;
  }
  .pick-flag { flex: none; }
  .pick-flag .flag-big {
    width: 46px;
    height: 32px;
    border-radius: 7px;
  }
  .pick-name {
    min-height: 0;
    font-size: 0.92rem;
    line-height: 1.48;
    text-align: start;
    overflow: visible;
  }
}
.pick-country .pick-cap { display: none; }

/* —— Buttons & links —— */
.btn.primary,
.home-city-more .btn.primary {
  background: var(--rn-btn);
  color: #fff;
  font-weight: 900;
  border: 0;
  box-shadow: var(--rn-btn-shadow);
}
.portal-foot {
  margin-top: 0.5rem;
  padding: 0.5rem 0 0.25rem;
  border-top: 1px dashed var(--rn-line);
}
.portal-foot a { color: var(--rn-navy); font-weight: 800; font-size: 0.88rem; }

/* —— City / country match head (التصميم المرجعي) —— */
.place-stage.city-stage .place-stage-body {
  padding: 0.35rem 0 1rem;
}
.place-stage.city-stage .mh-title {
  text-align: center;
  margin: 0.65rem 0 0.95rem;
}
.place-stage.city-stage .mh-title-place {
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  color: var(--rn-navy) !important;
  -webkit-text-fill-color: unset;
  background: none !important;
}
.place-stage.city-stage .mh-score {
  align-items: stretch;
}
.place-stage.city-stage .mh-team.is-next .mh-ic {
  background: var(--rn-blue);
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--rn-blue) 18%, transparent);
}
.place-stage.city-stage .prayer-rail {
  mask-image: none;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
}
@media (min-width: 720px) {
  .place-stage.city-stage .pr-card {
    flex: 1 1 0;
    max-width: 7.25rem;
  }
}
.mh-loc b { color: var(--rn-navy); }
.mh-change {
  border-color: var(--rn-line);
  color: var(--rn-navy);
  font-weight: 800;
}

/* —— World table (أذان / عواصم / مناسبات) —— */
.world-table-panel {
  margin-top: calc(var(--rn-space) * 1.35);
  padding: calc(var(--rn-space) * 1.75);
}
.world-table-panel .section-title-ic {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}
.world-table-panel .section-title-ic > .ic {
  width: 1.45rem;
  height: 1.45rem;
  flex: none;
  color: var(--rn-navy);
}
.world-table-panel .section-title-ic > .ccard-ic {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  flex: none;
}
.world-table-panel .chips-filter {
  margin: 0 0 0.75rem;
  gap: 0.45rem;
}
.world-table-panel .chips-filter .chip {
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  color: var(--rn-muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.38rem 0.85rem;
  box-shadow: 0 1px 0 rgba(23, 63, 134, 0.04);
}
.world-table-panel .chips-filter .chip:hover {
  border-color: color-mix(in srgb, var(--rn-blue) 35%, var(--rn-line));
  color: var(--rn-navy);
}
.world-table-panel .chips-filter .chip.is-on {
  background: var(--rn-btn);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--rn-btn-shadow);
}
.world-table-panel .world-search {
  margin: 0 0 0.85rem;
  max-width: none;
}
.world-table-panel .table-wrap {
  margin: 0;
  border-radius: var(--rn-r-md);
  border: 1px solid var(--rn-line);
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.world-table-panel .world-table th {
  background: var(--rn-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-bottom: 0;
  padding: 0.7rem 0.75rem;
}
.world-table-panel .world-table td {
  padding: 0.62rem 0.75rem;
  vertical-align: middle;
  font-size: 0.88rem;
}
.world-table-panel .world-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--rn-soft) 50%, var(--rn-surface));
}
.world-table-panel .world-table tbody tr:hover td {
  background: color-mix(in srgb, var(--rn-accent-2) 10%, var(--rn-surface));
}
.world-table-panel .world-table tr.is-here td {
  background: var(--rn-gold-soft);
  font-weight: 700;
}
.world-table-panel .world-table tr.is-here td:first-child {
  box-shadow: inset 4px 0 0 var(--rn-gold-bright);
}
.world-table-panel .wt-country a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--rn-navy);
  font-weight: 800;
}
.world-table-panel .wt-flag .flag {
  width: 30px;
  height: 21px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(23, 63, 134, 0.12);
}
.world-table-panel .wt-cap {
  color: var(--rn-muted);
  font-weight: 600;
}
.world-table-panel .wt-time,
.world-table-panel .wt-pray {
  font-weight: 800;
  color: var(--rn-navy);
  font-variant-numeric: tabular-nums;
}
.world-table-panel .wt-time,
.world-table-panel .wt-pray {
  display: table-cell;
}
.world-table-panel .wt-pray-ic {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.35rem;
  opacity: 0.85;
}
.world-table-panel .wt-pray-ic .ic {
  width: 1.05rem;
  height: 1.05rem;
}
.world-table-panel .wt-th-pray .wt-th-in {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  width: 100%;
}
.world-table-panel .wt-th-pray .ic {
  width: 1rem;
  height: 1rem;
  opacity: 0.95;
}
.world-table-wide { overflow-x: auto; }

/* جدول الإمساكية — نفس أسلوب جدول العواصم */
.table-wrap.world-table.imsakiya-table {
  margin: 0.35rem 0 0.85rem;
  overflow: auto;
  border-radius: var(--rn-r-md);
  border: 1px solid var(--rn-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.table-wrap.world-table.imsakiya-table th {
  background: var(--rn-navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  border-bottom: 0;
  padding: 0.7rem 0.75rem;
}
.table-wrap.world-table.imsakiya-table td {
  padding: 0.62rem 0.75rem;
  vertical-align: middle;
  font-size: 0.88rem;
}
.table-wrap.world-table.imsakiya-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--rn-soft) 50%, var(--rn-surface));
}
.table-wrap.world-table.imsakiya-table tbody tr:hover td {
  background: color-mix(in srgb, var(--rn-accent) 8%, var(--rn-surface));
}
.table-wrap.world-table.imsakiya-table tr.is-here td {
  background: var(--rn-gold-soft);
  font-weight: 700;
}
.table-wrap.world-table.imsakiya-table tr.is-here td:first-child {
  box-shadow: inset 4px 0 0 var(--rn-gold-bright);
}
.table-wrap.world-table.imsakiya-table .wt-day-num {
  font-weight: 800;
  color: var(--rn-navy);
  font-variant-numeric: tabular-nums;
}
.table-wrap.world-table.imsakiya-table .wt-cap {
  color: var(--rn-muted);
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap.world-table.imsakiya-table .wt-pray,
.table-wrap.world-table.imsakiya-table .wt-time {
  font-weight: 800;
  color: var(--rn-navy);
  font-variant-numeric: tabular-nums;
}
.table-wrap.world-table.imsakiya-table .wt-pray-ic {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 0.35rem;
  opacity: 0.85;
}
.table-wrap.world-table.imsakiya-table .wt-pray-ic .ic {
  width: 1.05rem;
  height: 1.05rem;
}
.table-wrap.world-table.imsakiya-table .wt-th-pray .wt-th-in {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
  width: 100%;
}
.table-wrap.world-table.imsakiya-table .wt-th-pray .ic {
  width: 1rem;
  height: 1rem;
  opacity: 0.95;
}
.table-wrap.world-table.imsakiya-table .wt-duration {
  font-weight: 700;
  color: var(--rn-muted);
  white-space: nowrap;
}

.imsakiya-block {
  margin: 0.25rem 0 1.25rem;
}
.imsakiya-export {
  margin: 0;
}
.imsakiya-art-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--rn-navy);
  line-height: 1.35;
}
.imsakiya-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
}
.imsakiya-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--rn-r-md);
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  color: var(--rn-navy);
  font-weight: 800;
  font-size: 0.84rem;
  box-shadow: 0 1px 0 rgba(23, 63, 134, 0.05);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.imsakiya-tool:hover {
  border-color: color-mix(in srgb, var(--rn-blue) 40%, var(--rn-line));
  box-shadow: var(--rn-shadow-hover);
  transform: translateY(-1px);
}
.imsakiya-tool-ic {
  display: inline-flex;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--rn-navy);
}
.imsakiya-tool-ic svg {
  width: 100%;
  height: 100%;
}
.imsakiya-tool[data-imsak-pdf] .imsakiya-tool-ic { color: #c0392b; }
.imsakiya-tool[data-imsak-png] .imsakiya-tool-ic { color: var(--rn-blue); }
.ie-accent-bar {
  height: 4px;
  margin: -1rem -1.1rem 0.85rem;
  border-radius: var(--rn-r-lg) var(--rn-r-lg) 0 0;
  background: linear-gradient(90deg, var(--rn-navy) 0%, var(--rn-blue-2) 52%, var(--rn-gold-bright) 100%);
}
.imsakiya-sheet {
  margin: 0.25rem 0 1rem;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: var(--rn-r-lg);
  border: 1px solid var(--rn-line);
  background: var(--rn-panel-grad);
  box-shadow: var(--rn-card-shadow);
  overflow: hidden;
}
.imsakiya-export-artboard {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  width: 794px;
  max-width: 794px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  border: 1px solid var(--rn-line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: none;
  font-family: Alexandria, Almarai, system-ui, sans-serif;
}
.imsakiya-export-artboard .ie-accent-bar {
  margin: -22px -24px 1rem;
  border-radius: 18px 18px 0 0;
}
.ie-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.ie-mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.ie-brand-word {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
}
.ie-brand-ar { color: var(--rn-navy); }
.ie-brand-accent {
  background: linear-gradient(135deg, var(--rn-gold), #c9941f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.imsakiya-sheet-head,
.imsakiya-export-artboard .ie-head {
  margin-bottom: 0.65rem;
}
.ie-place {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.imsakiya-sheet-titles b,
.ie-titles h1 {
  display: block;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--rn-navy);
  line-height: 1.35;
}
.imsakiya-sheet-titles small,
.ie-titles p {
  margin: 0.2rem 0 0;
  color: var(--rn-muted);
  font-weight: 700;
  font-size: 0.86rem;
}
.imsakiya-sheet-flag .flag-big,
.ie-flag .flag-big {
  width: 56px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(23, 63, 134, 0.12);
}
.ie-meta {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: var(--rn-r-sm);
  background: var(--rn-soft);
  color: var(--rn-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}
.imsakiya-sheet .imsakiya-table,
.imsakiya-export-artboard .imsakiya-table {
  margin: 0;
}
.imsakiya-sheet-foot,
.ie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--rn-line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--rn-muted);
}
.ie-foot span:first-child {
  color: var(--rn-navy);
}
.imsakiya-export-artboard .imsakiya-table th {
  background: var(--rn-navy);
  color: #fff;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.imsakiya-export-artboard .imsakiya-table tr.is-here td {
  background: var(--rn-gold-soft);
}

@media print {
  body:has(#imsakiya-export) .count,
  body:has(#imsakiya-export) .chips,
  body:has(#imsakiya-export) .tabs,
  body:has(#imsakiya-export) .note-panel,
  body:has(#imsakiya-export) .plink-panel,
  body:has(#imsakiya-export) .home-imsak-more,
  body:has(#imsakiya-export) .place-hero-bg,
  body:has(#imsakiya-export) .crumbs {
    display: none !important;
  }
  body:has(#imsakiya-export) .place-hero {
    margin: 0 0 0.5rem;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
  body:has(#imsakiya-export) .place-hero h1 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
  }
  body:has(#imsakiya-export) .imsakiya-block {
    margin: 0;
  }
  body:has(#imsakiya-export) .imsakiya-table th {
    background: var(--rn-navy) !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* —— Tables & tabbar —— */
.table-wrap {
  border-radius: var(--rn-r-md);
  border: 1px solid var(--rn-line);
  overflow: hidden;
}
.table-wrap th { background: var(--rn-navy); }
.tabbar {
  border-top: 1px solid var(--rn-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
/* —— Related links & info panels —— */
.plink-panel,
.info-panel {
  margin-top: calc(var(--rn-space) * 1.35);
  padding: calc(var(--rn-space) * 1.5);
}
.plink-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.plink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rn-line);
  border-radius: var(--rn-r-md);
  background: var(--rn-surface);
  box-shadow: 0 1px 0 rgba(23, 63, 134, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.plink:hover {
  border-color: color-mix(in srgb, var(--rn-blue) 35%, var(--rn-line));
  box-shadow: var(--rn-shadow-hover);
  transform: translateY(-1px);
}
.plink-ic {
  flex: none;
  line-height: 0;
}
.plink-ic .ccard-ic {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
}
.plink-ic-pray {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--rn-soft);
  color: var(--rn-navy);
}
.plink-ic-pray .ic {
  width: 1.35rem;
  height: 1.35rem;
}
.plink-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}
.plink-body b {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rn-navy);
  line-height: 1.35;
}
.plink-body small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rn-muted);
}
.plink-arr {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rn-soft);
  color: var(--rn-navy);
  opacity: 0.85;
}
.plink-arr svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-panel .section-title {
  margin-bottom: 0.65rem;
}
.info-kicker {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--rn-r-sm);
  background: var(--rn-gold-soft);
  border: 1px solid #f1dfb2;
  color: #6b4e00;
  font-weight: 800;
  font-size: 0.88rem;
}
.info-text {
  margin: 0;
  color: var(--rn-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  font-weight: 600;
}
.note-panel {
  border-top: 3px solid var(--rn-gold-bright);
}
.method-panel {
  border-top: 3px solid var(--rn-gold-bright);
  background: var(--rn-panel-grad);
}
.method-lede {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--rn-r-sm);
  background: var(--rn-soft);
  border: 1px solid var(--rn-line);
  color: var(--rn-navy);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
}
.method-lede strong {
  font-weight: 900;
}
.method-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
}
.method-facts > div {
  padding: 0.65rem 0.75rem;
  border-radius: var(--rn-r-sm);
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
}
.method-facts dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--rn-muted);
  text-transform: none;
}
.method-facts dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--rn-navy);
  line-height: 1.4;
}
.method-more {
  margin-top: 0.75rem;
  border-radius: var(--rn-r-sm);
  border: 1px dashed var(--rn-line);
  background: var(--rn-surface);
  padding: 0.35rem 0.65rem 0.5rem;
}
.method-more summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rn-blue);
  padding: 0.35rem 0.15rem;
  list-style-position: inside;
}
.method-more p {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--rn-muted);
  font-weight: 600;
}
@media (max-width: 560px) {
  .method-facts {
    grid-template-columns: 1fr;
  }
}
.page-supplement {
  margin-top: 0.85rem;
  border-top: 3px solid var(--rn-gold-bright);
  background: var(--rn-panel-grad);
}
.page-supplement .section-title {
  margin-bottom: 0.75rem;
}
.page-supplement-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.page-supplement .foot-related {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rn-line);
}
.page-supplement .foot-related-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--rn-muted);
}
.page-supplement .foot-sight {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rn-line);
  font-size: 0.82rem;
  color: var(--rn-muted);
}
.page-supplement-min {
  border-top: none;
  background: var(--rn-soft);
}
.page-supplement-min .foot-sight {
  margin: 0;
  padding: 0;
  border: 0;
}
.month-panel {
  margin-top: 0.75rem;
}
.month-panel .section-title {
  margin-bottom: 0.55rem;
}
.month-panel .table-wrap {
  margin: 0;
}
.info-bullets {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: var(--rn-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  font-weight: 600;
}
.info-bullets li + li {
  margin-top: 0.35rem;
}
.info-bullets strong {
  color: var(--rn-navy);
}

.foot {
  border-top: 1px solid var(--rn-line);
  background: var(--rn-panel-grad);
  padding-top: 1.65rem;
  padding-bottom: 0.25rem;
}
.foot-grid {
  gap: 1.5rem;
}
.foot-tagline {
  margin: 0.55rem 0 0;
  color: var(--rn-title);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 26rem;
}
.foot-fine {
  margin: 0.45rem 0 0;
  color: var(--rn-muted);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 28rem;
}
.foot-menu-k {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--rn-navy);
}
.foot-menu-k:not(:first-child) {
  margin-top: 0.85rem;
}
.foot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.foot-pills a {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rn-line);
  background: var(--rn-surface);
  color: var(--rn-navy);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(23, 63, 134, 0.04);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.foot-pills a:hover {
  border-color: color-mix(in srgb, var(--rn-accent-2) 55%, var(--rn-line));
  background: var(--rn-soft);
  color: var(--rn-navy);
}
@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
  .plink-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 719px) {
  .plink-list {
    grid-template-columns: 1fr;
  }
}

/* —— Dialog picker —— */
#picker {
  border-radius: var(--rn-r-lg);
  border: 1px solid var(--rn-line);
  box-shadow: var(--rn-shadow-hover);
}

@media (max-width: 560px) {
  .home-stage .place-stage-body { padding: 1rem 0.9rem; }
  .mh .count-clock b, .mh .count-clock .u + .u::before { font-size: clamp(1.75rem, 7.5vw, 2.35rem); }
  .prayer-rail { mask-image: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pick:hover { transform: none; }
}

/* —— Site-wide lite: navy + gold accents —— */
.shell .page-flow {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.shell .portal-panel {
  background: var(--rn-panel-grad);
  border: 1px solid var(--rn-line);
  box-shadow: var(--rn-card-shadow);
}
.shell .section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rn-line) 88%, var(--rn-gold-bright));
  color: var(--rn-navy);
  font-family: "Alexandria", "Almarai", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.shell .section-title::before {
  content: "";
  width: 3px;
  height: 0.92em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--rn-gold-bright), var(--rn-gold));
  box-shadow: none;
  flex: none;
}
.shell .place-hero h1 {
  font-size: clamp(1.12rem, 3vw, 1.42rem);
  font-weight: 900;
  color: var(--rn-navy);
  margin: 0.1rem 0 0.35rem;
  line-height: 1.4;
}
.shell .place-hero-kicker,
.shell .mh-title-k {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.shell .place-hero-lede {
  color: var(--rn-muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}
.shell .place-crumbs a,
.shell .crumbs a {
  color: var(--rn-blue);
  font-weight: 700;
}
.shell .place-crumbs .is-here,
.shell .crumbs span:last-child {
  color: var(--rn-navy);
  font-weight: 800;
}
.shell .sheet-title {
  color: var(--rn-navy);
  font-weight: 800;
  background: var(--rn-soft);
  border-bottom: 1px solid var(--rn-line);
}
.shell .page-supplement {
  border-top: 3px solid var(--rn-gold-bright);
  background: var(--rn-surface);
}
.shell .page-supplement .foot-related-label {
  color: var(--rn-navy);
  font-weight: 800;
  font-size: 0.84rem;
}
.shell .method-lede {
  background: var(--rn-soft);
  border-color: var(--rn-line);
  color: var(--rn-title);
}
.shell .method-facts > div {
  border-color: var(--rn-line);
  background: var(--rn-surface);
}
.shell .method-facts dt {
  color: var(--rn-muted);
}
.shell .method-facts dd {
  color: var(--rn-navy);
}
.shell .home-imsak-more a,
.shell .section-head a,
.shell .portal-foot a,
.shell .home-country-teaser a {
  color: var(--rn-blue);
  font-weight: 700;
}
.shell .home-imsak-more a:hover,
.shell .section-head a:hover,
.shell .portal-foot a:hover {
  color: var(--rn-navy);
}
.shell .exclusive-copy,
.shell article.seo-dynamic {
  border-inline-start: 3px solid var(--rn-gold-bright);
  background: color-mix(in srgb, var(--rn-gold-soft) 55%, var(--rn-surface));
  border-color: var(--rn-line);
  color: var(--rn-title);
}
.shell .plink {
  border-color: var(--rn-line);
  background: var(--rn-surface);
}
.shell .plink:hover {
  border-color: color-mix(in srgb, var(--rn-blue) 35%, var(--rn-line));
  box-shadow: var(--rn-card-shadow);
}
.shell .plink b {
  color: var(--rn-navy);
}
.shell .tabs a {
  color: var(--rn-muted);
  font-weight: 700;
}
.shell .tabs a[aria-current="page"] {
  color: var(--rn-navy);
  border-color: var(--rn-gold-bright);
  background: var(--rn-gold-soft);
}
.shell :focus-visible {
  outline-color: var(--rn-blue);
}
.shell .skip:focus {
  background: var(--rn-navy);
  color: #fff;
}

/* —— Dark mode: navy night (بديل عن الرمادي) —— */
html[data-theme="dark"] {
  color-scheme: dark;
  --rn-bg: #0a1424;
  --rn-soft: #132238;
  --rn-line: #2a4268;
  --rn-muted: #94a8c9;
  --rn-title: #eef3fb;
  --rn-ink: #e4ecf8;
  --rn-navy: #d4e2f8;
  --rn-blue: #6ea3ff;
  --rn-blue-2: #8bb8ff;
  --rn-gold: #e0b84a;
  --rn-gold-bright: #f5d88a;
  --rn-gold-soft: rgba(245, 216, 138, 0.16);
  --rn-accent: #6ea3ff;
  --rn-accent-2: #f5d88a;
  --rn-surface: #101e34;
  --rn-surface-2: #152843;
  --rn-panel-grad: linear-gradient(180deg, var(--rn-surface) 0%, var(--rn-surface-2) 100%);
  --rn-copy-bg: color-mix(in srgb, var(--rn-soft) 80%, var(--rn-surface));
  --rn-card-shadow: 0 10px 28px rgba(4, 12, 28, 0.55);
  --rn-shadow-hover: 0 16px 36px rgba(4, 12, 28, 0.62);
  --rn-btn-shadow: 0 12px 28px rgba(8, 20, 48, 0.65);
  --rn-btn: linear-gradient(135deg, #1a3d7a, #3566b8);
  --bg: var(--rn-bg);
  --bg-accent:
    radial-gradient(120% 90% at 50% -25%, rgba(69, 118, 207, 0.16), transparent 58%),
    radial-gradient(80% 60% at 100% 100%, rgba(184, 135, 27, 0.06), transparent 50%),
    var(--rn-bg);
  --green: var(--rn-blue);
  --green-2: var(--rn-blue-2);
  --green-soft: color-mix(in srgb, var(--rn-blue) 16%, transparent);
  --surface-sunken: #0c1729;
  --border-strong: #385880;
}
html[data-theme="dark"] body {
  background: var(--bg-accent) !important;
  color: var(--rn-ink);
}
html[data-theme="dark"] .top {
  background: color-mix(in srgb, var(--rn-surface) 92%, #0a1424);
  border-bottom-color: var(--rn-line);
  box-shadow: 0 1px 0 rgba(23, 63, 134, 0.2);
}
html[data-theme="dark"] .top::after {
  opacity: 0.75;
  background: linear-gradient(90deg, #1a3d7a 0%, #4576cf 50%, var(--rn-gold-bright) 100%);
}
html[data-theme="dark"] .portal-panel,
html[data-theme="dark"] .sheet,
html[data-theme="dark"] .card,
html[data-theme="dark"] .home-stage,
html[data-theme="dark"] .place-btn,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .nav-more-menu,
html[data-theme="dark"] .plink,
html[data-theme="dark"] .foot,
html[data-theme="dark"] .tabbar,
html[data-theme="dark"] .page-supplement,
html[data-theme="dark"] .method-facts > div,
html[data-theme="dark"] .hub-shell > .place-hero.portal-hero,
html[data-theme="dark"] .hub-shell > .hub-aside,
html[data-theme="dark"] .portal.hub-shell-addon,
html[data-theme="dark"] dialog#picker,
html[data-theme="dark"] .picker-list .pick,
html[data-theme="dark"] .search,
html[data-theme="dark"] .ccard,
html[data-theme="dark"] .note,
html[data-theme="dark"] .days,
html[data-theme="dark"] .side {
  background: var(--rn-surface);
  border-color: var(--rn-line);
  color: var(--rn-ink);
}
html[data-theme="dark"] .place-btn span { color: var(--rn-title); }
html[data-theme="dark"] .brand-ar { color: var(--rn-title); }
html[data-theme="dark"] .nav a,
html[data-theme="dark"] .nav-more-btn { color: var(--rn-muted); }
html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav-more-btn:hover { color: var(--rn-title); }
html[data-theme="dark"] .nav a[aria-current="page"],
html[data-theme="dark"] .nav-more-wrap.is-active .nav-more-btn,
html[data-theme="dark"] .nav-more-wrap.is-open .nav-more-btn {
  color: var(--rn-navy) !important;
}
html[data-theme="dark"] .tabbar a[aria-current="page"] { color: var(--rn-blue) !important; }
html[data-theme="dark"] .table-wrap:not(.world-table) th {
  background: linear-gradient(180deg, #1a3d7a 0%, #173f86 100%);
  color: #f4f7fc;
}
html[data-theme="dark"] .table-wrap td { border-color: var(--rn-line); }
html[data-theme="dark"] .table-wrap tr.is-here td { background: var(--rn-gold-soft); }
html[data-theme="dark"] .exclusive-copy,
html[data-theme="dark"] article.seo-dynamic {
  background: color-mix(in srgb, var(--rn-soft) 75%, var(--rn-surface));
  color: var(--rn-title);
}
html[data-theme="dark"] .mh-countdown-well { box-shadow: var(--rn-btn-shadow); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--rn-surface-2);
  border-color: var(--rn-line);
  color: var(--rn-ink);
}
html[data-theme="dark"] .nav-more-link:hover { background: color-mix(in srgb, var(--rn-blue) 12%, transparent); }

html[data-theme="dark"] .pick,
html[data-theme="dark"] .pick-kw .pick-name {
  color: var(--rn-title);
}
html[data-theme="dark"] .pick {
  background: var(--rn-surface);
  border-color: var(--rn-line);
  box-shadow: none;
}
html[data-theme="dark"] .pick:hover {
  background: var(--rn-soft);
  border-color: color-mix(in srgb, var(--rn-accent-2) 40%, var(--rn-line));
}
html[data-theme="dark"] .pick.is-here {
  border-color: var(--rn-accent-2);
  background: var(--rn-gold-soft);
}
html[data-theme="dark"] .foot-pills a {
  background: var(--rn-surface);
  color: var(--rn-title);
  border-color: var(--rn-line);
  box-shadow: none;
}
html[data-theme="dark"] .foot-pills a:hover {
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
  background: color-mix(in srgb, var(--rn-gold-soft) 65%, var(--rn-surface));
}
html[data-theme="dark"] .foot-menu-k { color: var(--rn-accent-2); }
html[data-theme="dark"] .portal-more-countries {
  background: var(--rn-surface-2);
  color: var(--rn-title);
  border-color: var(--rn-line);
}
html[data-theme="dark"] .portal-more-countries:hover {
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .portal-search,
html[data-theme="dark"] .portal-search input {
  background: var(--rn-surface-2);
  border-color: var(--rn-line);
  color: var(--rn-title);
}
html[data-theme="dark"] .portal-search input::placeholder { color: var(--rn-muted); }
html[data-theme="dark"] .hub-shell > .place-hero.portal-hero,
html[data-theme="dark"] .hub-shell > .hub-aside {
  background: var(--rn-surface) !important;
  border-color: var(--rn-line);
  color: var(--rn-title);
}
html[data-theme="dark"] .hub-shell > .hub-countries.portal-panel {
  background: var(--rn-surface);
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table {
  box-shadow: none;
  border-color: var(--rn-line);
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table td {
  color: var(--rn-ink);
  border-color: var(--rn-line);
  background: var(--rn-surface);
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--rn-soft) 85%, var(--rn-surface));
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table tbody tr:hover td {
  background: color-mix(in srgb, var(--rn-accent-2) 14%, var(--rn-surface));
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table .wt-day-num {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table .wt-cap {
  color: var(--rn-muted);
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table tr.is-here td {
  background: var(--rn-gold-soft);
  color: var(--rn-title);
}
html[data-theme="dark"] .home-imsak-more a,
html[data-theme="dark"] .portal-foot a,
html[data-theme="dark"] .home-country-teaser a {
  color: var(--rn-accent);
}
html[data-theme="dark"] .home-imsak-more a:hover,
html[data-theme="dark"] .portal-foot a:hover {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .section-title {
  border-bottom-color: color-mix(in srgb, var(--rn-line) 80%, var(--rn-accent-2));
}
html[data-theme="dark"] .section-title::before {
  background: linear-gradient(180deg, var(--rn-accent-2), var(--rn-gold));
}

/* إمساكية — ذهبي في الدارك (رأس الجدول + أدوات + تفاصيل فنية) */
html[data-theme="dark"] .imsakiya-sheet {
  background: var(--rn-surface);
  border-color: var(--rn-line);
}
html[data-theme="dark"] .imsakiya-sheet-titles b,
html[data-theme="dark"] .ie-titles h1 {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .imsakiya-tool {
  background: color-mix(in srgb, var(--rn-accent-2) 12%, var(--rn-surface));
  border-color: color-mix(in srgb, var(--rn-accent-2) 55%, var(--rn-line));
  color: var(--rn-accent-2);
  box-shadow: none;
}
html[data-theme="dark"] .imsakiya-tool:hover {
  background: color-mix(in srgb, var(--rn-accent-2) 22%, var(--rn-surface));
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
  transform: translateY(-1px);
}
html[data-theme="dark"] .imsakiya-tool-ic,
html[data-theme="dark"] .imsakiya-tool[data-imsak-png] .imsakiya-tool-ic,
html[data-theme="dark"] .imsakiya-tool[data-imsak-pdf] .imsakiya-tool-ic {
  color: var(--rn-accent-2);
}
/* جداول world-table (عواصم / أذان / إمساكية) — ذهبي موحّد */
html[data-theme="dark"] .table-wrap.world-table th,
html[data-theme="dark"] .world-table-panel .world-table th {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rn-accent-2) 20%, #142033),
    color-mix(in srgb, var(--rn-accent-2) 8%, #0f1928)
  );
  color: var(--rn-accent-2);
  border-bottom: 2px solid var(--rn-accent-2);
  box-shadow: inset 0 -1px 0 rgba(245, 216, 138, 0.12);
}
html[data-theme="dark"] .table-wrap.world-table th .wt-th-in,
html[data-theme="dark"] .table-wrap.world-table th .wt-th-in span,
html[data-theme="dark"] .table-wrap.world-table .wt-th-pray .ic,
html[data-theme="dark"] .world-table-panel .world-table .wt-th-pray .ic {
  color: var(--rn-accent-2);
  stroke: var(--rn-accent-2);
}
html[data-theme="dark"] .table-wrap.world-table .wt-time,
html[data-theme="dark"] .table-wrap.world-table .wt-pray,
html[data-theme="dark"] .world-table-panel .world-table .wt-time,
html[data-theme="dark"] .world-table-panel .world-table .wt-pray {
  color: var(--rn-accent-2);
  font-weight: 800;
}
html[data-theme="dark"] .table-wrap.world-table .wt-pray-ic .ic,
html[data-theme="dark"] .world-table-panel .world-table .wt-pray-ic .ic {
  color: var(--rn-accent-2);
  stroke: var(--rn-accent-2);
  opacity: 0.92;
}
html[data-theme="dark"] .world-table-panel .world-table td {
  color: var(--rn-ink);
  border-color: var(--rn-line);
  background: var(--rn-surface);
}
html[data-theme="dark"] .world-table-panel .world-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--rn-soft) 85%, var(--rn-surface));
}
html[data-theme="dark"] .world-table-panel .world-table tbody tr:hover td {
  background: color-mix(in srgb, var(--rn-accent-2) 14%, var(--rn-surface));
}
html[data-theme="dark"] .world-table-panel .world-table tr.is-here td {
  background: var(--rn-gold-soft);
  color: var(--rn-title);
}
html[data-theme="dark"] .world-table-panel .wt-country a {
  color: var(--rn-title);
  font-weight: 800;
}
html[data-theme="dark"] .world-table-panel .world-table tbody tr:hover .wt-country a {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .world-table-panel .wt-cap {
  color: var(--rn-muted);
  font-weight: 600;
}
html[data-theme="dark"] .world-table-panel .table-wrap {
  box-shadow: none;
  border-color: var(--rn-line);
}
html[data-theme="dark"] .world-table-panel .chips-filter .chip {
  background: var(--rn-surface);
  color: var(--rn-muted);
  border-color: var(--rn-line);
  box-shadow: none;
}
html[data-theme="dark"] .world-table-panel .chips-filter .chip:hover {
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .world-table-panel .chips-filter .chip.is-on {
  background: color-mix(in srgb, var(--rn-accent-2) 16%, var(--rn-surface));
  color: var(--rn-accent-2);
  border-color: var(--rn-accent-2);
  box-shadow: none;
}
html[data-theme="dark"] .world-table-panel .section-title-ic > .ic {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .table-wrap.world-table.imsakiya-table .wt-duration {
  color: color-mix(in srgb, var(--rn-accent-2) 75%, var(--rn-muted));
  font-weight: 700;
}
html[data-theme="dark"] .page-supplement.method-panel,
html[data-theme="dark"] .page-supplement {
  background: var(--rn-surface);
}
html[data-theme="dark"] .method-lede {
  color: var(--rn-title);
  border-color: color-mix(in srgb, var(--rn-accent-2) 25%, var(--rn-line));
  background: color-mix(in srgb, var(--rn-accent-2) 8%, var(--rn-soft));
}
html[data-theme="dark"] .method-lede strong {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .method-more {
  border-color: color-mix(in srgb, var(--rn-accent-2) 45%, var(--rn-line));
  background: var(--rn-surface-2);
}
html[data-theme="dark"] .method-more summary {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .method-more summary::marker {
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .method-more p {
  color: var(--rn-muted);
}
html[data-theme="dark"] .method-facts dd {
  color: var(--rn-accent-2);
}

/* —— Dark: تغطية شاملة (كل السطوح والبطاقات) —— */
html[data-theme="dark"] .portal-panel,
html[data-theme="dark"] .world-table-panel,
html[data-theme="dark"] .place-pick-panel,
html[data-theme="dark"] .note-panel,
html[data-theme="dark"] .plink-panel,
html[data-theme="dark"] .ccard-section,
html[data-theme="dark"] .month-panel,
html[data-theme="dark"] .home-stage,
html[data-theme="dark"] .imsakiya-block,
html[data-theme="dark"] .shell .portal-panel,
html[data-theme="dark"] .method-panel,
html[data-theme="dark"] .hub-shell > .hub-countries.portal-panel,
html[data-theme="dark"] .portal.hub-shell-addon,
html[data-theme="dark"] .imsakiya-sheet,
html[data-theme="dark"] .method-more,
html[data-theme="dark"] .method-facts > div,
html[data-theme="dark"] .plink,
html[data-theme="dark"] .hub-chip,
html[data-theme="dark"] .pick-grid + .portal-empty {
  background: var(--rn-surface) !important;
  background-image: none !important;
  border-color: var(--rn-line);
  color: var(--rn-ink);
}
html[data-theme="dark"] .portal-search,
html[data-theme="dark"] .search,
html[data-theme="dark"] .sn-search,
html[data-theme="dark"] #picker .search,
html[data-theme="dark"] .world-search input {
  background: var(--rn-surface-2) !important;
  border-color: var(--rn-line) !important;
  color: var(--rn-title);
}
html[data-theme="dark"] .portal-search input::placeholder,
html[data-theme="dark"] .search::placeholder {
  color: var(--rn-muted);
}
html[data-theme="dark"] .chips .chip,
html[data-theme="dark"] .chips-filter .chip {
  background: var(--rn-surface-2);
  border-color: var(--rn-line);
  color: var(--rn-muted);
}
html[data-theme="dark"] .chips .chip.is-on,
html[data-theme="dark"] .chips-filter .chip.is-on {
  background: color-mix(in srgb, var(--rn-accent-2) 16%, var(--rn-surface));
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .chips .chip:hover,
html[data-theme="dark"] .chips-filter .chip:hover {
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .tabs {
  background: var(--rn-surface);
  border-color: var(--rn-line);
}
html[data-theme="dark"] .tabs a { color: var(--rn-muted); }
html[data-theme="dark"] .tabs a[aria-current="page"] {
  color: var(--rn-accent-2);
  background: var(--rn-gold-soft);
  border-color: color-mix(in srgb, var(--rn-accent-2) 40%, var(--rn-line));
}
html[data-theme="dark"] .ccard {
  background: var(--rn-surface);
  border-color: var(--rn-line);
  color: var(--rn-ink);
}
html[data-theme="dark"] .ccard:hover {
  background: var(--rn-soft);
  border-color: color-mix(in srgb, var(--rn-accent-2) 35%, var(--rn-line));
}
html[data-theme="dark"] .ccard-body b { color: var(--rn-title); }
html[data-theme="dark"] .table-wrap {
  background: var(--rn-surface);
  border-color: var(--rn-line);
}
html[data-theme="dark"] .table-wrap td {
  color: var(--rn-ink);
  border-color: var(--rn-line);
}
html[data-theme="dark"] dialog,
html[data-theme="dark"] dialog .search {
  background: var(--rn-surface);
  color: var(--rn-ink);
  border-color: var(--rn-line);
}
html[data-theme="dark"] dialog::backdrop {
  background: rgba(4, 10, 22, 0.78);
}
html[data-theme="dark"] .picker-list button {
  color: var(--rn-title);
  border-bottom-color: var(--rn-line);
}
html[data-theme="dark"] .picker-list button:hover {
  background: var(--rn-soft);
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .btn:not(.primary) {
  background: var(--rn-surface-2);
  border-color: var(--rn-line);
  color: var(--rn-title);
}
html[data-theme="dark"] .btn:not(.primary):hover {
  border-color: var(--rn-accent-2);
  color: var(--rn-accent-2);
}
html[data-theme="dark"] .count,
html[data-theme="dark"] .wrap > .count,
html[data-theme="dark"] .sheet > .count,
html[data-theme="dark"] .countdown-page > .count,
html[data-theme="dark"] .countdown-place {
  background: var(--rn-surface) !important;
  background-image: none !important;
  border-color: var(--rn-line);
  color: var(--rn-ink);
}
html[data-theme="dark"] .count-clock .u {
  background: var(--rn-surface-2);
  color: var(--rn-title);
}
html[data-theme="dark"] .facts .fact,
html[data-theme="dark"] .fact {
  background: var(--rn-surface-2);
  border-color: var(--rn-line);
  color: var(--rn-ink);
}
html[data-theme="dark"] .info-text,
html[data-theme="dark"] .foot-sight {
  color: var(--rn-muted);
}
html[data-theme="dark"] .foot-tagline,
html[data-theme="dark"] .foot p {
  color: var(--rn-muted);
}
html[data-theme="dark"] .foot .brand-ar {
  color: var(--rn-title);
}
html[data-theme="dark"] .event {
  background: var(--rn-surface);
  border-color: var(--rn-line);
}
html[data-theme="dark"] .sheet-title,
html[data-theme="dark"] .days {
  background: var(--rn-surface);
  border-color: var(--rn-line);
  color: var(--rn-title);
}
html[data-theme="dark"] .links a {
  color: var(--rn-accent);
}
html[data-theme="dark"] .links a:hover {
  color: var(--rn-accent-2);
}
