/* falakbin.ir/moon and /sun (MoonPages, SunPages). Loaded after public.css
   and pages.css. The crescent map reuses quakes.css's outline of Iran. */

/* ---- Shared with the sky pages (sky.css, sat.css are not loaded here) ------------- */
.flk-sk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
@media (max-width: 860px) { .flk-sk-two { grid-template-columns: minmax(0, 1fr); } }
.flk-sk-hero-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.flk-sk-hero-tools [hidden], .flk-sec-head [data-city-open][hidden] { display: none; }

/* ---- The Moon tonight ------------------------------------------------------ */
.flk-mn-hero { display: grid; grid-template-columns: minmax(220px, 400px) minmax(0, 1fr) minmax(0, 260px); gap: 18px 28px; align-items: center; margin: 22px 0 14px; padding: 24px 26px;
    border-radius: 24px; border: 1px solid var(--line);
    background: radial-gradient(520px 320px at 88% 10%, rgba(143, 176, 255, .14), transparent 70%), radial-gradient(480px 300px at 12% 90%, rgba(34, 179, 173, .12), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-mn-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flk-mn-disc { display: block; width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(220, 232, 240, .06) 0%, transparent 70%); }
.flk-mn-orient { margin: 0; }
.flk-mn-orient .flk-chip { cursor: pointer; font: inherit; font-size: .8rem; }
.flk-mn-text { min-width: 0; }
.flk-mn-text h1 { margin: 6px 0 4px; font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 900; line-height: 1.3; }
.flk-mn-text h1 [data-city-name] { color: var(--teal-ink); }
.flk-mn-big { margin: 4px 0 2px; font-size: 1.1rem; color: var(--muted); }
.flk-mn-big b { font-size: 2.2rem; font-weight: 900; color: var(--fg); font-variant-numeric: tabular-nums; }
.flk-mn-big span { color: var(--fg); font-weight: 700; }
.flk-mn-dates { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.flk-mn-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 0 0 14px; }
.flk-mn-figs div { min-width: 0; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); }
.flk-mn-figs dt { color: var(--muted); font-size: .72rem; }
.flk-mn-figs dd { margin: 2px 0 0; font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.flk-mn-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }
.flk-mn-photo { margin: 0; align-self: start; }
.flk-mn-photo img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line-soft); background: #000; }
.flk-mn-photo figcaption { margin-top: 6px; color: var(--muted); font-size: .76rem; line-height: 1.8; }
@media (max-width: 1100px) { .flk-mn-hero { grid-template-columns: minmax(200px, 340px) minmax(0, 1fr); } .flk-mn-photo { grid-column: 1 / -1; max-width: 360px; justify-self: center; } }
@media (max-width: 760px) {
    .flk-mn-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; }
    .flk-mn-stage { max-width: 320px; margin: 0 auto; width: 100%; }
    .flk-mn-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- The thirty nights ------------------------------------------------------ */
.flk-mn-strip { list-style: none; margin: 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.flk-mn-night { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); text-align: center; font-size: .74rem; color: var(--muted); }
.flk-mn-night canvas { width: 64px; height: 64px; margin-bottom: 4px; }
.flk-mn-night b { color: var(--fg); font-size: .8rem; }
.flk-mn-night small { margin-top: 2px; color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.flk-mn-tonight { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); }
.flk-mn-first .flk-mn-hijri { color: var(--orange-ink); font-weight: 800; }
.flk-mn-hijri { white-space: nowrap; }
.flk-mn-star { color: var(--orange-ink); font-weight: 800; }
.flk-mn-phases { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--muted); }
.flk-mn-phases b { color: var(--fg); margin-inline-end: 4px; }

/* ---- The crescent ---------------------------------------------------------------- */
.flk-mn-cres .flk-tabs { margin: 0 0 14px; width: max-content; max-width: 100%; }
.flk-mn-cres .flk-tabs[hidden] { display: none; }
.flk-mn-cres-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 26px; align-items: start; }
@media (max-width: 860px) { .flk-mn-cres-grid { grid-template-columns: minmax(0, 1fr); } }
.flk-mn-map { margin: 0; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.flk-mn-map-box { position: relative; aspect-ratio: 865 / 800; }
.flk-mn-map-box svg, .flk-mn-map-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.flk-mn-map-wait { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
.flk-mn-map-wait[hidden] { display: none; }
.flk-mn-k-n { background: var(--seq-4); }
.flk-mn-k-m { background: var(--seq-3); }
.flk-mn-k-o { background: var(--seq-2); }
.flk-mn-k-x { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.flk-mn-eve[hidden] { display: none; }
.flk-mn-eve h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 850; }
.flk-mn-teh { margin: 0 0 12px; line-height: 2.05; font-size: .93rem; }
.flk-mn-teh .flk-mn-tag { margin-inline-end: 6px; }
.flk-mn-mine { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--orange-soft); font-weight: 750; font-size: .9rem; }
.flk-mn-tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.flk-mn-tag-n { background: var(--seq-4); color: #032a2e; border-color: transparent; }
.flk-mn-tag-m { background: var(--seq-3); color: #032a2e; border-color: transparent; }
.flk-mn-tag-o { background: var(--seq-2); color: #ffffff; border-color: transparent; }
:root[data-theme="light"] .flk-mn-tag-n, :root[data-theme="light"] .flk-mn-tag-m { color: #ffffff; }
:root[data-theme="light"] .flk-mn-tag-o { color: #04353d; }
.flk-mn-groups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .88rem; line-height: 1.9; color: var(--muted); }

/* ---- Events, the gallery ------------------------------------------------------------ */
.flk-mn-events { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flk-mn-events li { padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.flk-mn-events b { font-weight: 850; }
.flk-mn-events p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.9; }
.flk-mn-ev-day { display: block; color: var(--orange-ink); font-size: .76rem; font-weight: 800; }
.flk-mn-ev-away { opacity: .7; }
.flk-mn-h3 { margin: 20px 0 10px; font-size: 1rem; font-weight: 850; }
.flk-mn-gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.flk-mn-gallery figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.flk-mn-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #000; }
.flk-mn-gallery figcaption { padding: 8px 12px 10px; font-size: .82rem; color: var(--muted); line-height: 1.8; }
.flk-mn-gallery figcaption b { color: var(--fg); }
.flk-mn-gallery a { color: inherit; text-decoration: none; }
.flk-mn-gallery video { display: block; width: 100%; height: auto; background: #000; }

/* ---- The Sun today ----------------------------------------------------------- */
.flk-sn-hero { display: grid; grid-template-columns: minmax(220px, 420px) minmax(0, 1fr); gap: 18px 28px; align-items: center; margin: 22px 0 14px; padding: 24px 26px; border-radius: 24px; border: 1px solid var(--line);
    background: radial-gradient(560px 320px at 15% 20%, rgba(255, 140, 26, .16), transparent 70%), radial-gradient(500px 280px at 90% 100%, rgba(34, 179, 173, .1), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-sn-hero-solo { grid-template-columns: minmax(0, 1fr); }
.flk-sn-one { max-width: 760px; }
.flk-sn-photo { margin: 0; }
.flk-sn-photo img { display: block; width: 100%; height: auto; border-radius: 20px; background: #000; }
.flk-sn-photo figcaption { margin-top: 6px; color: var(--muted); font-size: .76rem; }
.flk-sn-text { min-width: 0; }
.flk-sn-text h1 { margin: 6px 0 2px; font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 900; line-height: 1.3; }
.flk-sn-note { margin: 0 0 14px; padding: 10px 14px; border-inline-start: 3px solid var(--orange); background: var(--orange-soft); border-radius: 10px; line-height: 2; font-size: .95rem; }
.flk-sn-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flk-sn-figs small, .flk-sn-city small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.flk-sn-flare { font-weight: 850; }
.flk-sn-flare-m { color: var(--warn); }
.flk-sn-flare-x { color: var(--bad); }
@media (max-width: 860px) { .flk-sn-hero { grid-template-columns: minmax(0, 1fr); padding: 18px 16px; } .flk-sn-photo { max-width: 360px; justify-self: center; } .flk-sn-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.flk-sn-safety { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 22px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--warn); background: rgba(255, 194, 71, .1); font-size: .9rem; line-height: 2; }
.flk-sn-safety .flk-i { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--warn); }

.flk-sn-scales { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .flk-sn-scales { grid-template-columns: minmax(0, 1fr); } }
.flk-sn-scale { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--seq-3); }
.flk-sn-scale.flk-sn-warn { border-top-color: var(--warn); }
.flk-sn-scale.flk-sn-bad { border-top-color: var(--bad); }
.flk-sn-scale-head { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.flk-sn-scale-head b { font-size: 1.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.flk-sn-scale-head span { font-weight: 800; }
.flk-sn-scale-now { margin: 2px 0 6px; font-weight: 700; color: var(--teal-ink); }
.flk-sn-warn .flk-sn-scale-now { color: var(--warn); }
.flk-sn-bad .flk-sn-scale-now { color: var(--bad); }
.flk-sn-scale-what { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.9; }
.flk-sn-g { display: inline-block; min-width: 2.4em; padding: 0 8px; border-radius: 999px; text-align: center; font-weight: 850; font-size: .78rem; background: var(--teal-soft); color: var(--teal-ink); }
.flk-sn-g.flk-sn-warn { background: rgba(255, 194, 71, .18); color: var(--warn); }
.flk-sn-g.flk-sn-bad { background: rgba(255, 107, 93, .18); color: var(--bad); }
.flk-sn-days { margin-bottom: 16px; }

.flk-sn-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.flk-sn-charts .flk-sn-chart:first-child { grid-column: 1 / -1; }
@media (max-width: 860px) { .flk-sn-charts { grid-template-columns: minmax(0, 1fr); } }
.flk-sn-chart { margin: 0; padding: 14px 14px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.flk-sn-chart figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.flk-sn-chart figcaption b { font-size: .95rem; font-weight: 850; }
.flk-sn-chart figcaption span { color: var(--muted); font-size: .8rem; }
.flk-sn-empty { margin: 30px 0; text-align: center; }
.flk-chart-bar.flk-sn-bar-warn { fill: var(--warn); }
.flk-chart-bar.flk-sn-bar-bad { fill: var(--bad); }
.flk-chart-bar.flk-sn-bar-ahead { fill-opacity: .45; }
.flk-sn-band { fill: transparent; }
.flk-sn-band-m { fill: rgba(255, 194, 71, .06); }
.flk-sn-band-x { fill: rgba(255, 107, 93, .07); }
.flk-sn-stem { stroke: var(--c1); stroke-width: 1.5; stroke-opacity: .55; }
.flk-sn-stem-m { stroke: var(--warn); }
.flk-sn-stem-x { stroke: var(--bad); }
.flk-sn-dot { fill: var(--c1); stroke: var(--surface); stroke-width: 2; }
.flk-sn-dot-m { fill: var(--warn); }
.flk-sn-dot-x { fill: var(--bad); }
.flk-sn-line { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; }
.flk-sn-today { fill: var(--orange); stroke: var(--surface); stroke-width: 2; }
.flk-sn-path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.flk-sn-path-today { stroke: var(--orange); stroke-width: 2.6; }
.flk-sn-path-jun { stroke: var(--c1); }
.flk-sn-path-dec { stroke: var(--c3); }
.flk-sn-key i.flk-sn-path-today { background: var(--orange); }
.flk-sn-key i.flk-sn-path-jun { background: var(--c1); }
.flk-sn-key i.flk-sn-path-dec { background: var(--c3); }
.flk-qz-key.flk-sn-key i { border-radius: 3px; height: 4px; width: 16px; }
.flk-sn-sunnow { fill: #ffc247; stroke: var(--orange); stroke-width: 2; }
.flk-sn-city { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
@media (max-width: 760px) { .flk-sn-city { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flk-sn-two { gap: 14px; }
.flk-sn-seasons { margin-top: 14px; }
.flk-sn-video { display: block; width: 100%; max-width: 560px; height: auto; border-radius: 18px; background: #000; }
.flk-mn-map-base { pointer-events: none; }
.flk-mn-tag-x { background: transparent; color: var(--muted); }
.flk-mn-ev-lunar { border-inline-start: 3px solid var(--c6); }
.flk-sn-flare-c { color: var(--fg); }
.flk-sn-flare-a, .flk-sn-flare-b { color: var(--muted); }
.flk-sn-scale.flk-sn-ok, .flk-sn-g.flk-sn-ok { border-top-color: var(--seq-3); }

/* ---- The Sun's archive (SunArchivePages): the months' chart and list, one month's days ---- */
.flk-sa-headline { margin: 2px 0 8px; color: var(--orange); font-weight: 800; }
.flk-sa-figs { margin-top: 4px; }
.flk-sa-days { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.flk-sa-days figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); }
.flk-sa-days img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #000; }
.flk-sa-days a { display: block; }
.flk-sa-noimg { display: grid; place-items: center; aspect-ratio: 1; background: #000; color: var(--muted); }
.flk-sa-noimg .flk-i { width: 34px; height: 34px; }
.flk-sa-days figcaption { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px 8px; font-size: .76rem; color: var(--muted); line-height: 1.7; }
.flk-sa-days figcaption b { color: var(--fg); font-size: .8rem; }
.flk-sa-kp { font-variant-numeric: tabular-nums; font-weight: 700; }
.flk-sa-kp-warn { color: var(--warn); }
.flk-sa-kp-bad { color: var(--bad); }
.flk-sa-chart { margin: 0 0 22px; padding: 14px 16px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.flk-sa-chart svg { display: block; width: 100%; height: auto; }
.flk-sa-bar { fill: var(--c1); }
.flk-sa-bar-storm { fill: var(--orange); }
.flk-sa-chart a:hover .flk-sa-bar { opacity: .75; }
.flk-sa-chart figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.flk-sa-months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.flk-sa-months a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--fg); text-decoration: none; }
.flk-sa-months a:hover { border-color: var(--teal); }
.flk-sa-months b { font-weight: 850; }
.flk-sa-months span { font-size: .85rem; line-height: 1.8; }
.flk-sa-months small { color: var(--muted); font-size: .76rem; }
.flk-sa-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 4px; }
.flk-sa-pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--fg); }
.flk-sa-pager a:hover { border-color: var(--teal); }
.flk-sa-pager small { color: var(--muted); font-size: .76rem; }
.flk-sa-prev { grid-column: 1; }
.flk-sa-next { grid-column: 2; text-align: left; }
.flk-sa-credit { color: var(--muted); font-size: .78rem; }
