/* falakbin.ir: the public pages. Its own sheet, nothing shared with the panel.
   Dark (the night sky in deep teal) is the default; [data-theme="light"] on
   <html> is the reader's own choice, kept in localStorage. Orange is spent
   sparingly: one main action per section and the "live" mark. */
@font-face {
    font-family: "Vazirmatn";
    src: url("/a/vazirmatn.f7f9cf1a.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

/* ---- Tokens ---------------------------------------------------------- */
:root {
    color-scheme: dark;
    --bg: #03181c;
    --bg-2: #062429;
    --surface: #0a2e34;
    --surface-2: #0f3b42;
    --line: #1a4e56;
    --line-soft: #12424a;
    --fg: #e7f5f3;
    --muted: #93b8b6;
    --teal: #22b3ad;
    --teal-hi: #3fcac3;
    --teal-ink: #6fe0d8;
    --teal-soft: #0e3f45;
    --teal-deep: #04353d;
    --on-teal: #03181c;
    --orange: #ff8c1a;
    --orange-hi: #ffa040;
    --orange-ink: #ffb054;
    --orange-soft: #3a2a14;
    --on-orange: #1a0d00;
    --ok: #3ccf91;
    --warn: #ffc247;
    --bad: #ff6b5d;
    --glass: rgba(3, 24, 28, .94);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .28);
    --glow: 0 0 0 1px rgba(34, 179, 173, .35), 0 10px 32px rgba(34, 179, 173, .14);
    /* Charts (validated with the dataviz checks on --surface, 2026-10-02): six
       series hues in this fixed order, never cycled; a one-hue teal ramp for
       amounts, low to high. Text never wears these; it stays in --fg/--muted. */
    --c1: #14a39d; --c2: #e0700a; --c3: #3987e5; --c4: #c98500; --c5: #d55181; --c6: #9085e9;
    --seq-1: #1a6f72; --seq-2: #1f938f; --seq-3: #33b8b1; --seq-4: #78dbd3; --seq-5: #c0f5ef;
    /* Names the older pages use. */
    --accent: var(--teal-ink);
    --accent-soft: var(--teal-soft);
    --gold: var(--orange-hi);
    --radius: 16px;
    --radius-sm: 10px;
    --frame: 1180px;
    --top-h: 68px;
    --tab-h: 62px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f8f8;
    --bg-2: #e8f2f2;
    --surface: #ffffff;
    --surface-2: #e2eef0;
    --line: #d3e4e5;
    --line-soft: #e3eeee;
    --fg: #10262a;
    --muted: #4e6a6d;
    --teal: #0a5a66;
    --teal-hi: #0c6d7b;
    --teal-ink: #0a5a66;
    --teal-soft: #e2eef0;
    --on-teal: #ffffff;
    --orange: #ff8c1a;
    --orange-hi: #ff9d3a;
    --orange-ink: #b45309;
    --orange-soft: #fff0df;
    --ok: #1c9b74;
    --warn: #c27c0e;
    --bad: #c8423b;
    --glass: rgba(242, 248, 248, .95);
    --shadow: 0 1px 2px rgba(4, 53, 61, .06), 0 6px 20px rgba(4, 53, 61, .06);
    --glow: 0 0 0 1px rgba(10, 90, 102, .25), 0 10px 28px rgba(10, 90, 102, .1);
    --c1: #008e8a; --c2: #e0700a; --c3: #2a78d6; --c4: #b88200; --c5: #d4507f; --c6: #4a3aa7;
    --seq-1: #7cbdbd; --seq-2: #4fa3a1; --seq-3: #1f8584; --seq-4: #0b5d68; --seq-5: #04353d;
    --gold: var(--orange-ink);
}

/* ---- Base ------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--top-h) + 12px); }
body {
    margin: 0;
    color: var(--fg);
    font: 16px/1.9 "Vazirmatn", Tahoma, sans-serif;
    min-height: 100vh;
    position: relative;
}
/* A faint field of stars and a teal glow at the top: only at night. One small
   SVG tile that scrolls with the page; a fixed layer of gradients stalled painting. */
html {
    background-image:
        radial-gradient(1200px 520px at 70% -120px, rgba(34, 179, 173, .16), transparent 70%),
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='520' fill='%23fff'><circle cx='170' cy='81' r='1.1' fill-opacity='0.25'/><circle cx='41' cy='278' r='0.7' fill-opacity='0.7'/><circle cx='34' cy='264' r='0.5' fill-opacity='0.25'/><circle cx='226' cy='40' r='0.5' fill-opacity='0.7'/><circle cx='221' cy='427' r='0.5' fill-opacity='0.35'/><circle cx='327' cy='302' r='0.5' fill-opacity='0.7'/><circle cx='304' cy='29' r='0.6' fill-opacity='0.25'/><circle cx='289' cy='72' r='0.8' fill-opacity='0.35'/><circle cx='281' cy='296' r='1' fill-opacity='0.35'/><circle cx='57' cy='296' r='0.6' fill-opacity='0.45'/><circle cx='54' cy='369' r='1' fill-opacity='0.25'/><circle cx='321' cy='258' r='1' fill-opacity='0.55'/><circle cx='402' cy='242' r='0.8' fill-opacity='0.45'/><circle cx='157' cy='411' r='1.1' fill-opacity='0.35'/><circle cx='46' cy='158' r='0.8' fill-opacity='0.45'/><circle cx='377' cy='151' r='0.5' fill-opacity='0.25'/><circle cx='266' cy='88' r='0.7' fill-opacity='0.35'/><circle cx='482' cy='220' r='1.1' fill-opacity='0.25'/><circle cx='395' cy='297' r='0.7' fill-opacity='0.45'/><circle cx='360' cy='308' r='1' fill-opacity='0.55'/><circle cx='39' cy='52' r='0.7' fill-opacity='0.55'/><circle cx='361' cy='37' r='1.1' fill-opacity='0.45'/><circle cx='335' cy='512' r='0.8' fill-opacity='0.45'/><circle cx='371' cy='458' r='0.7' fill-opacity='0.25'/><circle cx='486' cy='186' r='1' fill-opacity='0.25'/><circle cx='257' cy='116' r='0.7' fill-opacity='0.35'/><circle cx='300' cy='120' r='1' fill='%23ffdcb4' fill-opacity='.6'/></svg>");
    background-repeat: no-repeat, repeat;
    background-size: 100% 900px, 520px 520px;
}
:root[data-theme="light"] { background-image: none; }
a { color: var(--accent); }
a:hover { color: var(--teal-hi); }
h1, h2, h3 { line-height: 1.5; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(255, 140, 26, .35); }
.pub-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pub-skip { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 50; background: var(--orange); color: var(--on-orange); padding: 6px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.pub-skip:focus { top: 8px; }
.pub-i { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.25em; }
.pub-mark { width: 36px; height: 36px; flex: none; }
.pub-muted { color: var(--muted); font-size: .9em; }
.pub-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Frame: header, menu, phone bar, footer -------------------------- */
.pub-top {
    position: sticky; top: 0; z-index: 30; height: var(--top-h);
    background: var(--glass);
    border-bottom: 1px solid var(--line-soft);
}
.pub-top-in { max-width: var(--frame); height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 22px; }
/* The brand stands apart from the menu. */
.pub-top .pub-brand { padding-inline-end: 22px; border-inline-end: 1px solid var(--line-soft); height: 40px; }
@media (max-width: 899px) { .pub-top .pub-brand { border: 0; padding: 0; } }
.pub-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; flex: none; }
.pub-brand:hover { color: var(--fg); }
.pub-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.pub-brand-text b { font-size: 1.38rem; font-weight: 850; letter-spacing: -.01em; }
.pub-brand-text small { font-size: .7rem; color: var(--muted); }
.pub-brand .pub-mark { width: 46px; height: 46px; transition: transform .6s var(--ease); }
.pub-brand:hover .pub-mark { transform: rotate(-14deg) scale(1.05); }
/* The address under the name: the brand as a reader types it. */
.pub-brand-host { font-size: .64rem !important; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-ink) !important; opacity: .85; line-height: 1.4; }
.pub-brand-lg .pub-mark { width: 54px; height: 54px; }
.pub-brand-lg .pub-brand-text b { font-size: 1.5rem !important; }
.pub-foot-tag { color: var(--fg); font-weight: 700; margin: 10px 0 0 !important; }
.pub-nav { display: flex; align-items: center; gap: 2px; }
.pub-nav-group { position: relative; }
.pub-nav-label, .pub-nav-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 10px;
    font: inherit; font-size: .93rem; font-weight: 600; color: var(--fg); text-decoration: none;
    background: none; border: 0; cursor: pointer;
}
.pub-nav-label .pub-i { width: 1em; height: 1em; opacity: .7; transition: transform .2s var(--ease); }
.pub-nav-label:hover, .pub-nav-link:hover, .pub-nav-group:focus-within .pub-nav-label { background: var(--teal-soft); color: var(--fg); }
.pub-nav-on { color: var(--teal-ink) !important; }
.pub-nav-drop {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0; width: 300px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s var(--ease), visibility .15s;
}
.pub-nav-group:hover .pub-nav-drop, .pub-nav-group:focus-within .pub-nav-drop { opacity: 1; visibility: visible; transform: none; }
/* The last group sits near the far edge: its box opens back towards the brand. */
.pub-nav-group:last-child .pub-nav-drop { inset-inline-start: auto; inset-inline-end: 0; }
.pub-nav-group:hover .pub-nav-label .pub-i, .pub-nav-group:focus-within .pub-nav-label .pub-i { transform: rotate(180deg); }
/* The bridge over the gap between label and box, so the pointer can cross it. */
.pub-nav-drop::before { content: ""; position: absolute; inset-inline: 0; top: -8px; height: 8px; }
.pub-nav-head { display: flex; align-items: center; gap: 6px; margin: 2px 6px 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); font-size: .78rem; font-weight: 700; color: var(--muted); }
.pub-nav-head .pub-i { width: 1.05em; height: 1.05em; color: var(--teal-ink); }
.pub-nav-drop a { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: .93rem; }
.pub-nav-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-ink); flex: none; }
.pub-nav-ic .pub-i { width: 19px; height: 19px; }
.pub-nav-tx { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.pub-nav-tx b { font-weight: 700; }
.pub-nav-tx small { color: var(--muted); font-size: .78rem; }
.pub-nav-drop a:hover { background: var(--teal-soft); }
.pub-nav-drop a:hover .pub-nav-ic, .pub-nav-drop a.pub-nav-on .pub-nav-ic { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pub-nav-drop a.pub-nav-on b { color: var(--teal-ink); }
.pub-nav-label.pub-nav-on, .pub-nav-link.pub-nav-on { box-shadow: inset 0 -2px 0 var(--teal-ink); border-radius: 10px 10px 4px 4px; }

/* Home, first in the menu. */
.pub-nav-home .pub-i { width: 1.05em; height: 1.05em; color: var(--teal-ink); }
/* The one action in the header, on a wide screen only. */
.pub-top .pub-top-cta { display: none; margin-inline-end: 6px; white-space: nowrap; }
@media (min-width: 1240px) { .pub-top .pub-top-cta { display: inline-flex; } }

/* The location bar under the header on every inner page: home › section ›
   page on one side, the section's other pages on the other. On a phone the
   two stack and the pages scroll inside their own row. */
.pub-where { border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.pub-where-in { max-width: var(--frame); margin: 0 auto; padding: 0 16px; min-height: 46px; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.pub-crumbs ol { list-style: none; margin: 0; padding: 7px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: .84rem; }
.pub-crumbs li { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); }
.pub-crumbs a, .pub-crumbs-group { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.pub-crumbs a:hover { color: var(--teal-ink); }
.pub-crumbs .pub-i { width: 1.05em; height: 1.05em; color: var(--teal-ink); }
.pub-crumbs .pub-crumbs-sep { width: .85em; height: .85em; margin: 0 6px; color: var(--muted); opacity: .6; }
.pub-crumbs [aria-current] { color: var(--fg); font-weight: 700; }
.pub-subnav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 6px 0; }
.pub-subnav::-webkit-scrollbar { display: none; }
.pub-subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid transparent; color: var(--fg); text-decoration: none; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.pub-subnav a .pub-i { width: 1.05em; height: 1.05em; color: var(--teal-ink); }
.pub-subnav a:hover { background: var(--teal-soft); }
.pub-subnav a.pub-nav-on { background: var(--teal-soft); border-color: var(--line); color: var(--teal-ink); }
@media (max-width: 899px) {
    .pub-where-in { padding: 0; gap: 0; }
    .pub-crumbs { padding: 0 16px; }
    .pub-subnav { margin: 0; padding: 4px 16px 8px; border-top: 1px solid var(--line-soft); width: 100%; }
}
.pub-top-tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.pub-icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
    background: none; border: 0; color: var(--fg); cursor: pointer; list-style: none;
}
.pub-icon-btn::-webkit-details-marker { display: none; }
.pub-icon-btn:hover { background: var(--teal-soft); }
.pub-icon-btn .pub-i { width: 22px; height: 22px; }
.pub-theme .pub-i-light { display: none; }
:root[data-theme="light"] .pub-theme .pub-i-dark { display: none; }
:root[data-theme="light"] .pub-theme .pub-i-light { display: block; }
.pub-menu { display: none; }
.pub-menu > summary { cursor: pointer; }
.pub-menu .pub-i-close { display: none; }
.pub-menu[open] .pub-i-open { display: none; }
.pub-menu[open] .pub-i-close { display: block; }
.pub-sheet {
    position: fixed; top: var(--top-h); inset-inline: 0; bottom: 0; z-index: 29; overflow-y: auto;
    background: var(--bg); padding: 18px 16px calc(var(--tab-h) + 24px);
}
.pub-sheet h2 { font-size: .82rem; color: var(--muted); font-weight: 700; margin: 14px 0 6px; display: flex; align-items: center; gap: 6px; }
.pub-sheet ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pub-sheet ul a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; font-weight: 600; }
.pub-sheet ul a .pub-i { color: var(--teal-ink); }
.pub-sheet-cta { margin-top: 18px; }
.pub-sheet-home a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); font-weight: 700; text-decoration: none; }

.pub-main { max-width: var(--frame); margin: 0 auto; padding: 0 16px 40px; }

.pub-tabbar {
    display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--glass);
    border-top: 1px solid var(--line-soft);
}
.pub-tabbar a {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; line-height: 1.3;
}
.pub-tabbar a .pub-i { width: 23px; height: 23px; }
.pub-tabbar a.pub-nav-on { color: var(--teal-ink); }

.pub-foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); color: var(--muted); font-size: .88rem; margin-top: 24px; }
/* What the site holds to, on every page but the about page. */
.pub-foot-band { border-bottom: 1px solid var(--line-soft); }
.pub-foot-values { max-width: var(--frame); margin: 0 auto; padding: 22px 16px; }
.pub-foot .pub-foot-values h2 { font-size: .95rem; margin: 0 0 14px; }
.pub-foot .pub-foot-values h2 a { color: var(--fg); }
.pub-foot .pub-foot-values h2 a:hover { color: var(--teal-ink); }
.pub-foot-values ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; }
.pub-foot .pub-foot-values li { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.pub-foot-vicon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-ink); flex: none; }
.pub-foot-vicon .pub-i { width: 18px; height: 18px; }
.pub-foot-values li > span:last-child { display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.pub-foot-values b { color: var(--fg); font-size: .88rem; }
.pub-foot-values small { font-size: .8rem; }
.pub-foot-in { max-width: var(--frame); margin: 0 auto; padding: 28px 16px 8px; display: flex; flex-wrap: wrap; gap: 22px 28px; }
.pub-foot-in > div { flex: 1 1 120px; }
.pub-foot-in > .pub-foot-brand { flex: 2 1 260px; }
.pub-foot-brand p { margin: 8px 0 12px; max-width: 26rem; }
.pub-foot-brand .pub-brand-text b { font-size: 1.1rem; }
.pub-foot h2 { font-size: .85rem; color: var(--fg); margin: 2px 0 6px; }
.pub-foot ul { list-style: none; margin: 0; padding: 0; }
.pub-foot li { margin: 3px 0; }
.pub-foot a { color: var(--muted); text-decoration: none; }
.pub-foot a:hover { color: var(--teal-ink); }
.pub-foot-line { max-width: var(--frame); margin: 0 auto; padding: 12px 16px 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; }
.pub-foot-line p { margin: 0; }
.pub-foot .pub-foot-maker { margin-top: 0; }

@media (max-width: 899px) {
    .pub-nav { display: none; }
    .pub-menu { display: block; }
    .pub-tabbar { display: flex; }
    body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
    .pub-foot-in > div { flex-basis: 40%; }
    .pub-foot-in > .pub-foot-brand { flex-basis: 100%; }
    .pub-foot-values ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* On a phone the six titles alone, two by two; the about page has the lines. */
@media (max-width: 560px) {
    .pub-foot-values ul { gap: 10px 12px; }
    .pub-foot-values small { display: none; }
    .pub-foot .pub-foot-values li { align-items: center; }
    .pub-foot-values b { font-size: .82rem; line-height: 1.5; }
}
@media (max-width: 360px) { .pub-brand-text small { display: none; } }

/* ---- Components ------------------------------------------------------ */
.pub-btn {
    display: inline-flex; align-items: center; gap: 6px; direction: ltr; background: var(--teal); color: var(--on-teal);
    border: 0; border-radius: var(--radius-sm); padding: 5px 14px; font: inherit; font-size: .86rem; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background .15s, transform .15s var(--ease);
}
.pub-btn:hover { background: var(--teal-hi); color: var(--on-teal); }
.pub-btn:active { transform: translateY(1px); }
.pub-btn-soft { background: var(--teal-soft); color: var(--teal-ink); direction: rtl; }
.pub-btn-soft:hover { background: var(--surface-2); color: var(--teal-ink); }
.pub-btn-primary { background: var(--orange); color: var(--on-orange); direction: rtl; }
.pub-btn-primary:hover { background: var(--orange-hi); color: var(--on-orange); }
.pub-btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); direction: rtl; }
.pub-btn-ghost:hover { background: var(--teal-soft); color: var(--fg); }
.pub-btn-lg { padding: 9px 20px; font-size: .95rem; border-radius: 12px; }
.pub-btn .pub-i { width: 1.1em; height: 1.1em; }

.pub-chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none; font-size: .86rem; white-space: nowrap;
}
a.pub-chip:hover, .pub-chip-on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.pub-chip .pub-i { width: 1em; height: 1em; color: var(--teal-ink); }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.pub-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-ink); font-weight: 800; font-size: .8rem; letter-spacing: .02em; margin: 0; }
.pub-sec { margin: 34px 0 0; }
.pub-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pub-sec-head h2 { font-size: clamp(1.15rem, 2.6vw, 1.45rem); font-weight: 850; margin: 0; line-height: 1.4; }
.pub-sec-head p:not(.pub-kicker) { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.pub-sec-all { display: inline-flex; align-items: center; gap: 2px; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

.pub-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 14px 16px; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
a.pub-card { color: var(--fg); text-decoration: none; }
a.pub-card:hover, .pub-card-hover:hover { transform: translateY(-2px); box-shadow: var(--glow); border-color: transparent; }
.pub-card h3 { font-size: 1rem; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.pub-card-icon { font-size: 1.25rem; }
.pub-card-icon .pub-i { color: var(--teal-ink); width: 22px; height: 22px; }
.pub-card p { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.8; flex: 1; }
.pub-card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pub-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .pub-grid-3 { grid-template-columns: 1fr; } }

/* A figure tile: a big number, its label, an optional note. */
.pub-tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
    display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--fg); text-decoration: none; position: relative;
}
a.pub-tile:hover { border-color: var(--teal); color: var(--fg); }
.pub-tile-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.pub-tile-label .pub-i { color: var(--teal-ink); width: 18px; height: 18px; }
.pub-tile-value { font-size: 1.45rem; font-weight: 850; line-height: 1.35; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-tile-note { color: var(--muted); font-size: .78rem; line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub-tile-live { border-color: rgba(255, 140, 26, .55); }
.pub-tile-live .pub-tile-value { color: var(--orange-ink); }
.pub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
/* On a phone the "now" strip is one row that scrolls sideways. */
@media (max-width: 640px) {
    .pub-tiles-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 4px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
    .pub-tiles-strip::-webkit-scrollbar { display: none; }
    .pub-tiles-strip > * { flex: 0 0 64%; scroll-snap-align: start; }
}

/* "Live": the orange dot; still when the reader asks for less motion. */
.pub-live { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-ink); font-size: .78rem; font-weight: 800; }
.pub-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 140, 26, .6); animation: pub-pulse 2s infinite; }
@keyframes pub-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 140, 26, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 140, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 140, 26, 0); } }

/* A countdown: equal-width figures, Persian units below. */
.pub-count { display: inline-flex; gap: 10px; direction: rtl; }
.pub-count span { display: flex; flex-direction: column; align-items: center; min-width: 3.2rem; padding: 6px 4px; background: var(--surface-2); border-radius: 12px; }
.pub-count b { font-size: 1.5rem; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.3; }
.pub-count small { font-size: .7rem; color: var(--muted); }

.pub-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.pub-tabs::-webkit-scrollbar { display: none; }
.pub-tab { flex: none; padding: 5px 14px; border-radius: 10px; font: inherit; font-size: .88rem; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none; }
.pub-tab:hover { color: var(--fg); }
.pub-tab-on, .pub-tab[aria-selected="true"] { background: var(--teal-soft); color: var(--teal-ink); }

.pub-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-2); outline: none; accent-color: var(--teal); }
.pub-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--orange); cursor: pointer; }
.pub-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--orange); border: 3px solid var(--bg); cursor: pointer; }

/* Loading and nothing-to-show: the same size as what will be there. */
.pub-skel { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: pub-shine 1.4s linear infinite; min-height: 1em; }
@keyframes pub-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pub-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.pub-empty .pub-i { width: 30px; height: 30px; color: var(--teal-ink); opacity: .8; }
.pub-empty p { margin: 0; }

/* Text over a picture or the hero. */
.pub-glass { background: var(--glass); border: 1px solid var(--line-soft); border-radius: var(--radius); }

/* The reader's city: the header chip and the picker (fb-core.js). */
.pub-city-btn { cursor: pointer; font: inherit; font-size: .84rem; max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; }
.pub-city-btn[hidden] { display: none; }
.pub-noscroll, .pub-noscroll body { overflow: hidden; }
.pub-cityp { position: fixed; inset: 0; z-index: 60; background: rgba(1, 10, 12, .62); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 12px 12px; }
.pub-cityp[hidden] { display: none; }
.pub-cityp-box { width: min(560px, 100%); max-height: 84vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.pub-cityp-head { display: flex; align-items: center; justify-content: space-between; }
.pub-cityp-head h2 { margin: 0; font-size: 1.1rem; font-weight: 850; }
.pub-cityp-note { margin: -6px 0 0; color: var(--muted); font-size: .8rem; }
.pub-cityp-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pub-cityp-search:focus-within { border-color: var(--teal); }
.pub-cityp-search .pub-i { color: var(--muted); }
.pub-cityp-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font: inherit; padding: 10px 0; outline: none; }
.pub-cityp-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pub-cityp-results:empty { display: none; }
.pub-cityp-results button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--fg); font: inherit; cursor: pointer; text-align: start; }
.pub-cityp-results button:hover { background: var(--teal-soft); }
.pub-cityp-results small { color: var(--muted); }
.pub-cityp-none { color: var(--muted); font-size: .85rem; padding: 4px 2px; }
.pub-cityp-here { align-self: flex-start; }
.pub-cityp-list button { cursor: pointer; font: inherit; font-size: .85rem; }
.pub-rel { white-space: nowrap; }
@media (max-width: 560px) { .pub-city-btn { max-width: 6.5rem; padding-inline: 9px; } .pub-cityp { padding-top: 4vh; } }

/* No backdrop blur anywhere: over the fixed star field it stalls painting on
   slow phones (and in testing), and a near-opaque bar reads just as well. */
/* Charts drawn on the server: shared classes. */
.pub-chart { display: block; width: 100%; height: auto; font-family: inherit; }
.pub-chart-grid { stroke: var(--line); stroke-width: 1; stroke-opacity: .7; }
.pub-chart-axis { fill: var(--muted); font-size: 12px; }
.pub-chart-s1 { fill: var(--c1); stroke: var(--c1); } .pub-chart-s2 { fill: var(--c2); stroke: var(--c2); } .pub-chart-s3 { fill: var(--c3); stroke: var(--c3); }
.pub-chart-s4 { fill: var(--c4); stroke: var(--c4); } .pub-chart-s5 { fill: var(--c5); stroke: var(--c5); } .pub-chart-s6 { fill: var(--c6); stroke: var(--c6); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- The mark alive (PublicIcons::logo): the world goes round its orbit --- */
.pub-logo { display: block; flex: none; overflow: visible; }
.pub-logo-still { display: none; }
.pub-logo-halo { animation: pub-logo-breathe 6s ease-in-out infinite; transform-origin: 32px 32px; transform-box: view-box; }
@keyframes pub-logo-breathe { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.pub-logo-world { filter: drop-shadow(0 0 2px rgba(255, 140, 26, .8)); }
/* The world on its orbit (PublicIcons::logo): one turn in 16 s, clockwise from the right, so near the first half. */
.pub-logo-orbit { animation: pub-logo-turn 16s linear infinite; }
.pub-logo-orbit-un { transform-box: fill-box; transform-origin: center; animation: pub-logo-turn 16s linear infinite reverse; }
.pub-logo-near { animation: pub-logo-turn 16s linear infinite, pub-logo-near 16s step-end infinite; }
.pub-logo-far { animation: pub-logo-turn 16s linear infinite, pub-logo-far 16s step-end infinite; }
@keyframes pub-logo-turn { to { transform: rotate(360deg); } }
@keyframes pub-logo-near { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pub-logo-far { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pub-logo-moving { display: none; } .pub-logo-still { display: inline; } }

/* A list row's two lines (the home cards, the bots, the earthquake lists). */
.pub-hm-li { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.pub-hm-li b { font-weight: 700; color: var(--fg); }
.pub-hm-li small { color: var(--muted); font-size: .8rem; }

/* ---- Running text and tables, for the site's own pages ---------------- */
.pub-prose { max-width: 46rem; }
.pub-prose h2 { font-size: 1.15rem; font-weight: 850; margin: 26px 0 6px; }
.pub-prose p, .pub-prose li { line-height: 2.05; }
.pub-prose p { margin: 0 0 .8rem; }
.pub-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pub-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pub-table th, .pub-table td { padding: 9px 14px; text-align: start; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.pub-table th { font-size: .78rem; color: var(--muted); font-weight: 700; background: var(--bg-2); }
.pub-table tr:last-child td { border-bottom: 0; }

/* ---- The labs: the curvature picture and the lead card (home and /lab) -- */
.pub-lab-feature {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; overflow: hidden; color: var(--fg); text-decoration: none;
    border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow);
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pub-lab-feature:hover { color: var(--fg); transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; }
.pub-lab-feature:hover .pub-btn-primary { background: var(--orange-hi); }
.pub-lab-stage { position: relative; background: radial-gradient(120% 90% at 60% 10%, #0d3940 0%, #041a1e 70%); display: flex; align-items: center; min-height: 240px; }
.pub-lab-art { display: block; width: 100%; height: auto; }
.pub-lab-copy { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; justify-content: center; }
.pub-lab-copy h2, .pub-lab-copy h3 { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 900; line-height: 1.55; }
.pub-lab-copy p:not(.pub-kicker) { margin: 0; color: var(--muted); font-size: .93rem; line-height: 2; }
.pub-lab-copy .pub-btn { align-self: flex-start; margin-top: 4px; }
.pub-lab-stars circle { fill: #e9f6ff; animation: pub-lab-twinkle 3.2s ease-in-out infinite; }
.pub-lab-stars circle:nth-child(2n) { animation-delay: 1.1s; } .pub-lab-stars circle:nth-child(3n) { animation-delay: 2s; }
@keyframes pub-lab-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.pub-lab-shore { fill: none; stroke: #6fe0d8; stroke-width: 2; stroke-opacity: .8; }
.pub-lab-seen { fill: #e7f5f3; }
.pub-lab-cap { fill: #ff8c1a; }
.pub-lab-beam { fill: #ffd29a; animation: pub-lab-twinkle 2s ease-in-out infinite; }
.pub-lab-hidden { stroke: #ff6b5d; stroke-width: 1.2; stroke-dasharray: 3 3; }
.pub-lab-sight { fill: none; stroke: #ffb054; stroke-width: 2; stroke-dasharray: 7 6; animation: pub-lab-flow 1.6s linear infinite; }
@keyframes pub-lab-flow { to { stroke-dashoffset: -26; } }
.pub-lab-horizon { fill: #ff8c1a; stroke: #041a1e; stroke-width: 2; }
.pub-lab-person { fill: none; stroke: #e7f5f3; stroke-width: 2.4; stroke-linecap: round; }
.pub-lab-eye { fill: #6fe0d8; stroke: #041a1e; stroke-width: 2; }
.pub-lab-label { fill: #cfe9e6; font-size: 13px; font-weight: 700; font-family: Vazirmatn, Tahoma, sans-serif; paint-order: stroke; stroke: #041a1e; stroke-width: 3px; }
.pub-lab-label-seen { fill: #e7f5f3; } .pub-lab-label-hid { fill: #ff9a8f; }
.pub-lab-soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pub-lab-soon li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pub-lab-soon b { font-weight: 800; }
.pub-lab-soon b a { color: var(--fg); text-decoration: none; } .pub-lab-soon b a:hover { color: var(--teal-ink); }
.pub-lab-soon p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.85; }
@media (max-width: 820px) { .pub-lab-feature { grid-template-columns: minmax(0, 1fr); } .pub-lab-stage { min-height: 0; } }
/* The labs as cards with a small moving picture each (lab_grid, lab_art): the home page, /lab and the foot of a simulator. */
.pub-lab-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.pub-lab-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--fg); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pub-lab-card:hover { color: var(--fg); transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; }
.pub-lab-card-art { display: block; background: radial-gradient(120% 100% at 50% 0%, #0d3940 0%, #041a1e 75%); }
.pub-lab-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.pub-lab-card-body b { font-weight: 800; font-size: .93rem; line-height: 1.8; }
.pub-art { display: block; width: 100%; height: auto; }
.pub-art-stars circle { fill: #e9f6ff; opacity: .7; }
.pub-art-path { fill: none; stroke: rgba(147, 184, 182, .38); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pub-art-glow { fill: rgba(255, 170, 60, .2); }
.pub-art-sun { fill: #ffd166; }
.pub-art-p1 { fill: #b9b2a8; } .pub-art-p2 { fill: #5aa6ff; } .pub-art-p3 { fill: #ff7a52; } .pub-art-p4 { fill: #e8b98a; }
.pub-art-earth { fill: #3987e5; }
.pub-art-night { fill: rgba(2, 10, 14, .72); }
.pub-art-moon { fill: #e6e2d6; }
.pub-art-axis { stroke: #e7f5f3; stroke-width: 1.4; }
.pub-art-rays path { stroke: rgba(255, 209, 102, .55); stroke-width: 1.4; fill: none; }
.pub-art-grid { fill: none; stroke: rgba(60, 207, 145, .55); stroke-width: 1; }
.pub-art-sat { fill: #fff; stroke: #ff8c1a; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.pub-art-track { fill: none; stroke: #ffb054; stroke-width: 1.6; stroke-dasharray: 5 5; animation: pub-lab-flow 1.6s linear infinite; opacity: .8; }
.pub-art-seis { fill: none; stroke: #6fe0d8; stroke-width: 1.4; stroke-dasharray: 300; stroke-dashoffset: 300; animation: pub-art-draw 3.6s ease-out infinite; }
.pub-art-epi { fill: #ff6b5d; }
.pub-art-ring { fill: none; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pub-art-wave 3.6s ease-out infinite; }
.pub-art-ring-p { stroke: #3fcac3; }
.pub-art-ring-s { stroke: #ff8c1a; animation-delay: .9s; }
.pub-art-sea { fill: rgba(57, 135, 229, .25); }
.pub-art-ship { fill: #e7f5f3; animation: pub-art-sink 4s ease-in-out infinite alternate; }
.pub-art-sight { fill: none; stroke: #ffb054; stroke-width: 1.6; stroke-dasharray: 6 5; animation: pub-lab-flow 1.6s linear infinite; }
.pub-art-spin { animation: pub-art-turn linear infinite; }
.pub-art-unspin { transform-box: fill-box; transform-origin: center; animation: pub-art-turn linear infinite reverse; }
.pub-art-t1 { animation-duration: 6s; } .pub-art-t2 { animation-duration: 11s; } .pub-art-t3 { animation-duration: 16s; } .pub-art-t4 { animation-duration: 28s; }
@keyframes pub-art-turn { to { transform: rotate(-360deg); } }
@keyframes pub-art-wave { 0% { transform: scale(.05); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pub-art-draw { 0% { stroke-dashoffset: 300; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes pub-art-sink { from { transform: translateY(0); } to { transform: translateY(14px); } }


/* ---- The news bot's subjects (news pages and the home page) ------------- */
/* One colour per subject, on a story's edge and its label: bright on the
   night default, deeper on the light page. */
.pub-nw-c-solar_system { --cat: #f0995a; }
.pub-nw-c-moon { --cat: #c3c8d8; }
.pub-nw-c-sun { --cat: #ffc94a; }
.pub-nw-c-small_bodies { --cat: #d4b08c; }
.pub-nw-c-stars { --cat: #f5d76e; }
.pub-nw-c-galaxies { --cat: #b99cff; }
.pub-nw-c-black_holes { --cat: #aab3d6; }
.pub-nw-c-cosmology { --cat: #a594f9; }
.pub-nw-c-exoplanets { --cat: #4fd1c5; }
.pub-nw-c-astrobiology { --cat: #7ddc8f; }
.pub-nw-c-telescopes { --cat: #8fb0ff; }
.pub-nw-c-missions { --cat: #6cc4f0; }
.pub-nw-c-spaceflight { --cat: #ff8a7a; }
.pub-nw-c-industry { --cat: #d9a388; }
.pub-nw-c-sky_events { --cat: #5fe0b7; }
.pub-nw-c-other_space { --cat: #a3b0cc; }
:root[data-theme="light"] .pub-nw-c-solar_system { --cat: #c2641f; }
:root[data-theme="light"] .pub-nw-c-moon { --cat: #7a7f95; }
:root[data-theme="light"] .pub-nw-c-sun { --cat: #b07c00; }
:root[data-theme="light"] .pub-nw-c-small_bodies { --cat: #8c6d4f; }
:root[data-theme="light"] .pub-nw-c-stars { --cat: #a68700; }
:root[data-theme="light"] .pub-nw-c-galaxies { --cat: #7b4cc9; }
:root[data-theme="light"] .pub-nw-c-black_holes { --cat: #3a3f58; }
:root[data-theme="light"] .pub-nw-c-cosmology { --cat: #5a3fb0; }
:root[data-theme="light"] .pub-nw-c-exoplanets { --cat: #1f8a84; }
:root[data-theme="light"] .pub-nw-c-astrobiology { --cat: #2f9147; }
:root[data-theme="light"] .pub-nw-c-telescopes { --cat: #2c55c9; }
:root[data-theme="light"] .pub-nw-c-missions { --cat: #1b7fb8; }
:root[data-theme="light"] .pub-nw-c-spaceflight { --cat: #d04a3a; }
:root[data-theme="light"] .pub-nw-c-industry { --cat: #8a5a44; }
:root[data-theme="light"] .pub-nw-c-sky_events { --cat: #0f8f6f; }
:root[data-theme="light"] .pub-nw-c-other_space { --cat: #52607e; }

/* ---- falakbin.ir/about: the maker -------------------------------------- */
.pub-about {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 22px; margin: 22px 0 8px; max-width: 46rem;
}
.pub-about p { margin: 0 0 .7rem; }
.pub-about-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.pub-about-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; flex: none; }
.pub-about-mark .pub-mark { width: 46px; height: 46px; }
.pub-about h1 { font-size: clamp(1.3rem, 4vw, 1.7rem); margin: 0; }
.pub-about-role { color: var(--muted); margin: 0 !important; }
.pub-about-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0 !important; }
.pub-about-part { max-width: 46rem; }
.pub-about-bots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 18px; }
.pub-about-bots a { direction: ltr; unicode-bidi: isolate; text-decoration: none; font-size: .9rem; }

/* ---- The home page (until phase 3 rebuilds it) ------------------------ */
.pub-hero { text-align: center; padding: 34px 0 22px; }
.pub-hero h1 { font-size: clamp(1.5rem, 4.4vw, 2.3rem); font-weight: 850; margin: 0 0 .4rem; }
.pub-hero p { margin: 0 auto .6rem; max-width: 42rem; color: var(--muted); }
.pub-hero .pub-stat { color: var(--fg); }
.pub-hero .pub-stat b { color: var(--orange-ink); }
.pub-hero .pub-kicker { justify-content: center; margin-bottom: 2px; }
.pub-hero-links { justify-content: center; margin-top: 16px !important; gap: 10px !important; }

.pub-tonight {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 14px 18px; margin: 0 0 24px;
}
.pub-tonight h2 { font-size: 1.05rem; margin: 0 0 6px; }
.pub-tonight ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pub-stars { letter-spacing: 1px; }
.pub-h { font-size: 1.15rem; font-weight: 850; margin: 26px 0 12px; }

/* ---- falakbin.ir/starlink: the chart, the cities, a city's trains ------- */
.pub-sl-figure { margin: 0 auto 22px; max-width: 540px; text-align: center; }
.pub-sl-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #0b1530; }
.pub-sl-figure figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.pub-sl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pub-sl-chip {
    display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); color: var(--fg); text-decoration: none; font-size: .9rem;
}
a.pub-sl-chip:hover { border-color: var(--teal); color: var(--fg); }
.pub-sl-chip-on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); font-weight: 700; }
.pub-sl-trains { display: grid; gap: 12px; margin: 0 0 22px; }
.pub-sl-train ul, .pub-sl-tips { margin: 0; padding: 0 1.1rem 0 0; }
.pub-sl-train li, .pub-sl-tips li { margin: 2px 0; font-size: .95rem; }

/* ---- falakbin.ir/planets: one night over Tehran, and the archive. The
   timeline is inline SVG drawn on the server, so its classes live here. ---- */
.pub-pl-head { text-align: center; padding: 22px 0 8px; }
.pub-pl-head h1 { font-size: clamp(1.35rem, 3.8vw, 1.9rem); font-weight: 850; margin: 0 0 4px; }
.pub-pl-head p { margin: 0 auto 6px; max-width: 42rem; }
.pub-pl-kicker { color: var(--orange-ink); font-weight: 800; font-size: .88rem; }
.pub-pl-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; font-size: .92rem; }
.pub-pl-nav a { text-decoration: none; }
.pub-pl-quote {
    margin: 10px auto 16px; max-width: 46rem; padding: 10px 16px; border-inline-start: 4px solid var(--orange);
    background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 1.02rem;
}
.pub-pl-chart { margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 10px 8px; }
.pub-pl-chart figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; color: var(--muted); font-size: .85rem; padding-top: 4px; }
.pub-pl-caption { justify-content: flex-start !important; font-weight: 600; color: var(--fg) !important; padding: 0 4px 6px !important; }
.pub-chart-frame { stroke: var(--line); stroke-width: 1; }
.pub-chart-hour { stroke: rgba(255, 255, 255, .12); stroke-width: 1; }
.pub-pl-chart .pub-chart-hour { stroke: var(--line); stroke-opacity: .6; }
.pub-chart-tick { fill: var(--muted); font-size: 12px; }
.pub-chart-sun { stroke: var(--orange); stroke-width: 1.4; stroke-dasharray: 3 3; }
.pub-chart-sunlabel { fill: var(--fg); font-size: 12.5px; }
.pub-chart-label { fill: var(--fg); font-size: 14px; font-weight: 600; }
.pub-chart-faint { fill: var(--muted); font-weight: 400; }
.pub-chart-best { stroke: #03181c; stroke-width: 2; }
.pub-key { display: inline-block; width: 18px; height: 8px; border-radius: 4px; vertical-align: middle; margin-inline-end: 4px; background: var(--muted); }
.pub-key-line { height: 3px; opacity: .6; }
.pub-key-bar { background: #e8cf7a; }
.pub-key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.pub-key-sky { width: 30px; background: linear-gradient(to left, #8fb8e8, #5577b0, #2f4579, #1b2a52, #0d1733); }
.pub-key-0 { background: #b9a89a; } .pub-key-1 { background: #ffd36e; } .pub-key-2 { background: #ff7b54; } .pub-key-3 { background: #f2b880; }
.pub-key-4 { background: #e8cf7a; } .pub-key-5 { background: #7fd6d0; } .pub-key-6 { background: #7ea6ff; }
.pub-pl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 4px 0 0; color: var(--muted); font-size: .85rem; }
.pub-pl-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 18px; margin: 0 0 16px; }
.pub-pl-box h2 { font-size: 1.05rem; margin: 0 0 6px; }
.pub-pl-box h2 small { color: var(--muted); font-weight: 400; font-size: .85rem; }
/* Observing in daylight: for the experienced, so set apart. */
.pub-pl-day { border-inline-start: 3px solid var(--orange); }
.pub-pl-list { margin: 0; padding: 0 1.1rem 0 0; }
.pub-pl-list li { margin: 3px 0; }
.pub-pl-days { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pub-pl-days a { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; font-size: .9rem; }
.pub-pl-days a:hover { border-color: var(--teal); }
.pub-pl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 0 0 18px; }
.pub-pl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; }
.pub-pl-card h3 { margin: 0 0 6px; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pub-pl-card h3 small { color: var(--muted); font-weight: 400; font-size: .85rem; }
.pub-pl-sym { font-size: 1.3rem; line-height: 1; }
.pub-pl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: .93rem; }
.pub-pl-card dt { color: var(--muted); }
.pub-pl-card dd { margin: 0; }
.pub-pl-note, .pub-pl-tip, .pub-pl-warn { margin: 8px 0 0; font-size: .92rem; line-height: 1.8; }
.pub-pl-tip { background: var(--teal-soft); border-radius: 8px; padding: 6px 10px; }
.pub-pl-warn { color: #ff8a80; }
:root[data-theme="light"] .pub-pl-warn { color: #b3261e; }
.pub-pl-cta { text-align: center; padding: 10px 0 4px; }
.pub-pl-cta p { margin: 0 0 8px; color: var(--muted); }
/* SVG text scales with the chart: on a phone the chart keeps a readable width and scrolls inside its box. */
@media (max-width: 780px) { .pub-pl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; } .pub-pl-scroll .pub-chart { min-width: 760px; } }

/* ---- falakbin.ir/starlink/archive: a launch's fading, the nights ------- */
.pub-sl-fade { display: flex; align-items: center; gap: 10px; margin: 0; }
.pub-sl-spark { color: var(--orange); flex: none; }
.pub-sl-nights { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pub-sl-nights li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pub-sl-thumb { display: block; width: 180px; margin: 0 0 10px; }
.pub-sl-thumb img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #0b1530; }
.pub-sl-name { white-space: nowrap; }
.pub-dome-wrap { display: flex; justify-content: center; }
.pub-dome-wrap > div { width: 100%; max-width: 440px; }
.pub-dome { max-width: 420px; }
.pub-dome-disc { stroke: var(--line); stroke-width: 1.5; transition: fill .3s; }
.pub-dome-ring { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; stroke-dasharray: 3 4; }
.pub-dome-dir { fill: var(--muted); font-size: 13px; font-weight: 700; }
.pub-dome-body { stroke: #0d1733; stroke-width: 1.5; }
.pub-dome-name { fill: #f3f5fb; font-size: 12.5px; font-weight: 600; paint-order: stroke; stroke: rgba(8, 14, 32, .75); stroke-width: 3px; }
.pub-dome-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pub-dome-controls input[type="range"] { flex: 1 1 220px; max-width: 420px; accent-color: var(--orange); }
.pub-dome-controls output { min-width: 11rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pub-dome-controls .pub-btn { border: 0; cursor: pointer; font: inherit; font-size: .85rem; direction: rtl; }
.pub-dome-below { text-align: center; margin: 6px 0 0; }
.pub-dome-box:not(.pub-dome-ready) .pub-dome-controls, .pub-dome-box:not(.pub-dome-ready) .pub-dome-below { display: none; }

/* ---- falakbin.ir/launch: the launches, one launch, the stats. Bar and
   column lengths are data-l levels 0–10, since the policy allows no inline style. */
.pub-ln-launch { margin: 0 0 12px; }
.pub-ln-launch h1, .pub-ln-launch h3 { margin: 4px 0 6px; font-size: 1.1rem; }
.pub-ln-launch h1 { font-size: 1.35rem; }
.pub-ln-launch h1 a, .pub-ln-launch h3 a { color: var(--fg); text-decoration: none; }
.pub-ln-launch p { margin: 2px 0; color: var(--fg); flex: 0 0 auto; }
.pub-ln-launch .pub-card-links { margin-top: 8px; }
.pub-ln-photo { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 4px; }
.pub-ln-when time { display: inline-block; font-size: 1.3rem; font-weight: 850; color: var(--gold); font-variant-numeric: tabular-nums; }
.pub-ln-lead .pub-ln-when time { font-size: 1.7rem; }
.pub-ln-line { color: var(--muted) !important; font-style: italic; }
.pub-ln-pill { display: inline-block; font-size: .75rem; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pub-ln-ok { color: var(--ok); border-color: var(--ok); }
.pub-ln-bad { color: var(--bad); border-color: var(--bad); }
.pub-ln-results { margin: 0; padding: 0 1.1rem 0 0; }
.pub-ln-results li { margin: 3px 0; }
.pub-ln-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pub-ln-cards div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pub-ln-cards b { display: block; font-size: 1.5rem; color: var(--gold); }
.pub-ln-cards span { color: var(--muted); font-size: .85rem; }
.pub-ln-bars div { display: grid; grid-template-columns: 9rem 1fr 3rem; gap: 8px; align-items: center; margin: 4px 0; }
.pub-ln-bars span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-ln-bars i { display: block; height: 10px; border-radius: 6px; background: var(--teal); min-width: 3px; }
.pub-ln-bars b { font-weight: 600; color: var(--muted); }
.pub-ln-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 140px; align-items: end; direction: ltr; }
.pub-ln-hours div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.pub-ln-hours i { display: block; background: var(--teal); border-radius: 3px 3px 0 0; min-height: 2px; }
.pub-ln-hours span { font-size: .62rem; color: var(--muted); text-align: center; }
.pub-ln-bars i[data-l="0"] { width: 0; } .pub-ln-bars i[data-l="1"] { width: 10%; } .pub-ln-bars i[data-l="2"] { width: 20%; } .pub-ln-bars i[data-l="3"] { width: 30%; }
.pub-ln-bars i[data-l="4"] { width: 40%; } .pub-ln-bars i[data-l="5"] { width: 50%; } .pub-ln-bars i[data-l="6"] { width: 60%; } .pub-ln-bars i[data-l="7"] { width: 70%; }
.pub-ln-bars i[data-l="8"] { width: 80%; } .pub-ln-bars i[data-l="9"] { width: 90%; } .pub-ln-bars i[data-l="10"] { width: 100%; }
.pub-ln-hours i[data-l="0"] { height: 0; } .pub-ln-hours i[data-l="1"] { height: 10%; } .pub-ln-hours i[data-l="2"] { height: 20%; } .pub-ln-hours i[data-l="3"] { height: 30%; }
.pub-ln-hours i[data-l="4"] { height: 40%; } .pub-ln-hours i[data-l="5"] { height: 50%; } .pub-ln-hours i[data-l="6"] { height: 60%; } .pub-ln-hours i[data-l="7"] { height: 70%; }
.pub-ln-hours i[data-l="8"] { height: 80%; } .pub-ln-hours i[data-l="9"] { height: 90%; } .pub-ln-hours i[data-l="10"] { height: 100%; }
@media (max-width: 480px) { .pub-ln-bars div { grid-template-columns: 6rem 1fr 2.4rem; } .pub-ln-lead .pub-ln-when time { font-size: 1.45rem; } }

@media print {
    .pub-top, .pub-tabbar, .pub-foot-in, .pub-foot-band, .pub-where, .pub-skip { display: none !important; }
    body { padding-bottom: 0; }
}

/* ---- falakbin.ir/launch: the pads map (fb-pads.js) and the country filter -- */
.pub-ln-map { margin: 0 0 16px; }
.pub-ln-mapbox { position: relative; aspect-ratio: 2.6; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
    background: radial-gradient(120% 120% at 50% 40%, var(--bg-2), var(--bg)); }
.pub-ln-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pub-ln-filter { margin-top: 10px; }
.pub-ln-filter[hidden] { display: none; }
.pub-ln-filter .pub-chip { cursor: pointer; font: inherit; font-size: .84rem; }
.pub-ln-launch[hidden] { display: none; }
@media (max-width: 560px) { .pub-ln-mapbox { aspect-ratio: 1.7; } }

/* ---- The site-wide announcement (settings site_announcement…, SiteArticles::announcement) --------- */
.pub-notice { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 8px 16px; background: var(--orange-soft); border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 700; text-align: center; }
.pub-notice .pub-i { flex: none; color: var(--orange-ink); }
.pub-notice a { color: var(--fg); }

/* ---- The search (fb-search.js): the box on a page and in the header's dialog, its suggestions; a linked entity in a text (EntityLinker) ---- */
.pub-search-btn[hidden] { display: none; }
.pub-kb-search { position: relative; margin-top: 14px; max-width: 34rem; }
.pub-kb-search label { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; }
.pub-kb-search label:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.pub-kb-search .pub-i { width: 18px; height: 18px; color: var(--muted); flex: none; }
.pub-kb-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 1rem; padding: 11px 0; outline: none; }
.pub-sg { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); max-height: 60vh; overflow-y: auto; }
.pub-sg[hidden] { display: none; }
.pub-sg a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--fg); text-decoration: none; }
.pub-sg a:hover, .pub-sg li[aria-selected="true"] a { background: var(--teal-soft); color: var(--teal-ink); }
.pub-sg b { font-weight: 700; }
.pub-sg small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.pub-sgd .pub-cityp-box { overflow: visible; }
.pub-sgd .pub-kb-search { margin-top: 0; max-width: none; }
.pub-sgd .pub-sg { position: static; margin-top: 8px; box-shadow: none; }
a.pub-kb-link { color: inherit; text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.pub-kb-link:hover { color: var(--teal-ink); }

/* ---- «Get this every day in Telegram» above the footer of a bot's pages (daily_cta) ---- */
.pub-daily { margin-top: 40px; }
.pub-daily-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding: 18px 20px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--bg-2)); }
.pub-daily-pic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--teal-soft); color: var(--teal-ink); }
.pub-daily-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-daily-pic .pub-i { width: 30px; height: 30px; }
.pub-daily-text { flex: 1 1 320px; min-width: 0; }
.pub-daily-text h2 { margin: 2px 0 4px; font-size: 1.15rem; font-weight: 850; }
.pub-daily-text p:not(.pub-kicker) { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.9; }
.pub-daily-go { display: flex; flex-wrap: wrap; gap: 8px; }
/* The offline page (/offline). */
.pub-offline { text-align: center; padding: 60px 16px; }
.pub-offline .pub-i { width: 48px; height: 48px; color: var(--teal-ink); }

/* Pointer and touch on the drawn scenes, as classes (a script's inline style is blocked by the CSP in Firefox). */
.pub-g-pan { touch-action: pan-y; } .pub-g-nopan { touch-action: none; }
.pub-g-grab { cursor: grab; } .pub-g-grabbing { cursor: grabbing; } .pub-g-point { cursor: pointer; } .pub-g-cross { cursor: crosshair; }
