/* falakbin.ir/sky and /calendar (SkyPages). Loaded after public.css and
   pages.css. The dome is a canvas (fb-skyview.js); the night bar an SVG it
   draws, whose twilight steps and rows are classed here. */

/* ---- Head ---------------------------------------------------------------- */
.flk-sk-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 22px 0 12px; padding: 24px 26px 20px; border-radius: 24px; border: 1px solid var(--line);
    background: radial-gradient(700px 280px at 85% 0%, rgba(57, 135, 229, .16), transparent 70%), radial-gradient(600px 240px at 10% 100%, rgba(34, 179, 173, .14), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-sk-hero-text { flex: 1 1 420px; min-width: 0; }
.flk-sk-hero h1 { margin: 6px 0 8px; font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 900; line-height: 1.3; }
.flk-sk-hero h1 [data-city-name] { color: var(--teal-ink); }
.flk-sk-hero-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.flk-sk-hero-tools [hidden] { display: none; }

/* ---- The app --------------------------------------------------------------- */
.flk-sk-app { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 14px 16px 12px; box-shadow: var(--shadow); }
.flk-sk-bar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.flk-sk-nights { display: flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 14px; padding: 2px; }
.flk-sk-tonight { font: inherit; font-size: .88rem; font-weight: 800; color: var(--fg); background: none; border: 0; padding: 6px 10px; cursor: pointer; border-radius: 10px; white-space: nowrap; }
.flk-sk-tonight:hover { background: var(--teal-soft); }
.flk-sk-flip { transform: scaleX(-1); }
.flk-sk-opts { margin-inline-start: auto; }
.flk-sk-opts .flk-chip { cursor: pointer; font: inherit; font-size: .8rem; }
.flk-sk-opts .flk-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.flk-sk-opts .flk-chip[aria-pressed="false"] { color: var(--muted); }
.flk-sk-stage { position: relative; width: 100%; height: min(78vh, 760px); min-height: 380px; border-radius: 18px; overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #0e2238 0%, #071222 70%, #040a14 100%); }
.flk-sk-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.flk-sk-wait { position: absolute; inset: 0; margin: 0; padding: 16px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; color: #9fb8c8; font-size: .9rem; }
.flk-sk-ready .flk-sk-wait { display: none; }
.flk-sk-zoom { position: absolute; bottom: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; }
.flk-sk-zoom .flk-icon-btn { background: rgba(4, 12, 24, .7); color: #e7f5f3; border: 1px solid rgba(147, 184, 182, .25); }
.flk-sk-zoom .flk-icon-btn:hover { background: rgba(14, 63, 69, .9); }
.flk-sk-look { position: absolute; top: 12px; inset-inline: 12px; margin: 0; padding: 6px 12px; border-radius: 12px; background: rgba(4, 12, 24, .72); color: #e7f5f3; font-size: .82rem; text-align: center; pointer-events: none; }
.flk-sk-look[hidden] { display: none; }
.flk-sk-time { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.flk-sk-time .flk-range { flex: 1; }
.flk-sk-time output { min-width: 9rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .9rem; }
.flk-sk-info { margin: 6px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.9; min-height: 3.8em; }
.flk-sk-info b { color: var(--fg); }
@media (max-width: 640px) {
    .flk-sk-app { padding: 10px 8px; border-radius: 18px; }
    .flk-sk-stage { height: 92vw; min-height: 320px; max-height: 70vh; }
    .flk-sk-opts { margin-inline-start: 0; }
    .flk-sk-time output { min-width: 6.4rem; font-size: .82rem; }
}

/* ---- The night bar and the cards ------------------------------------------------- */
.flk-sk-nightbar { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
.flk-sk-bar { display: block; width: 100%; height: auto; }
.flk-sk-tw-day { fill: #3f6b9c; } .flk-sk-tw-civil { fill: #2c4f7d; } .flk-sk-tw-naut { fill: #1c3459; }
.flk-sk-tw-astro { fill: #121f3a; } .flk-sk-tw-night { fill: #0a1222; }
.flk-sk-hour { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.flk-sk-rowname { fill: #e7f5f3; font-size: 12.5px; font-weight: 700; }
.flk-sk-seg { fill-opacity: .9; }
.flk-sk-seg-moon { fill: #e8ecf6; } .flk-sk-seg-mercury { fill: #d8cfc0; } .flk-sk-seg-venus { fill: #fff4c8; } .flk-sk-seg-mars { fill: #ff8a5c; } .flk-sk-seg-jupiter { fill: #f5dca8; } .flk-sk-seg-saturn { fill: #eed58a; }
.flk-sk-best { fill: #ff8c1a; stroke: #0a1222; stroke-width: 2; }
.flk-sk-now { stroke: #ff6b5d; stroke-width: 1.5; stroke-dasharray: 3 3; }
.flk-sk-cursor { stroke: #ff8c1a; stroke-width: 2; }
.flk-sk-cards { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.flk-sk-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.flk-sk-card-off { opacity: .62; }
.flk-sk-sym { flex: none; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--c, var(--orange-ink)); font-size: 1.3rem; }
.flk-sk-card h3 { margin: 0 0 2px; font-size: .98rem; font-weight: 850; }
.flk-sk-card p { margin: 0; font-size: .82rem; line-height: 1.8; }
.flk-sk-when { color: var(--fg); }
.flk-sk-meta { color: var(--muted); }
.flk-sk-bot { margin-top: 4px !important; padding: 4px 8px; border-radius: 8px; background: var(--orange-soft); color: var(--fg); }
.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-soon { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flk-sk-soon a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.flk-sk-soon a:hover { border-color: var(--teal); color: var(--fg); }
.flk-sk-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

/* ---- The calendar --------------------------------------------------------------- */
.flk-cal-hero { align-items: stretch; }
.flk-cal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 !important; }
.flk-cal-next { flex: 0 1 340px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--glass); border: 1px solid rgba(255, 140, 26, .45); color: var(--fg); text-decoration: none; }
.flk-cal-next:hover { border-color: var(--orange); color: var(--fg); }
.flk-cal-next small { color: var(--orange-ink); font-weight: 800; font-size: .76rem; }
.flk-cal-next b { font-size: 1.15rem; font-weight: 900; line-height: 1.6; }
.flk-cal-next span { color: var(--muted); font-size: .84rem; }
.flk-cal-count .flk-rel { color: var(--orange-ink); font-weight: 800; font-size: 1.05rem; }
.flk-cal-filters { margin: 4px 0 6px; }
.flk-cal-filters[hidden] { display: none; }
.flk-cal-filters .flk-chip { cursor: pointer; font: inherit; font-size: .84rem; }
.flk-cal-filters .flk-chip[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.flk-cal-filters .flk-chip[aria-pressed="false"] { color: var(--muted); }
.flk-cal-month { margin: 22px 0 0; }
.flk-cal-month[hidden] { display: none; }
.flk-cal-month h2 { position: sticky; top: var(--top-h); z-index: 2; margin: 0 0 8px; padding: 6px 0; font-size: 1.15rem; font-weight: 900; color: var(--orange-ink); background: var(--bg); }
:root[data-theme="light"] .flk-cal-month h2 { background: var(--bg); }
.flk-cal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.flk-cal-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.flk-cal-item[hidden] { display: none; }
.flk-cal-major { border-color: rgba(255, 140, 26, .45); background: linear-gradient(90deg, var(--surface) 70%, var(--orange-soft)); }
.flk-cal-past { opacity: .55; }
.flk-cal-day { flex: none; width: 3.2rem; display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.flk-cal-day b { font-size: 1.35rem; font-weight: 900; }
.flk-cal-day small { color: var(--muted); font-size: .7rem; }
.flk-cal-body { flex: 1; min-width: 0; }
.flk-cal-body h3 { margin: 0; font-size: .98rem; font-weight: 850; line-height: 1.6; }
.flk-cal-body h3 a { color: var(--fg); text-decoration: none; }
.flk-cal-body h3 a:hover { color: var(--teal-ink); }
.flk-cal-body p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.85; }
.flk-cal-time { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.flk-cal-badge { flex: none; font-size: .72rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; background: var(--orange); color: var(--on-orange); }
.flk-cal-badge-no { background: var(--surface-2); color: var(--muted); }
.flk-cal-ico-moon, .flk-cal-ico-planet, .flk-cal-ico-season { color: var(--teal-ink); }
.flk-cal-ico-eclipse { background: var(--orange-soft); color: var(--orange-ink); }
.flk-cal-ico-meteor { color: #9085e9; }
.flk-cal-ico-launch { color: #3987e5; }
.flk-cal-src { margin-top: 20px; }
@media (max-width: 560px) { .flk-cal-item { gap: 8px; padding: 9px 10px; } .flk-cal-item .flk-hm-icon { display: none; } }
/* A year's and a month's pages (/calendar/<year>, /calendar/<year>/<MM>; docs/plans/observe-and-almanac.md, 1.3). */
.flk-cal-years { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: .86rem; color: var(--muted); }
.flk-cal-years > span { display: inline-flex; align-items: center; gap: 4px; margin-inline-end: 4px; }
.flk-cal-years .flk-chip { font-weight: 800; }
.flk-cal-years b.flk-chip { border-color: var(--orange); color: var(--orange-ink); }
.flk-cal-filters small { color: var(--muted); font-weight: 600; }
.flk-cal-sub { margin: 10px 0; padding: 12px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.flk-cal-sub summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 900; }
.flk-cal-sub > p { margin: 8px 0; font-size: .86rem; line-height: 1.9; }
.flk-cal-sub ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flk-cal-sub li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.flk-cal-sub li div { display: flex; flex-direction: column; min-width: 0; }
.flk-cal-sub li small { color: var(--muted); font-size: .8rem; }
.flk-cal-sub li p { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.flk-cal-sub .flk-btn { padding: 4px 12px; font-size: .82rem; }
.flk-cal-ptime, .flk-cal-printnote { display: none; }
.flk-cal-citybar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 4px; font-size: .88rem; color: var(--muted); }
.flk-cal-citybar[hidden] { display: none; }
.flk-cal-citybar b { color: var(--fg); }
.flk-cal-citybar .flk-btn { padding: 2px 12px; font-size: .82rem; }
.flk-cal-body .flk-cal-local { margin: 2px 0 0; color: var(--teal-ink); font-size: .82rem; line-height: 1.8; }
.flk-cal-body .flk-cal-local[hidden] { display: none; }
.flk-cal-local-city { font-weight: 800; }
.flk-cal-month h2 a { color: inherit; text-decoration: none; }
.flk-cal-month h2 a:hover { text-decoration: underline; }
.flk-cal-more { margin: 8px 0 0; font-size: .86rem; }
.flk-cal-more a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-ink); font-weight: 800; text-decoration: none; }
.flk-cal-stats { flex: 0 1 360px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.flk-cal-stats div { padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.flk-cal-stats dt { color: var(--muted); font-size: .76rem; font-weight: 700; }
.flk-cal-stats dd { margin: 0; font-size: 1.35rem; font-weight: 900; color: var(--orange-ink); line-height: 1.5; }
.flk-cal-stats dd small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.flk-cal-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 18px 0 6px; }
.flk-cal-mgrid a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.flk-cal-mgrid a:hover { border-color: var(--teal); }
.flk-cal-mgrid b { font-size: 1.05rem; font-weight: 900; }
.flk-cal-mgrid small { color: var(--muted); font-size: .78rem; }
.flk-cal-prevm .flk-i { transform: scaleX(-1); }
.flk-cal-gridwrap { margin: 14px 0 6px; }
.flk-cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.flk-cal-grid th { padding: 4px 2px; color: var(--muted); font-size: .76rem; font-weight: 800; text-align: center; }
.flk-cal-grid td { height: 92px; padding: 6px; vertical-align: top; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.flk-cal-grid td.flk-cal-blank { background: none; border-color: transparent; }
.flk-cal-grid td.flk-cal-has { border-color: var(--surface-2); }
.flk-cal-grid td.flk-cal-today { border-color: var(--orange); }
.flk-cal-dnum { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 3px; }
.flk-cal-dnum b { font-size: 1.05rem; font-weight: 900; }
.flk-cal-dnum small { color: var(--muted); font-size: .68rem; }
.flk-cal-ph { display: inline-block; width: 14px; height: 14px; margin: 0 0 3px; border-radius: 50%; border: 1px solid var(--muted); vertical-align: middle; }
.flk-cal-ph-0 { background: var(--bg-2); }
.flk-cal-ph-1 { background: linear-gradient(to right, var(--bg-2) 50%, #e8ecf6 50%); }
.flk-cal-ph-2 { background: #e8ecf6; }
.flk-cal-ph-3 { background: linear-gradient(to right, #e8ecf6 50%, var(--bg-2) 50%); }
.flk-cal-chip { display: block; margin-top: 3px; padding: 1px 6px; border-radius: 7px; background: var(--surface-2); color: var(--fg); font-size: .68rem; font-weight: 700; line-height: 1.7;
    text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flk-cal-chip[hidden] { display: none; }
.flk-cal-chip:hover { color: var(--teal-ink); }
.flk-cal-chip.is-major { background: var(--orange-soft); color: var(--orange-ink); }
.flk-cal-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.flk-cal-box { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.flk-cal-box h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 1.02rem; font-weight: 900; }
.flk-cal-box p, .flk-cal-box li { margin: 0 0 4px; font-size: .88rem; line-height: 1.95; }
.flk-cal-box ul { margin: 0 0 4px; padding-inline-start: 18px; }
.flk-cal-boxlink a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-ink); font-weight: 800; text-decoration: none; }
@media (max-width: 560px) {
    .flk-cal-grid { border-spacing: 2px; }
    .flk-cal-grid td { height: 58px; padding: 3px; }
    .flk-cal-grid th { font-size: 0; }
    .flk-cal-grid th::first-letter { font-size: .72rem; }
    .flk-cal-dnum small { display: none; }
    /* The chips become dots on a phone; the list under the grid has the words. */
    .flk-cal-chip { display: inline-block; width: 8px; height: 8px; margin: 2px 1px 0; padding: 0; border-radius: 50%; font-size: 0; background: var(--teal); }
    .flk-cal-chip.is-major { background: var(--orange); }
    .flk-cal-stats { flex-basis: auto; }
}
.flk-ev-occ { background: radial-gradient(600px 260px at 90% 0%, rgba(232, 236, 246, .16), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ev-transit, .flk-ev-kaaba { background: radial-gradient(600px 260px at 90% 0%, rgba(255, 197, 107, .2), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }

/* ---- One event ---------------------------------------------------------------- */
.flk-ev-hero { display: flex; gap: 22px; align-items: flex-start; margin: 14px 0 12px; padding: 24px 26px; border-radius: 24px; border: 1px solid var(--line);
    background: radial-gradient(600px 260px at 90% 0%, rgba(255, 140, 26, .16), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ev-lunar { background: radial-gradient(600px 260px at 90% 0%, rgba(200, 90, 60, .2), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ev-opposition, .flk-ev-pair, .flk-ev-elongation { background: radial-gradient(600px 260px at 90% 0%, rgba(245, 220, 168, .16), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
/* Each kind of event its own light: the Sun's eclipse and the seasons warm, the Moon's full face silver. */
.flk-ev-solar, .flk-ev-season { background: radial-gradient(600px 260px at 90% 0%, rgba(255, 197, 107, .2), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ev-phase { background: radial-gradient(600px 260px at 90% 0%, rgba(232, 236, 246, .16), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ev-meteor { background: radial-gradient(600px 260px at 90% 0%, rgba(144, 133, 233, .2), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ev-icon { flex: none; width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); }
.flk-ev-icon .flk-i { width: 52px; height: 52px; stroke-width: 1.4; }
.flk-ev-text { flex: 1; min-width: 0; }
.flk-ev-hero h1 { margin: 2px 0 6px; font-size: clamp(1.45rem, 3.8vw, 2.2rem); font-weight: 900; line-height: 1.4; }
.flk-ev-when { margin: 0; }
.flk-ev-count { margin: 4px 0 8px; font-size: 1.3rem; font-weight: 900; color: var(--orange-ink); }
.flk-ev-count .flk-rel { color: var(--orange-ink); }
.flk-ev-local { margin: 0 0 14px; padding: 14px 18px; border-radius: 18px; background: var(--teal-soft); border: 1px solid var(--line); }
.flk-ev-local[hidden] { display: none; }
.flk-ev-local h2 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 900; display: flex; align-items: center; gap: 6px; }
.flk-ev-local p { margin: 0 0 4px; line-height: 1.95; }
.flk-ev-local [hidden] { display: none; }
.flk-ev-dot { stroke: rgba(3, 24, 28, .7); stroke-width: 1.5; }
.flk-ev-s1 { fill: #1a6f72; } .flk-ev-s2 { fill: #1f938f; } .flk-ev-s3 { fill: #33b8b1; } .flk-ev-s4 { fill: #78dbd3; } .flk-ev-s5 { fill: #c0f5ef; }
.flk-ev-dotlabel { fill: #03181c; font-size: 11px; font-weight: 800; pointer-events: none; }
.flk-ev-up { fill: #ff8c1a; } .flk-ev-down { fill: #557174; fill-opacity: .6; }
.flk-ev-k-up, .flk-ev-k-down { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.flk-ev-k-up { background: #ff8c1a; } .flk-ev-k-down { background: #557174; }
.flk-ev-safe { margin: 18px 0 0; padding: 16px 20px; border-radius: 18px; background: rgba(255, 107, 93, .1); border: 1px solid rgba(255, 107, 93, .45); }
.flk-ev-safe h2 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 900; display: flex; align-items: center; gap: 8px; color: var(--bad); }
.flk-ev-safe ul { margin: 0; padding: 0 1.1rem 0 0; }
.flk-ev-safe li { margin: 4px 0; line-height: 1.95; }
.flk-ev-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--teal-soft); font-size: .9rem; line-height: 1.9; }
@media (max-width: 560px) { .flk-ev-hero { flex-direction: column; padding: 20px 16px; } .flk-ev-icon { width: 64px; height: 64px; border-radius: 18px; } .flk-ev-icon .flk-i { width: 36px; height: 36px; } }
/* Iran's places to observe from (/observe, ObservePages; docs/plans/observe-and-almanac.md, phase 2). One colour a kind, the site's chart series. */
.flk-ob-observatory { fill: var(--c1); background: var(--c1); }
.flk-ob-planetarium { fill: var(--c2); background: var(--c2); }
.flk-ob-club { fill: var(--c3); background: var(--c3); }
.flk-ob-dark_site { fill: var(--c4); background: var(--c4); }
.flk-ob-historic { fill: var(--c5); background: var(--c5); }
.flk-ob-dot { stroke: rgba(3, 24, 28, .75); stroke-width: 1.5; }
[data-ob-dot] { cursor: pointer; }
[data-ob-dot].is-off { display: none; }
.flk-ob-near { fill: var(--muted); fill-opacity: .7; }
.flk-ob-here { stroke: var(--fg); stroke-width: 3; }
.flk-ob-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.flk-ob-legend span { display: inline-flex; align-items: center; gap: 5px; }
.flk-ob-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.flk-ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 640px; overflow-y: auto; }
.flk-ob-item { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.flk-ob-item[hidden] { display: none; }
.flk-ob-body { flex: 1; min-width: 0; }
.flk-ob-body h2 { margin: 0; font-size: .96rem; font-weight: 850; line-height: 1.6; }
.flk-ob-body h2 a { color: var(--fg); text-decoration: none; }
.flk-ob-body h2 a:hover { color: var(--teal-ink); }
.flk-ob-body p { margin: 0; color: var(--muted); font-size: .82rem; }
.flk-ob-km { color: var(--teal-ink); font-weight: 700; }
.flk-ob-badge { background: var(--teal); color: var(--bg); }
.flk-ob-ico-observatory, .flk-ob-ico-planetarium, .flk-ob-ico-club, .flk-ob-ico-dark_site, .flk-ob-ico-historic { color: var(--teal-ink); }
.flk-ob-hero { background: radial-gradient(600px 260px at 90% 0%, rgba(57, 135, 229, .16), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ob-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin: 8px 0; }
.flk-ob-mini { margin: 0; }
.flk-ob-sources { margin: 18px 0 4px; font-size: .86rem; }
.flk-ob-sources h2 { font-size: 1rem; font-weight: 900; margin: 0 0 4px; }
.flk-ob-sources ol { margin: 0 0 6px; padding-inline-start: 20px; line-height: 2; }
@media (max-width: 760px) { .flk-ob-main { grid-template-columns: 1fr; } .flk-ob-list { max-height: none; } }
/* A reader's suggestion on /observe (observe_suggest, fb-submit.js). */
.flk-sub-box { margin: 16px 0; }
.flk-sub-form { margin: 8px 0 0; }
.flk-sub-form .flk-sub-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.flk-sub-form .flk-sub-body[hidden] { display: none; }
.flk-sub-form .flk-sub-body > p { grid-column: 1 / -1; margin: 0; font-size: .86rem; line-height: 1.9; }
.flk-sub-form label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; font-weight: 700; min-width: 0; }
.flk-sub-form label i { font-style: normal; font-weight: 500; color: var(--muted); }
.flk-sub-form .flk-sub-wide { grid-column: 1 / -1; }
.flk-sub-form input, .flk-sub-form select, .flk-sub-form textarea { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; font-weight: 500; }
.flk-sub-form input:focus, .flk-sub-form select:focus, .flk-sub-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.flk-sub-form .flk-sub-status { margin: 10px 0 6px; }
.flk-sub-form .flk-sub-check { flex-direction: row; align-items: center; gap: 8px; align-self: end; }
.flk-sub-form .flk-sub-check input { width: auto; }
.flk-cal-ico-public { color: var(--c3); }
/* Readers' observing reports (SiteSightings, phase 5). */
.flk-cal-boxsub { margin: 10px 0 4px; font-size: .92rem; font-weight: 900; }
.flk-cal-reports { margin: 0 0 6px; padding-inline-start: 18px; font-size: .86rem; line-height: 1.9; }
.flk-cal-reports small { color: var(--muted); }
.flk-ev-told { margin: 14px 0; }
.flk-cal-box .flk-sub-box { margin: 10px 0; }
@media (max-width: 560px) { .flk-sub-form .flk-sub-body { grid-template-columns: 1fr; } }

/* The calendar's year on two A4 sheets (the year page's «چاپ» button): last in the file, so it wins over the screen rules above. */
@media print {
    @page { size: A4; margin: 11mm 10mm; }
    .flk-side, .flk-subnav, .flk-cal-sub, .flk-cal-filters, .flk-cal-citybar, .flk-cal-years, .flk-cal-actions, .flk-cal-mgrid, .flk-cal-more,
    .flk-cal-hl, .flk-cal-src, .flk-hm-icon, .flk-cal-badge, .flk-cal-local, .flk-cal-body p, .flk-cal-day small, .flk-pg-lead, .flk-kicker, .flk-cal-gridwrap, .flk-cal-boxes { display: none !important; }
    .flk-page { display: block !important; }
    body, main, .flk-pg-hero, .flk-cal-item, .flk-cal-month h2, .flk-cal-stats div { background: #fff !important; color: #000 !important; box-shadow: none !important; }
    .flk-pg-hero { margin: 0 0 4mm; padding: 0; border: 0; }
    .flk-pg-hero h1 { margin: 0; font-size: 17pt; }
    .flk-cal-printnote { display: block; margin: 0 0 3mm; font-size: 8pt; color: #444; }
    .flk-cal-stats { display: flex; flex-wrap: wrap; gap: 2mm; flex-basis: auto; }
    .flk-cal-stats div { display: flex; align-items: baseline; gap: 1mm; padding: .5mm 2mm; border: .2mm solid #999; border-radius: 0; }
    .flk-cal-stats dd, .flk-cal-stats dt, .flk-cal-stats small { display: inline; color: #000 !important; font-size: 8pt; line-height: 1.4; }
    .flk-cal-months { column-count: 2; column-gap: 7mm; }
    .flk-cal-month { margin: 0 0 2mm; break-inside: auto; }
    .flk-cal-month h2 { position: static; margin: 1mm 0; padding: 0; font-size: 10pt; color: #000 !important; break-after: avoid; }
    .flk-cal-month h2 a { color: #000; }
    .flk-cal-list { gap: 0; }
    .flk-cal-item { gap: 2mm; padding: .4mm 0; border: 0; border-bottom: .2mm solid #ccc; border-radius: 0; break-inside: avoid; opacity: 1 !important; }
    .flk-cal-day { width: 6mm; flex-direction: row; }
    .flk-cal-day b { font-size: 8pt; }
    .flk-cal-body h3 { font-size: 8pt; font-weight: 700; line-height: 1.5; }
    .flk-cal-body h3 a { color: #000; }
    .flk-cal-ptime { display: inline; margin-inline-end: 1.5mm; font-variant-numeric: tabular-nums; color: #333; }
    .flk-cal-major .flk-cal-body h3 { font-weight: 900; }
}
