/* =====================================================================
   CityTimeHub — style.css  (The Meridian)
   1. Tokens   2. Base   3. Header   4. Hero sky-panel + meridian
   5. Sections / kickers   6. City grid   7. Reference clocks
   8. Prayer   9. Sun   10. Footer   11. Skeleton/motion   12. Responsive
   ===================================================================== */

/* ============ 1. TOKENS ============ */
:root {
  --brand: #2563EB;
  --accent: #38BDF8;
  --maxw: 1180px;
  --pad: clamp(16px, 4vw, 30px);
  --gap: clamp(14px, 2vw, 20px);
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .3, 1);

  /* sky panel is ALWAYS dark in both themes (a viewport into world-night) */
  --sky-0: #0b1120;
  --sky-1: #0e1730;
  --sky-line: rgba(120, 160, 230, .10);
  --sky-text: #eaf1ff;
  --sky-muted: #93a4c8;
}

[data-theme="light"] {
  --bg: #F8FAFC; --bg-soft: #EEF2F8;
  --surface: #FFFFFF; --surface-2: #F1F5F9;
  --text: #0F172A; --text-2: #334155; --muted: #64748B;
  --border: #E2E8F0; --border-2: #CBD5E1;
  --shadow: 0 12px 30px -18px rgba(15, 23, 42, .22);
  --shadow-lg: 0 30px 60px -34px rgba(15, 23, 42, .32);
  --header-bg: rgba(248, 250, 252, .8);
  --skel: #E7EDF4;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #090e1b; --bg-soft: #070b16;
  --surface: #111a30; --surface-2: #0c1426;
  --text: #eaf1ff; --text-2: #c3d0ea; --muted: #8295b7;
  --border: #1e2a44; --border-2: #2c3b5c;
  --shadow: 0 16px 36px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 36px 70px -34px rgba(0, 0, 0, .85);
  --header-bg: rgba(9, 14, 27, .82);
  --skel: #16203a;
  color-scheme: dark;
}

/* ============ 2. BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background .35s var(--ease), color .35s var(--ease);
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
a { color: var(--brand); text-decoration: none; }
svg { display: block; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ 3. HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 20px -8px var(--brand);
}
.brand-text { font-size: 1.14rem; letter-spacing: -.03em; }
.brand-text span { color: var(--brand); }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; flex-wrap: nowrap; }
.main-nav a { color: var(--text-2); font-weight: 600; font-size: .875rem; padding: 8px 9px; border-radius: 9px; white-space: nowrap; transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--surface-2); color: var(--text); }

.header-right { display: flex; align-items: center; gap: 12px; }
.header-utc { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.hu-label { font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--brand); }
.hu-time { font-family: var(--mono); font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 11px; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, color .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: block; }

/* ============ 4. HERO SKY-PANEL ============ */
.hero { padding-block: clamp(20px, 4vw, 38px) clamp(28px, 5vw, 48px); }
.sky-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4.4vw, 52px);
  background: radial-gradient(120% 150% at 50% -20%, #16224a 0%, var(--sky-1) 42%, var(--sky-0) 100%);
  border: 1px solid rgba(120, 160, 230, .18);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.05);
  color: var(--sky-text);
}
.sky-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--sky-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--sky-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}
.sky-stars {
  position: absolute; inset: 0; z-index: -1; opacity: .8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 28% 12%, #cfe0ff, transparent),
    radial-gradient(1.6px 1.6px at 47% 28%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 66% 16%, #bcd0ff, transparent),
    radial-gradient(1.5px 1.5px at 82% 26%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 92% 12%, #d8e6ff, transparent),
    radial-gradient(1.2px 1.2px at 38% 8%, #fff, transparent);
}
.sky-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #bcd2ff;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(120, 160, 230, .12); border: 1px solid rgba(120, 160, 230, .24);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: live 2s infinite; }
@keyframes live { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.5);} 70%{box-shadow:0 0 0 9px transparent;} 100%{box-shadow:0 0 0 0 transparent;} }
.daylight-stat { font-size: .9rem; color: var(--sky-muted); }
.daylight-stat strong { color: #ffd27d; font-weight: 800; font-variant-numeric: tabular-nums; }

.hero-title { font-size: clamp(2.5rem, 7.4vw, 4.6rem); font-weight: 900; letter-spacing: -.04em; }
.hero-title span { background: linear-gradient(100deg, var(--accent), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { margin: 16px 0 24px; max-width: 580px; color: var(--sky-muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }

.search-wrap { position: relative; display: flex; align-items: center; max-width: 520px; }
.search-ico { position: absolute; inset-inline-start: 16px; color: var(--sky-muted); pointer-events: none; }
.search-input {
  width: 100%; font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--sky-text);
  background: rgba(8, 14, 30, .55); border: 1.5px solid rgba(120, 160, 230, .26);
  border-radius: 13px; padding: 15px 18px 15px 48px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.search-input::placeholder { color: #6f82a8; }
.search-input:focus { outline: none; border-color: var(--accent); background: rgba(8, 14, 30, .75); box-shadow: 0 0 0 4px rgba(56, 189, 248, .18); }

/* ---- The Meridian band ---- */
.meridian { position: relative; margin: clamp(32px, 5vw, 52px) 0 8px; height: 132px; }
.meridian-band {
  position: absolute; inset-inline: 0; top: 8px; height: 84px; border-radius: 14px;
  background: #16224a;                       /* replaced live by JS gradient */
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 12px 30px -16px rgba(0,0,0,.7);
  overflow: hidden;
}
.meridian-band::after {  /* soft horizon sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 38%, rgba(0,0,0,.18));
  pointer-events: none;
}
.meridian-sun {
  position: absolute; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #fff 0%, #ffe39a 45%, rgba(255,196,90,.0) 72%);
  box-shadow: 0 0 22px 8px rgba(255, 211, 125, .55);
  transition: left 1s linear; z-index: 3; pointer-events: none;
}
.meridian-pins { position: absolute; inset-inline: 0; top: 8px; height: 84px; z-index: 4; }
.pin { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pin-stem { width: 2px; height: 84px; background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.55)); }
.pin-card {
  position: absolute; top: 50%; transform: translate(-50%, -50%); white-space: nowrap;
  background: rgba(7, 12, 26, .72); border: 1px solid rgba(170, 195, 240, .28);
  border-radius: 9px; padding: 5px 9px; backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); text-align: center;
}
.pin-city { font-size: .68rem; font-weight: 700; color: #eaf1ff; }
.pin-time { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: #ffd27d; font-variant-numeric: tabular-nums; }
.meridian-axis { position: absolute; inset-inline: 0; bottom: 0; height: 18px; }
.axis-tick { position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: .62rem; color: var(--sky-muted); }
.axis-tick::before { content: ""; position: absolute; top: -8px; left: 50%; width: 1px; height: 6px; background: rgba(170,195,240,.3); }

/* ============ 5. SECTIONS ============ */
.section { padding-block: clamp(36px, 6vw, 64px); }
.section-head { margin-bottom: 24px; }
.kicker { display: inline-block; font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.section-head p { margin: 8px 0 0; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ 6. CITY GRID ============ */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: var(--gap); }
.city-card {
  position: relative; display: block; color: inherit; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
  animation: rise .4s var(--ease) both;
}
.city-card::before { /* daylight accent bar, tinted live via --tint */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px;
  background: var(--tint, var(--brand));
}
.city-card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.city-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.city-name { font-weight: 700; font-size: 1.04rem; }
.city-country { color: var(--muted); font-size: .8rem; }
.city-daynight { font-size: 1rem; line-height: 1; }
.city-time { font-size: 1.78rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .3px; margin: 10px 0 2px; }
.city-date { color: var(--text-2); font-size: .84rem; font-family: var(--mono); }
.city-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .74rem; color: var(--muted); }
.city-coords { font-family: var(--mono); }
.city-offset { font-family: var(--mono); font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); padding: 2px 9px; border-radius: 999px; }
.no-results { text-align: center; color: var(--muted); padding: 44px 0; font-weight: 600; }

/* ============ 7. REFERENCE CLOCKS ============ */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.ref-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.ref-card--you { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.ref-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ref-time { display: block; font-family: var(--mono); font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: 10px 0 4px; }

/* ============ 8. PRAYER ============ */
.city-picker select { font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 11px; padding: 11px 14px; cursor: pointer; min-width: 200px; transition: border-color .2s; }
.city-picker select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.datebar { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; margin-bottom: 22px; }
.datebar-item { font-size: .95rem; }
.datebar-sep { width: 1px; height: 18px; background: var(--border-2); }
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.prayer-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 12px; box-shadow: var(--shadow); text-align: center; animation: rise .4s var(--ease) both; transition: transform .22s var(--ease), border-color .22s; }
.prayer-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.prayer-card.is-next { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); box-shadow: var(--shadow-lg); }
.prayer-name { font-weight: 700; font-size: .92rem; color: var(--text-2); }
.prayer-card.is-next .prayer-name { color: var(--brand); }
.prayer-time { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 6px; }
.prayer-tag { display: block; margin-top: 6px; font-size: .64rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .1em; min-height: 13px; }

/* ============ 9. SUN ============ */
.sun-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.sun-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.sun-ico { font-size: 1.6rem; line-height: 1; }
.sun-rise { background: linear-gradient(180deg, color-mix(in srgb, #F59E0B 13%, var(--surface)), var(--surface)); }
.sun-set  { background: linear-gradient(180deg, color-mix(in srgb, #6366F1 13%, var(--surface)), var(--surface)); }

/* ============ 10. FOOTER ============ */
.site-footer { margin-top: 24px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 30px; }
.footer-brand { margin-inline-end: auto; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-2); font-weight: 600; font-size: .9rem; }
.footer-nav a:hover { color: var(--brand); }
.copyright { flex-basis: 100%; margin: 8px 0 0; }

/* ============ 11. SKELETON / MOTION ============ */
.skeleton { position: relative; overflow: hidden; background: var(--skel); border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 22%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
.prayer-skel { height: 112px; }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============ 12. RESPONSIVE / A11Y ============ */
@media (max-width: 980px) { .prayer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .ref-grid, .sun-grid { grid-template-columns: 1fr; }
  .meridian { height: 116px; }
  .pin-city { display: none; }            /* keep pins readable on small screens */
}
@media (max-width: 540px) {
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .city-grid { grid-template-columns: 1fr; } }

/* ============ CITY PAGE ============ */
.breadcrumb { padding-top: clamp(14px, 2.5vw, 22px); font-size: .86rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); }
.breadcrumb a { color: var(--text-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li[aria-current] { color: var(--text); font-weight: 700; }
.breadcrumb .sep { color: var(--border-2); }

.city-hero { color: var(--sky-text); transition: background 1s linear; }
.city-hero .eyebrow { color: #ffe0a8; background: rgba(255,210,125,.12); border-color: rgba(255,210,125,.28); }
.city-eyebrow-icon { font-size: .85rem; }
.city-hero-title { font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 900; letter-spacing: -.035em; }
.city-clock {
  font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(3.4rem, 12vw, 6.4rem); line-height: 1; letter-spacing: -.02em;
  margin: 6px 0 10px; text-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.city-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: rgba(255,255,255,.82); font-weight: 500; }
.city-hero-meta .mono { color: #fff; }

.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.fact-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact-value { font-family: var(--mono); font-size: 1.16rem; font-weight: 700; margin-top: 6px; word-break: break-word; }

@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .facts-grid { grid-template-columns: 1fr; } }

.city-card--static { cursor: default; }
.city-card--static:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ===================== Compare Cities nav + mobile menu + tools card ===================== */
.site-header { position: relative; }
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.tool-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .2s var(--ease), border-color .2s; }
.tool-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.tool-ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.tool-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.tool-cta { display: inline-block; margin-top: 10px; color: var(--brand); font-weight: 700; font-size: .9rem; }

@media (max-width: 900px) {
  .header-utc { display: none; }
  .nav-burger { display: grid; place-items: center; width: 40px; height: 40px; margin-inline-start: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 11px; cursor: pointer; }
  .main-nav {
    display: none; position: absolute; top: calc(100% + 6px); inset-inline: 12px; margin: 0;
    flex-direction: column; gap: 2px; padding: 8px; z-index: 60;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
  }
  .main-nav a { display: block; padding: 12px 14px; border-radius: 9px; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
}

/* ===================== Directory search (section landing pages) ===================== */
.dir-search { position: relative; max-width: 520px; margin: 0 0 14px; }
.dir-search-ico { position: absolute; inset-inline-start: 15px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.dir-search-input { width: 100%; font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 16px 13px 46px; transition: border-color .2s, box-shadow .2s; }
.dir-search-input::placeholder { color: var(--text-2); }
.dir-search-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
#dirCount { margin: 0 0 16px; }

/* ===================== Compare Cities — interactive tool ===================== */
.compare-form { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 14px; align-items: end; }
.cmp-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cmp-field label { font-size: .82rem; font-weight: 700; color: var(--text-2); }
.ac { position: relative; }
.ac-input { width: 100%; font-family: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; }
.ac-input::placeholder { color: var(--text-2); }
.ac-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.ac-list { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.ac-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 9px; cursor: pointer; }
.ac-item.is-active, .ac-item:hover { background: var(--surface-2); }
.ac-name { font-weight: 600; color: var(--text); }
.ac-country { font-size: .82rem; color: var(--text-2); }
.ac-empty { padding: 12px; color: var(--text-2); font-size: .9rem; }

.swap-btn { display: grid; place-items: center; width: 44px; height: 46px; align-self: end; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 12px; cursor: pointer; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.swap-btn:hover { border-color: var(--brand); color: var(--brand); transform: rotate(180deg); }

.btn-primary { font-family: inherit; font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); border: none; border-radius: 12px; padding: 14px 22px; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.cmp-btn { align-self: end; height: 46px; }

.cmp-error { margin: 14px 0 0; padding: 12px 16px; border-radius: 11px; background: color-mix(in srgb, #e5484d 12%, var(--surface)); border: 1px solid color-mix(in srgb, #e5484d 35%, var(--border)); color: #c0353a; font-weight: 600; font-size: .92rem; }

.cmp-result { margin-top: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); animation: cmpIn .35s var(--ease); }
@keyframes cmpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cmp-head h2 { margin: 0 0 4px; font-size: 1.3rem; }
.cmp-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 20px 0; }
.cmp-card { display: flex; flex-direction: column; gap: 3px; text-align: center; padding: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.cmp-city { font-weight: 800; font-size: 1.05rem; }
.cmp-clock { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); margin: 4px 0 2px; }
.cmp-zone { font-size: .78rem; color: var(--text-2); }
.cmp-diff { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cmp-diff-val { font-family: var(--mono); font-weight: 800; font-size: 1.2rem; color: var(--text); padding: 8px 12px; border: 1px dashed var(--border); border-radius: 10px; }
.cmp-facts p { margin: 0 0 10px; color: var(--text); line-height: 1.6; font-size: .95rem; }
.cmp-facts strong { color: var(--text); }
.cmp-permalink { margin: 6px 0 0; }
.cmp-permalink a { color: var(--brand); font-weight: 700; font-size: .92rem; }

.recent { margin-top: 26px; }
.recent-title { margin: 0 0 12px; font-size: 1rem; }
.recent-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.recent-chip { font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.recent-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--surface-2); }

@media (max-width: 760px) {
  .compare-form { grid-template-columns: 1fr; }
  .swap-btn { justify-self: center; width: 46px; transform: rotate(90deg); }
  .swap-btn:hover { transform: rotate(270deg); }
  .cmp-btn { width: 100%; }
  .cmp-cards { grid-template-columns: 1fr; }
  .cmp-diff { flex-direction: row; gap: 10px; justify-content: center; }
  .cmp-clock { font-size: 1.7rem; }
}

/* ===================== Compare page — day/night + meeting planner ===================== */
.city-daynight { display: flex; align-items: center; gap: 7px; margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.dn-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-2) 18%, transparent); }
.dn--morning .dn-dot { background: #f59e0b; box-shadow: 0 0 0 3px #f59e0b30; }
.dn--afternoon .dn-dot { background: #eab308; box-shadow: 0 0 0 3px #eab30830; }
.dn--evening .dn-dot { background: #f97316; box-shadow: 0 0 0 3px #f9731630; }
.dn--night .dn-dot { background: #6366f1; box-shadow: 0 0 0 3px #6366f130; }
.dn--morning .dn-label, .dn--afternoon .dn-label, .dn--evening .dn-label, .dn--night .dn-label { color: var(--text); }
.dn-date { font-weight: 500; }

.mp-title { margin: 24px 0 12px; font-size: 1.05rem; }
.mp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.mp-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; margin-bottom: 8px; }
.mp-name { font-size: .85rem; font-weight: 700; color: var(--text); text-align: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-track { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 30px; }
.mp-cell { background: var(--surface-2); border-radius: 3px; }
.mp-cell.mp-a { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); }
.mp-cell.mp-b { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.mp-cell.mp-both { background: #16a34a; }
.mp-ticks { display: flex; justify-content: space-between; font-size: .68rem; color: var(--text-2); font-family: var(--mono); }
.mp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 4px; font-size: .82rem; color: var(--text-2); }
.mp-key { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.mp-key.mp-a { background: color-mix(in srgb, var(--brand) 55%, var(--surface)); }
.mp-key.mp-b { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.mp-key.mp-both { background: #16a34a; }

@media (max-width: 600px) {
  .mp-row { grid-template-columns: 64px 1fr; gap: 8px; }
  .mp-name { font-size: .75rem; }
  .mp-track { height: 26px; gap: 1px; }
}

/* ===================== Static information pages (about/contact/privacy/terms) ===================== */
.legal-page { padding-block: clamp(20px, 4vw, 40px) clamp(40px, 7vw, 80px); }
.container-narrow { max-width: 760px; }
.legal-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 14px 0 8px; letter-spacing: -0.02em; }
.prose { color: var(--text); line-height: 1.75; font-size: 1.02rem; }
.prose h2 { font-size: 1.25rem; font-weight: 800; margin: 32px 0 10px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { margin: 0 0 9px; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose .muted { color: var(--text-2); }

/* ===================== Educational explainer blocks (under tools) ===================== */
.explainer-section { padding-block: clamp(28px, 5vw, 52px); border-top: 1px solid var(--border); }
.explainer-title { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin: 0 0 14px; letter-spacing: -0.01em; }
.explainer-section .prose { font-size: 1rem; }
.explainer-faq { margin-top: 24px; }
.explainer-faq-title { font-size: 1.1rem; margin: 0 0 12px; }

/* ===================== FAQ (details/summary) — used across FAQ & explainer sections ===================== */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--brand); line-height: 1; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > p { margin: 0; padding: 0 0 18px; color: var(--text-2); line-height: 1.65; }

/* ===================== Homepage "Browse all cities" link ===================== */
.browse-all { margin: 22px 0 0; text-align: center; }
.browse-all-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; color: var(--brand); text-decoration: none; padding: 11px 22px; border: 1.5px solid var(--border); border-radius: 999px; transition: border-color .2s, background .2s, gap .2s; }
.browse-all-link:hover { border-color: var(--brand); background: var(--surface-2); gap: 11px; }

/* ===================== PWA install prompt (non-intrusive, dismissible) ===================== */
.pwa-install { position: fixed; z-index: 200; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, 160%); opacity: 0; display: flex; align-items: center; gap: 12px; max-width: min(440px, calc(100vw - 24px)); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px -14px rgba(0,0,0,.55); padding: 12px 12px 12px 16px; transition: transform .35s var(--ease), opacity .35s; }
.pwa-install.is-shown { transform: translate(-50%, 0); opacity: 1; }
.pwa-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.pwa-text { font-size: .9rem; font-weight: 600; line-height: 1.3; }
.pwa-go { flex: none; font-family: inherit; font-weight: 700; font-size: .88rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); border: none; border-radius: 10px; padding: 9px 16px; cursor: pointer; transition: transform .15s var(--ease); }
.pwa-go:hover { transform: translateY(-1px); }
.pwa-x { flex: none; width: 30px; height: 30px; border: none; background: transparent; color: var(--text-2); font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.pwa-x:hover { background: var(--surface-2); color: var(--text); }
@media (min-width: 720px) { .pwa-install { left: 20px; transform: translate(0, 160%); } .pwa-install.is-shown { transform: translate(0, 0); } }

/* ===================== My Cities (favorites) ===================== */
.city-card { position: relative; }
.fav-star { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--text-2); cursor: pointer; transition: color .18s, background .18s, transform .18s var(--ease); }
.fav-star:hover { background: var(--surface-2); color: #f5a623; transform: scale(1.08); }
.fav-star.is-fav { color: #f5a623; }
.fav-star:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.city-name { padding-inline-end: 30px; }
#myCities .kicker { color: #f5a623; }

.cth-toast { position: fixed; z-index: 300; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%); background: var(--text); color: var(--surface); font-size: .9rem; font-weight: 600; padding: 12px 20px; border-radius: 11px; box-shadow: 0 14px 36px -10px rgba(0,0,0,.5); opacity: 0; transition: transform .3s var(--ease), opacity .3s; pointer-events: none; max-width: calc(100vw - 32px); }
.cth-toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ===================== Favorite star inside directory link-list (/cities/) ===================== */
.link-list li.has-fav:not([hidden]) { display: flex; align-items: center; gap: 8px; }
.link-list li.has-fav > a { flex: 1 1 auto; min-width: 0; }
.link-list li.has-fav .fav-star { position: static; flex: none; width: 32px; height: 32px; }

/* ===================== Event Planner tool ===================== */
.planner-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.pl-field { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.pl-field.pl-grow { flex: 1 1 200px; }
.pl-field label { font-size: .82rem; font-weight: 700; color: var(--text-2); }
.pl-input { font-family: inherit; font-size: .95rem; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 12px; width: 100%; }
.pl-input:focus { outline: none; border-color: var(--brand); }
.planner-add { margin-top: 16px; position: relative; max-width: 380px; }
.planner-add > label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.pl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 14px; font-size: .9rem; font-weight: 600; }
.pl-chip-x { border: none; background: transparent; color: var(--text-2); cursor: pointer; font-size: 1.2rem; line-height: 1; width: 22px; height: 22px; border-radius: 50%; }
.pl-chip-x:hover { background: var(--border); color: var(--text); }

.pl-result { margin-top: 22px; overflow-x: auto; }
.pl-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pl-table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 8px 12px; border-bottom: 1.5px solid var(--border); }
.pl-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pl-table tr.pl-home td { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.pl-c { font-weight: 700; white-space: nowrap; }
.pl-cc { display: block; font-size: .78rem; font-weight: 500; color: var(--text-2); }
.pl-t { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 9px; vertical-align: middle; }
.pl-ok { background: #2ecc71; } .pl-warn { background: #f5a623; } .pl-bad { background: #5b6b8c; }
.pl-day { display: inline-block; font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-inline-start: 8px; vertical-align: middle; }
.pl-day.next { background: rgba(56,132,255,.16); color: #6aa3ff; }
.pl-day.prev { background: rgba(245,166,35,.16); color: #f0a020; }
.pl-base { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin-inline-start: 8px; }
.pl-legend { margin-top: 12px; font-size: .82rem; color: var(--text-2); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-ghost { font-family: inherit; font-weight: 700; font-size: .9rem; color: var(--text); background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.btn-ghost:hover { border-color: var(--brand); background: var(--surface); }

/* ===================== Guides (articles) ===================== */
.guide-head { margin-bottom: 26px; }
.guide-title { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; }
.guide-dek { font-size: 1.12rem; color: var(--text-2); line-height: 1.5; margin: 0 0 14px; }
.guide-meta { font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.guide-body { font-size: 1.04rem; line-height: 1.75; }
.guide-body h2 { margin-top: 2em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.prose th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); padding: 10px 12px; border-bottom: 1.5px solid var(--border); }
.prose td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:hover { background: var(--surface-2); }

.guide-related { margin: 36px 0 8px; padding: 20px 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.guide-related-title { margin: 0 0 12px; font-size: 1.05rem; }
.guide-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.guide-related a { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .95rem; color: var(--brand); text-decoration: none; padding: 10px 16px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; transition: border-color .2s, gap .2s; }
.guide-related a:hover { border-color: var(--brand); gap: 10px; }
.guide-faq { margin-top: 36px; }

.guide-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.guide-card a { display: block; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.guide-card a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.guide-card h2 { font-size: 1.15rem; margin: 0 0 8px; line-height: 1.3; }
.guide-card p { font-size: .92rem; color: var(--text-2); line-height: 1.55; margin: 0 0 14px; }
.guide-card-meta { font-size: .82rem; font-weight: 700; color: var(--brand); }

/* ===================== Prayer city search (autocomplete) ===================== */
.city-picker { min-width: 240px; max-width: 340px; width: 100%; }
.prayer-ac { width: 100%; }

/* ===================== i18n: language switcher + RTL ===================== */
.lang-switch { display: inline-flex; align-items: center; font-weight: 700; font-size: .9rem; color: var(--text); text-decoration: none; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px; transition: border-color .2s, background .2s; white-space: nowrap; }
.lang-switch:hover { border-color: var(--brand); background: var(--surface-2); }

/* Arabic / RTL: nicer system Arabic fonts, comfortable line-height */
[dir="rtl"] body, body[dir="rtl"], html[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Naskh Arabic", "Noto Sans Arabic", Arial, sans-serif; }
html[dir="rtl"] .prose { line-height: 1.95; }
html[dir="rtl"] .prose h2 { letter-spacing: 0; }
/* keep the UTC clock and any forced-LTR numerals readable in RTL */
html[dir="rtl"] .hu-time, html[dir="rtl"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }

/* ===================== Your local time — panel + analog clock ===================== */
.lt-section { padding-top: 14px; }
.lt-panel {
  display: flex; align-items: center; gap: clamp(20px, 5vw, 56px);
  padding: clamp(20px, 4vw, 34px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 12% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    var(--bg-soft);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent), 0 18px 50px -34px color-mix(in srgb, var(--brand) 60%, transparent);
}
.lt-analog { width: clamp(140px, 34vw, 196px); aspect-ratio: 1; flex: none; }
.lt-svg { width: 100%; height: 100%; display: block; }
.lt-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lt-info .eyebrow { margin-bottom: 2px; }
.lt-city {
  font-size: clamp(1.5rem, 4.5vw, 2.4rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em; margin: 0; color: var(--text);
}
.lt-time {
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 800; line-height: 1;
  letter-spacing: .01em; color: var(--text);
  background: linear-gradient(92deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lt-meta { color: var(--muted); font-size: .95rem; margin: 2px 0 0; }
@media (max-width: 620px) {
  .lt-panel { flex-direction: column; text-align: center; gap: 18px; }
  .lt-info { align-items: center; }
}

/* Lean hero for directory / tool / index pages (no meridian to fill the panel) */
.sky-panel--lean { padding: clamp(22px, 3.4vw, 38px) clamp(24px, 4.4vw, 48px); }
.sky-panel--lean .hero-title { font-size: clamp(1.9rem, 5vw, 3.1rem); }
.sky-panel--lean .hero-desc { margin: 14px 0 0; max-width: 680px; }

/* ===================== Best Time to Call ===================== */
.btc-form { display: flex; flex-direction: column; gap: 16px; }
.btc-controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.btc-ac { position: relative; }
.btc-controls .btc-ac { flex: 1 1 260px; }
.btc-addwrap { position: relative; max-width: 420px; }
.btc-ctx-label { display: block; font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.btc-ctx-btns { display: inline-flex; gap: 6px; }
.btc-ctx-btn {
  font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
  padding: 10px 16px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); transition: all .15s;
}
.btc-ctx-btn:hover { border-color: var(--border-2); color: var(--text); }
.btc-ctx-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.btc-result { margin-top: 22px; }
.btc-empty { padding: 20px 0; }

.btc-golden {
  border-radius: 18px; padding: 20px 24px; margin-bottom: 20px;
  background: linear-gradient(120deg, var(--brand), var(--accent)); color: #fff;
  box-shadow: 0 18px 44px -28px var(--brand);
}
.btc-golden-eyebrow { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.btc-golden-main { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 4px 0 12px; }
.btc-golden-time { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.btc-golden-sub { font-size: 1rem; font-weight: 600; opacity: .92; }
.btc-golden-cities { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.btc-gt { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); padding: 5px 11px; border-radius: 999px; font-size: .9rem; }
.btc-gt-city { font-weight: 600; }
.btc-gt-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.btc-gt-time.btc-bad { opacity: .7; }

.btc-grid { display: flex; flex-direction: column; gap: 8px; }
.btc-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.btc-rowlabel { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.btc-rowcity { font-weight: 700; font-size: .92rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btc-rowsub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btc-band { display: flex; gap: 2px; }
.btc-cell { flex: 1; height: 28px; border-radius: 3px; background: var(--surface-2); }
.btc-good { background: #10b981; }
.btc-ok   { background: #f59e0b; }
.btc-bad  { background: #475569; }
.btc-cell.is-golden { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); position: relative; z-index: 1; }
.btc-ticksrow { margin: 0 0 5px; }
.btc-ticks { position: relative; height: 16px; }
.btc-ticks-lbl { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.btc-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.btc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .85rem; color: var(--text-2); }
.btc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.btc-dot { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.btc-actions { margin-top: 18px; }
@media (max-width: 560px) {
  .btc-row { grid-template-columns: 78px 1fr; gap: 7px; }
  .btc-cell { height: 38px; border-radius: 4px; touch-action: manipulation; }
  .btc-ctx-btns { flex-wrap: wrap; }
  .btc-readout { font-size: .88rem; padding: 9px 11px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); }
  .btc-tick { font-size: .66rem; }
}

/* Best Time to Call — readout line + hovered column */
.btc-readout { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-bottom: 14px; font-size: .92rem; color: var(--text-2); min-height: 24px; }
.btc-ro-from { font-weight: 700; color: var(--text); }
.btc-ro-from b, .btc-ro-item b { font-variant-numeric: tabular-nums; }
.btc-ro-eq { color: var(--muted); margin: 0 3px; font-weight: 700; }
.btc-ro-item b.btc-good { color: #10b981; background: none; }
.btc-ro-item b.btc-ok { color: #d97706; background: none; }
.btc-ro-item b.btc-bad { color: var(--muted); background: none; }
.btc-ro-sep { color: var(--border-2); }
.btc-cell.is-hovercol { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); position: relative; z-index: 2; }

/* ===================== Prayer Clock ===================== */
.pc-form { margin-top: 4px; }
.pc-inputs { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.pc-ac { position: relative; flex: 1 1 240px; }
.pc-sync { margin: 18px 0 0; font-size: 1rem; font-weight: 600; color: var(--text-2); min-height: 24px; }
.pc-clocks { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 48px); justify-content: center; margin-top: 18px; }
.pc-slot { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pc-clock { width: clamp(170px, 42vw, 240px); aspect-ratio: 1; }
.pc-svg { width: 100%; height: 100%; display: block; }
.pc-info { margin-top: 14px; }
.pc-city { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--text); }
.pc-now { margin: 4px 0 0; }
.pc-time { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.pc-cc { color: var(--muted); font-size: .9rem; margin-inline-start: 6px; }
.pc-next { margin: 8px 0 0; font-size: .98rem; color: var(--text-2); }
.pc-next-k { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-inline-end: 4px; }
.pc-next strong { color: var(--text); }
.pc-count { color: var(--accent); font-weight: 700; }
.pc-actions { margin-top: 22px; text-align: center; }
@media (max-width: 560px) {
  .pc-clocks { gap: 28px; }
  .pc-slot { flex-basis: 100%; max-width: 100%; }
}

/* ===================== Prayer Widget builder ("get the code") ===================== */
.wb-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.wb-controls { display: flex; flex-direction: column; gap: 16px; }
.wb-ac { position: relative; }
.wb-preview { display: flex; flex-direction: column; gap: 8px; }
.wb-preview-k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.wb-frame { width: 360px; max-width: 100%; height: 520px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); }
.wb-code { margin-top: 26px; }
.wb-code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.wb-code-head label { font-weight: 700; color: var(--text); }
.wb-codebox { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); color: var(--text); resize: vertical; }
.wb-copy { white-space: nowrap; }
.pc-embed-cta { margin: 18px 0 0; text-align: center; font-size: .96rem; }
.pc-embed-cta a { color: var(--brand); font-weight: 700; }
@media (max-width: 760px) { .wb-grid { grid-template-columns: 1fr; } .wb-frame { width: 100%; } }
