/* falakbin.ir: the site's own pages (SitePages): the bots, one bot, about,
   sources, how, privacy and the lab. Loaded after public.css (tokens and
   pieces come from there); a bot's page loads home.css too, for its cards. */

.flk-hm-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-ink); }
.flk-hm-icon .flk-i { width: 21px; height: 21px; }

/* ---- A page's head ------------------------------------------------------ */
.flk-pg-hero {
    position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px;
    margin: 22px 0 8px; padding: 28px 28px 24px; border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
    background: radial-gradient(700px 260px at 15% 0%, rgba(255, 140, 26, .1), transparent 70%), radial-gradient(800px 300px at 90% 100%, rgba(34, 179, 173, .16), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2));
}
.flk-pg-hero-text { flex: 1 1 420px; min-width: 0; }
.flk-pg-hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.5rem); font-weight: 900; line-height: 1.3; margin: 6px 0 8px; letter-spacing: -.01em; }
.flk-pg-hero-sm { padding: 22px 24px 18px; }
.flk-pg-hero-sm h1 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); }
.flk-pg-lead { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 2.05; }
.flk-pg-stats { flex: 0 1 auto; display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px; margin: 0; }
.flk-pg-stats div { background: var(--glass); border: 1px solid var(--line-soft); border-radius: 14px; padding: 8px 14px; }
.flk-pg-stats dt { color: var(--muted); font-size: .76rem; }
.flk-pg-stats dd { margin: 0; font-size: 1.55rem; font-weight: 900; color: var(--orange-ink); line-height: 1.35; font-variant-numeric: tabular-nums; }
.flk-pg-stats dd small { font-size: .7rem; font-weight: 600; color: var(--muted); }
.flk-pg-h { display: flex; align-items: center; gap: 10px; }

/* ---- The bots ------------------------------------------------------------ */
.flk-pg-bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.flk-pg-bot { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.flk-pg-bot:hover { border-color: var(--teal); box-shadow: var(--glow); }
.flk-pg-bot-head { display: flex; align-items: center; gap: 12px; }
.flk-pg-bot-head h3 { margin: 0; font-size: 1.08rem; font-weight: 850; line-height: 1.5; }
.flk-pg-bot-head h3 a { color: var(--fg); text-decoration: none; }
.flk-pg-bot-head h3 a:hover { color: var(--teal-ink); }
.flk-pg-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); }
.flk-pg-avatar-none { display: grid; place-items: center; font-size: 1.5rem; }
.flk-pg-avatar-lg { width: 104px; height: 104px; font-size: 2.6rem; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--teal), 0 14px 40px rgba(34, 179, 173, .25); }
.flk-pg-user { display: inline-block; direction: ltr; unicode-bidi: isolate; font-size: .84rem; text-decoration: none; color: var(--teal-ink); }
.flk-pg-bot-text { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.95; flex: 1; }
.flk-pg-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flk-pg-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: .78rem; color: var(--fg); }
.flk-pg-meta .flk-i { width: 1em; height: 1em; color: var(--teal-ink); }
.flk-pg-meta .flk-rel { color: var(--muted); }
.flk-pg-meta-lg li { font-size: .88rem; padding: 4px 12px; }
.flk-pg-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flk-pg-more { margin-inline-start: auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--teal-ink); background: var(--teal-soft); }
.flk-pg-more:hover { background: var(--teal); color: var(--on-teal); }
.flk-pg-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 34px 0 0; padding: 20px 24px; border-radius: 20px; border: 1px solid rgba(255, 140, 26, .35); background: radial-gradient(500px 200px at 10% 0%, rgba(255, 140, 26, .14), transparent 70%), var(--surface); }
.flk-pg-cta h2 { margin: 0 0 2px; font-size: 1.2rem; font-weight: 900; }
.flk-pg-cta p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 40rem; }

/* ---- One bot ------------------------------------------------------------- */
.flk-pg-botpage { margin: 14px 0 0; padding: 24px 26px 22px; border-radius: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
    background: radial-gradient(700px 260px at 85% 0%, rgba(34, 179, 173, .18), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-pg-botpage-id { display: flex; align-items: center; gap: 20px; }
.flk-pg-botpage h1 { margin: 2px 0 0; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; line-height: 1.35; }
.flk-pg-add-lg { gap: 10px; }
.flk-pg-how { margin: 0; color: var(--muted); font-size: .8rem; }
.flk-pg-tiles { margin: 14px 0 0; }
.flk-pg-cards { display: grid; gap: 14px; }
.flk-pg-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.flk-pg-sources li { display: flex; flex-direction: column; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.flk-pg-sources b { font-weight: 700; font-size: .9rem; line-height: 1.7; }
.flk-pg-sources span { color: var(--muted); font-size: .76rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flk-pg-back { margin: 30px 0 0; text-align: center; }
@media (max-width: 560px) {
    .flk-pg-botpage { padding: 20px 16px 18px; }
    .flk-pg-botpage-id { gap: 14px; }
    .flk-pg-avatar-lg { width: 76px; height: 76px; }
    .flk-pg-hero { padding: 22px 18px 18px; }
    .flk-pg-stats { width: 100%; }
}

/* ---- A post as it reached Telegram --------------------------------------- */
.flk-pg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.flk-post { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; overflow: hidden; box-shadow: var(--shadow); }
.flk-post-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; }
.flk-post-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.flk-post-head b { font-size: .9rem; color: var(--teal-ink); }
.flk-post-head time { margin-inline-start: auto; color: var(--muted); font-size: .74rem; }
.flk-post-photo { display: block; width: 100%; height: auto; background: var(--surface-2); }
.flk-post-text { padding: 10px 14px 14px; font-size: .9rem; line-height: 1.85; overflow-wrap: anywhere; }
.flk-post-text blockquote { margin: 6px 0; padding: 4px 10px; border-inline-start: 3px solid var(--teal); background: var(--teal-soft); border-radius: 6px; }
.flk-post-text pre, .flk-post-text code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; direction: ltr; unicode-bidi: isolate; }
.flk-post-text pre { white-space: pre-wrap; background: var(--surface-2); padding: 6px 10px; border-radius: 8px; }
.flk-post-spoiler { background: var(--muted); color: transparent; border-radius: 4px; transition: color .2s, background .2s; }
.flk-post-spoiler:hover, .flk-post-spoiler:focus { background: transparent; color: inherit; }

/* ---- About -------------------------------------------------------------- */
.flk-ab-hero { display: flex; align-items: center; gap: 28px; margin: 22px 0 8px; padding: 30px 30px 26px; border-radius: 26px; border: 1px solid var(--line);
    background: radial-gradient(600px 260px at 12% 30%, rgba(34, 179, 173, .2), transparent 70%), radial-gradient(500px 240px at 95% 0%, rgba(255, 140, 26, .1), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ab-logo { width: clamp(110px, 18vw, 170px); height: auto; }
.flk-ab-hero h1 { margin: 2px 0 0; font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.flk-ab-host { margin: 2px 0 12px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--teal-ink); font-size: .9rem; text-align: right; }
.flk-ab-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr); gap: 22px; align-items: start; margin-top: 18px; }
.flk-ab-text h2 { font-size: 1.2rem; font-weight: 900; margin: 18px 0 6px; }
.flk-ab-text p { line-height: 2.05; margin: 0 0 .8rem; }
.flk-ab-links { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flk-ab-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 12px; background: var(--teal-soft); text-decoration: none; font-weight: 700; font-size: .88rem; }
.flk-ab-figures { position: sticky; top: calc(var(--top-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow); }
.flk-ab-figures h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 850; }
.flk-ab-figures dl { margin: 0; display: grid; gap: 8px; }
.flk-ab-figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.flk-ab-figures div:first-child { border-top: 0; }
.flk-ab-figures dt { color: var(--muted); font-size: .85rem; }
.flk-ab-figures dd { margin: 0; font-weight: 900; font-size: 1.3rem; color: var(--orange-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.flk-ab-figures dd small { font-size: .7rem; color: var(--muted); font-weight: 600; }
/* The first report: solar date, the Gregorian one under it. */
.flk-ab-figures .flk-ab-date dd { font-size: 1.05rem; text-align: end; }
.flk-ab-figures .flk-ab-date dd small { display: block; margin-top: 2px; }
.flk-ab-maker { display: flex; gap: 26px; align-items: flex-start; margin: 34px 0 0; padding: 26px 28px; border-radius: 24px; border: 1px solid var(--line);
    background: radial-gradient(600px 220px at 85% 0%, rgba(255, 140, 26, .12), transparent 70%), linear-gradient(160deg, var(--surface), var(--bg-2)); }
.flk-ab-maker h2 { margin: 2px 0 0; font-size: 1.6rem; font-weight: 900; }
.flk-ab-role { margin: 0 0 12px; color: var(--muted); }
.flk-ab-maker > div > p:not(.flk-kicker):not(.flk-ab-role):not(.flk-ab-contact) { line-height: 2.05; }
.flk-ab-monogram { position: relative; flex: none; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #36c9c1, #0b6470 55%, #04353d); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--orange), 0 18px 50px rgba(255, 140, 26, .18); }
.flk-ab-monogram img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.flk-ab-monogram .flk-mark { position: absolute; width: 40px; height: 40px; bottom: -6px; inset-inline-start: -6px; background: var(--bg); border-radius: 50%; padding: 4px; }
.flk-ab-cv { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.flk-ab-cv li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.9; font-size: .93rem; }
.flk-ab-cv-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-top: 1px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-ink); }
.flk-ab-cv-icon .flk-i { width: 17px; height: 17px; }
.flk-ab-quote { margin: 0 0 14px; padding: 12px 18px; border-inline-start: 4px solid var(--orange); background: var(--orange-soft); border-radius: 12px; }
.flk-ab-quote p { margin: 0; line-height: 2.05; font-size: 1rem; }
.flk-ab-contact { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 6px; }
.flk-ab-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.flk-ab-cards li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.flk-ab-cards b { font-weight: 850; font-size: 1rem; }
.flk-ab-cards p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.95; }
.flk-pv-cards { margin: 18px 0 10px; }
@media (min-width: 900px) { .flk-ab-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
    .flk-ab-grid { grid-template-columns: minmax(0, 1fr); }
    .flk-ab-figures { position: static; }
}
@media (max-width: 600px) {
    .flk-ab-hero, .flk-ab-maker { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
    .flk-ab-host { text-align: center; }
    .flk-ab-contact { justify-content: center; }
    .flk-ab-quote, .flk-ab-cv { text-align: start; }
    .flk-ab-cv { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Sources ----------------------------------------------------------- */
.flk-src-groups { display: grid; gap: 14px; }
.flk-src-group h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 850; }
.flk-src-group h3 a { color: var(--fg); text-decoration: none; }
.flk-src-group h3 small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.flk-pg-licence { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-ink); font-size: .76rem; font-weight: 700; white-space: nowrap; }

/* ---- How --------------------------------------------------------------- */
.flk-how-steps { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.flk-how-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.flk-how-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; inset-inline-end: -10px; width: 10px; height: 2px; background: var(--orange); }
.flk-how-n { position: absolute; top: 12px; inset-inline-end: 14px; font-weight: 900; font-size: 1.6rem; color: var(--line); line-height: 1; }
.flk-how-steps b { font-weight: 850; }
.flk-how-steps p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.9; }
.flk-how-never { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flk-how-never li { display: flex; gap: 10px; align-items: flex-start; }
.flk-how-never .flk-i { color: var(--bad); margin-top: .45em; }
@media (max-width: 980px) { .flk-how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flk-how-steps li::after { display: none; } }
@media (max-width: 520px) { .flk-how-steps { grid-template-columns: minmax(0, 1fr); } }
.flk-ab-values { margin-top: 38px; }

/* ---- The CMS's writing (SiteMarkdown, /learn, the editable pages) ---------------------------- */
.flk-md { max-width: 46rem; line-height: 2.1; font-size: 1.03rem; }
.flk-md h2 { margin: 28px 0 8px; font-size: 1.25rem; font-weight: 900; scroll-margin-top: calc(var(--top-h, 64px) + 16px); }
.flk-md h3 { margin: 22px 0 6px; font-size: 1.08rem; font-weight: 850; }
.flk-md h4 { margin: 18px 0 4px; font-size: 1rem; font-weight: 800; }
.flk-md p { margin: 0 0 1rem; }
.flk-md ul, .flk-md ol { margin: 0 0 1rem; padding-inline-start: 1.4em; }
.flk-md ol, .flk-ln-toc ol { list-style: persian; }
.flk-md li { margin: 0 0 .3rem; }
.flk-md blockquote { margin: 0 0 1rem; padding: 8px 14px; border-inline-start: 3px solid var(--teal); background: var(--teal-soft); border-radius: 8px; }
.flk-md blockquote p { margin: 0; }
.flk-md code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-family: ui-monospace, Consolas, monospace; font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.flk-md .flk-table-wrap { margin: 0 0 1rem; }
.flk-md-math { margin: 0 0 1rem; padding: 10px; overflow-x: auto; text-align: center; font-family: ui-monospace, Consolas, monospace; color: var(--fg); }
.flk-md-math svg { max-width: 100%; height: auto; }
.flk-md-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flk-md-figure { margin: 0 0 1.2rem; }
.flk-md-figure img { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--pic-h); margin-inline: auto; border-radius: 16px; background: var(--surface-2); }
.flk-md-figure figcaption { margin-top: 6px; color: var(--muted); font-size: .84rem; line-height: 1.8; }
.flk-md-figure figcaption small { opacity: .8; }

.flk-ln-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.flk-ln-cards a { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); color: var(--fg); text-decoration: none; }
.flk-ln-cards a:hover { border-color: var(--teal); }
.flk-ln-cards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.flk-ln-cards span { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; }
.flk-ln-cards small { color: var(--orange-ink); font-size: .76rem; font-weight: 800; }
.flk-ln-cards b { font-weight: 850; line-height: 1.6; }
.flk-ln-cards em { font-style: normal; color: var(--muted); font-size: .88rem; line-height: 1.9; }
.flk-ln-article { max-width: 52rem; margin: 22px 0 10px; }
.flk-ln-head h1 { margin: 6px 0 8px; font-size: clamp(1.5rem, 3.8vw, 2.3rem); font-weight: 900; line-height: 1.35; }
.flk-ln-head .flk-kicker a { color: inherit; }
.flk-ln-head { margin-bottom: 16px; }
.flk-ln-cover { max-width: 52rem; }
.flk-ln-toc { max-width: 46rem; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); font-size: .9rem; }
.flk-ln-toc p { margin: 0 0 4px; font-weight: 850; }
.flk-ln-toc ol { margin: 0; padding-inline-start: 1.4em; line-height: 2; }
.flk-ln-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.flk-ln-more a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--fg); text-decoration: none; }
.flk-ln-more small { color: var(--muted); font-size: .76rem; }

/* The shared reading layout: a wide head that spends the column's width, then one comfortable measure for prose.
   Beside a cover (Ashkan, 2026-10-24) the head is two columns: title, byline, lead and the «به‌طور خلاصه» box on
   one side, the cover and contents on the other, so the decorative picture takes width instead of height. */
.flk-ln-reading { --learn-measure: 44rem; --learn-font: clamp(1.16rem, 1.04rem + .4vw, 1.27rem); max-width: 72rem; margin: 36px auto 64px; }
.flk-ln-reading .flk-ln-article { max-width: none; margin: 0 0 48px; }
.flk-ln-top { max-width: var(--learn-measure); margin: 0 auto 32px; display: flex; flex-direction: column; gap: 24px; }
/* Narrow, the two sides open into one column: head, cover, the short version, contents. */
.flk-ln-lede, .flk-ln-aside { display: contents; }
.flk-ln-head { order: 1; }
.flk-ln-cover { order: 2; }
.flk-ln-brief { order: 3; }
.flk-ln-toc { order: 4; }
.flk-ln-reading .flk-ln-head { margin: 0; }
.flk-ln-reading .flk-ln-head h1 { font-size: clamp(1.7rem, 1.35rem + 1.25vw, 2.6rem); line-height: 1.6; margin: 10px 0 16px; }
.flk-ln-reading .flk-pg-lead { font-size: 1.08rem; line-height: 2.05; }
.flk-ln-reading .flk-ln-meta { margin-top: 18px; line-height: 1.9; }
.flk-ln-reading .flk-ln-cover { max-width: none; margin: 0; }
/* The cover is decoration (docs/plans/learn-covers.md): whole, at its own ratio, never taller than a short band. */
.flk-ln-reading .flk-ln-cover img { max-height: min(340px, 42vh); }
.flk-ln-reading .flk-ln-cover figcaption { text-align: center; }
.flk-ln-brief { font-size: 1.02rem; line-height: 2.05; }
.flk-ln-brief .flk-call { margin: 0; }
.flk-ln-brief .flk-call ul { margin-top: 0; }
.flk-ln-brief .flk-call li { margin: 0 0 .3rem; }
.flk-ln-reading .flk-md { max-width: var(--learn-measure); margin-inline: auto; font-size: var(--learn-font); line-height: 2.15; }
.flk-ln-reading .flk-md p { margin-bottom: 1.3em; }
.flk-ln-reading .flk-md h2 { margin: 2.2em 0 .8em; font-size: 1.4em; line-height: 1.8; }
.flk-ln-reading .flk-md h3 { margin: 1.8em 0 .6em; font-size: 1.12em; line-height: 1.85; }
.flk-ln-reading .flk-ln-toc { max-width: none; margin: 0; background: transparent; padding: 14px 18px; font-size: 1rem; }
.flk-ln-reading .flk-ln-toc summary { cursor: pointer; font-weight: 800; }
.flk-ln-reading .flk-ln-toc nav { margin-top: 14px; }
/* The contents beside the cover, open (Ashkan, 2026-10-24): small, close lines, no underline; shown only in the wide head. */
.flk-ln-toc-open { display: none; order: 4; padding: 12px 16px 10px; border-radius: 14px; border: 1px solid var(--line-soft); }
.flk-ln-toc-open p { margin: 0 0 6px; font-size: .86rem; font-weight: 800; color: var(--muted); }
.flk-ln-toc-open ol { margin: 0; padding-inline-start: 1.5em; list-style: persian; font-size: .86rem; line-height: 1.65; }
.flk-ln-toc-open li { margin: 0 0 3px; }
.flk-ln-toc-open li::marker { color: var(--muted); }
.flk-ln-toc-open a { color: var(--fg); text-decoration: none; }
.flk-ln-toc-open a:hover, .flk-ln-toc-open a:focus-visible { color: var(--teal-ink); }
.flk-ln-reading > .flk-sec, .flk-ln-reading > .flk-ln-series, .flk-ln-reading .flk-ln-editor { max-width: var(--learn-measure); margin-inline: auto; }
.flk-ln-reading .flk-faq-item { padding-top: 18px; padding-bottom: 6px; }
.flk-ln-reading .flk-faq-item h3 { font-size: 1.08rem; }
.flk-ln-reading .flk-faq-a { font-size: 1.05rem; line-height: 2.1; }
.flk-ln-reading .flk-faq-a p { margin-bottom: .8em; }
@media (min-width: 860px) {
    .flk-ln-reading { margin-top: 30px; }
    .flk-ln-top-pic { max-width: none; margin-bottom: 44px; padding-bottom: 36px; border-bottom: 1px solid var(--line-soft);
        display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 clamp(24px, 3.2vw, 48px); align-items: start; }
    .flk-ln-top-pic .flk-ln-lede, .flk-ln-top-pic .flk-ln-aside { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
    /* The picture starts level with the title, under the kicker. */
    .flk-ln-top-pic .flk-ln-aside { padding-top: 38px; }
    .flk-ln-top-pic .flk-ln-toc-open { display: block; }
    .flk-ln-top-pic .flk-ln-toc { display: none; }
    .flk-ln-top-pic .flk-ln-cover img { width: 100%; max-height: 420px; object-fit: contain; }
    .flk-ln-top-pic .flk-ln-head h1 { font-size: clamp(1.7rem, 1.1rem + 1.15vw, 2.4rem); margin-bottom: 12px; }
}
@media (max-width: 560px) {
    .flk-ln-reading { margin-top: 24px; }
    .flk-ln-reading .flk-ln-cover { margin-inline: -4px; }
    .flk-ln-reading .flk-md h2 { font-size: 1.25em; }
    .flk-ln-reading .flk-faq-item { padding-inline-start: 44px; padding-inline-end: 12px; }
}

/* ---- The site map (/sitemap, SiteOutline): one compact table ------------- */
.flk-map-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--muted); }
.flk-map-facts b { color: var(--orange-ink); font-weight: 850; font-variant-numeric: tabular-nums; }
.flk-map { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); font-size: .82rem; }
.flk-map-row { display: grid; grid-template-columns: 170px 1fr; align-items: stretch; scroll-margin-top: calc(var(--top-h) + 12px); }
.flk-map-row + .flk-map-row { border-top: 1px solid var(--line-soft); }
.flk-map-row-sub { border-top-style: dashed !important; }
.flk-map-name { display: flex; align-items: center; gap: 7px; margin: 0; padding: 7px 12px; background: var(--surface-2); color: var(--fg); font-size: .86rem; font-weight: 850; line-height: 1.6; text-decoration: none; border-inline-end: 1px solid var(--line-soft); }
.flk-map-name .flk-i, .flk-map-name .flk-mark { flex: none; width: 1.05em; height: 1.05em; color: var(--teal-ink); }
.flk-map-name small { margin-inline-start: auto; color: var(--orange-ink); font-weight: 800; font-size: .74rem; font-variant-numeric: tabular-nums; }
a.flk-map-name:hover span { color: var(--teal-ink); }
.flk-map-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 10px; min-width: 0; }
.flk-map-tag { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--fg); font-size: .76rem; line-height: 1.9; white-space: nowrap; text-decoration: none; }
.flk-map-tag b { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
a.flk-map-tag-link { color: var(--teal-ink); }
a.flk-map-tag-link:hover, .flk-map-tag-set:hover { background: var(--teal-soft); }
.flk-map-pair { display: inline-flex; }
.flk-map-pair .flk-map-tag { border-start-end-radius: 0; border-end-end-radius: 0; }
.flk-map-more { display: contents; }
.flk-map-tag-set { cursor: pointer; list-style: none; margin-inline-start: -3px; padding: 0 5px; border-start-start-radius: 0; border-end-start-radius: 0; border-inline-start: 1px solid var(--line-soft); }
.flk-map-tag-set::-webkit-details-marker { display: none; }
.flk-map-tag-set::after { content: "▾"; color: var(--muted); font-size: .7rem; }
.flk-map-more[open] > .flk-map-tag-set { background: var(--teal-soft); }
.flk-map-more[open] > .flk-map-tag-set::after { content: "▴"; color: var(--teal-ink); }
.flk-map-list { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 2px 0; padding: 6px 8px; border-radius: 8px; background: var(--bg-2); }
.flk-map-list-head { flex-basis: 100%; font-size: .78rem; font-weight: 800; }
.flk-map-list-head small { color: var(--muted); font-weight: 600; font-size: .7rem; }
.flk-map-sub { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 0 10px; max-height: 120px; overflow-y: auto; font-size: .74rem; line-height: 1.9; }
.flk-map-sub-head { color: var(--muted); font-weight: 700; }
.flk-map-sub-head b { font-variant-numeric: tabular-nums; }
.flk-map-sub a { color: var(--fg); text-decoration: none; }
.flk-map-sub a:hover { color: var(--teal-ink); }
@media (max-width: 560px) {
    .flk-map-row { grid-template-columns: 1fr; }
    .flk-map-name { border-inline-end: 0; }
}

/* ---- The article bank (docs/plans/learn-articles.md 11): boxes, galleries, cards, charts, diagrams, the article's frame ---- */
.flk-md ul ul, .flk-md ol ol, .flk-md ul ol, .flk-md ol ul { margin: .3rem 0 .2rem; }
.flk-md-math[data-math="i"] { display: inline; margin: 0; padding: 0 2px; overflow: visible; }
.flk-md-math[data-math="i"] svg { vertical-align: middle; }
.flk-call { margin: 0 0 1.2rem; padding: 12px 16px 4px; border-radius: 14px; border: 1px solid var(--line-soft); border-inline-start: 4px solid var(--teal); background: var(--surface); }
.flk-call-title { display: flex; align-items: center; gap: 7px; margin: 0 0 6px !important; color: var(--teal-ink); }
.flk-call-title b { font-weight: 900; }
.flk-call-title .flk-i { flex: none; width: 1.15em; height: 1.15em; }
.flk-call p, .flk-call ul, .flk-call ol { margin-bottom: .7rem; }
.flk-call-summary { background: var(--teal-soft); border-color: var(--teal); padding-top: 14px; }
.flk-call-summary ul { padding-inline-start: 1.2em; }
.flk-call-warning { border-inline-start-color: var(--bad); }
.flk-call-warning .flk-call-title { color: var(--bad); }
.flk-call-tip { border-inline-start-color: var(--teal-hi); }
.flk-call-try { border-inline-start-color: var(--ok); }
.flk-call-try .flk-call-title { color: var(--ok); }
.flk-call-claim { border-style: dashed; border-inline-start-style: solid; border-inline-start-color: var(--muted); }
.flk-call-claim .flk-call-title { color: var(--muted); }
.flk-md-gallery { display: grid; gap: 10px; margin: 0 0 1.2rem; }
.flk-md-gallery-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flk-md-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flk-md-gallery .flk-md-figure { margin: 0; }
.flk-md-gallery img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 560px) { .flk-md-gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.flk-md-card { display: flex; align-items: center; gap: 12px; margin: 0 0 1.2rem; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.flk-md-card:hover { border-color: var(--teal); }
.flk-md-card .flk-i { flex: none; width: 1.8em; height: 1.8em; color: var(--teal-ink); }
.flk-md-card span { display: flex; flex-direction: column; line-height: 1.8; }
.flk-md-card b { font-weight: 850; }
.flk-md-card small { color: var(--muted); font-size: .85rem; }
.flk-mdc { padding: 12px 12px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.flk-mdc-title { margin: 0 0 4px !important; font-weight: 850; }
.flk-mdc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px !important; color: var(--muted); font-size: .84rem; }
.flk-mdc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flk-mdc-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.flk-mdc-key1 { background: var(--c1); } .flk-mdc-key2 { background: var(--c2); } .flk-mdc-key3 { background: var(--c3); }
.flk-mdc-key4 { background: var(--c4); } .flk-mdc-key5 { background: var(--c5); } .flk-mdc-key6 { background: var(--c6); }
.flk-mdc-line { fill: none !important; stroke-width: 2.5; }
.flk-mdc-bar { stroke: none !important; }
.flk-mdc-data { margin-top: 6px; font-size: .86rem; }
.flk-mdc-data summary { cursor: pointer; color: var(--muted); }
.flk-mdc-data .flk-table-wrap { margin: 6px 0 0 !important; }
@media (max-width: 560px) { .flk-mdc .flk-chart-axis { font-size: 22px; } .flk-mdc .flk-chart-label { font-size: 24px; } }
.flk-dg { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); overflow-x: auto; }
.flk-dg-svg { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; font-family: inherit; }
.flk-dg-svg.flk-dg-narrow { max-width: 300px; } /* A vertical decision chain must not grow to the full desktop column. */
.flk-dg-svg text { fill: var(--fg); font-size: 15px; text-anchor: middle; } /* Mermaid centres its labels in the stylesheet SiteSvg drops */
.flk-dg-svg .node rect, .flk-dg-svg .node polygon, .flk-dg-svg .node circle, .flk-dg-svg .node ellipse, .flk-dg-svg .node path { fill: var(--surface-2); stroke: var(--teal); stroke-width: 1.5px; }
.flk-dg-svg .node.hl rect, .flk-dg-svg .node.hl polygon, .flk-dg-svg .node.hl circle { fill: var(--teal-soft); stroke: var(--teal-hi); stroke-width: 2.5px; }
.flk-dg-svg .node.bad rect, .flk-dg-svg .node.bad polygon, .flk-dg-svg .node.bad circle { stroke: var(--bad); }
.flk-dg-svg .node.ok rect, .flk-dg-svg .node.ok polygon, .flk-dg-svg .node.ok circle { stroke: var(--ok); }
.flk-dg-svg .flowchart-link, .flk-dg-svg .edgePath path, .flk-dg-svg path.relation { fill: none; stroke: var(--muted); stroke-width: 1.5px; }
.flk-dg-svg marker path, .flk-dg-svg .arrowMarkerPath, .flk-dg-svg .arrowheadPath { fill: var(--muted); stroke: none; }
.flk-dg-svg .edgeLabel rect, .flk-dg-svg .labelBkg { fill: var(--surface); opacity: .95; }
.flk-dg-svg .edgeLabel text { fill: var(--muted); font-size: 13px; }
.flk-dg-svg .cluster rect { fill: none; stroke: var(--line); stroke-dasharray: 4 3; }
.flk-ln-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; color: var(--muted); font-size: .84rem; }
.flk-ln-meta span { display: inline-flex; align-items: center; gap: 5px; }
.flk-ln-meta .flk-i { width: 1em; height: 1em; }
.flk-ln-topics ul { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.flk-ln-topics a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--fg); font-size: .88rem; font-weight: 750; text-decoration: none; }
.flk-ln-topics a:hover { border-color: var(--teal); }
.flk-ln-topics .flk-i { width: 1.05em; height: 1.05em; color: var(--teal-ink); }
.flk-ln-topics small { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.flk-ln-all { margin: 10px 0 0; font-size: .88rem; }
.flk-ln-sources ol { max-width: 46rem; margin: 0; padding-inline-start: 1.4em; list-style: persian; line-height: 2; font-size: .9rem; }
.flk-ln-sources small { color: var(--muted); }
.flk-ln-series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 52rem; margin: 18px 0; }
.flk-ln-series a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.flk-ln-series a:hover { border-color: var(--teal); }
.flk-ln-series small { color: var(--muted); font-size: .78rem; }
.flk-ln-series b { font-weight: 850; line-height: 1.6; }
.flk-ln-next { grid-column: 1; grid-row: 1; }
.flk-ln-prev { grid-column: 2; grid-row: 1; text-align: end; }
@media (max-width: 560px) { .flk-ln-series { grid-template-columns: 1fr; } .flk-ln-prev, .flk-ln-next { grid-column: 1; grid-row: auto; text-align: start; } }
.flk-ln-wiki { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flk-ln-wiki a { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--surface-2); color: var(--teal-ink); font-size: .86rem; text-decoration: none; }
.flk-ln-wiki a:hover { background: var(--teal-soft); }

.flk-sky-finder{display:block;width:auto;max-width:100%;height:auto;max-height:var(--pic-h);margin-inline:auto;border-radius:var(--radius,12px)}
[data-widget=deepsky]{display:flex;flex-wrap:wrap;gap:1rem;align-items:end}
[data-widget=deepsky] label{display:grid;gap:.35rem}
[data-sky-result]{flex-basis:100%}

/* SkyTonight: observing landing and dossier bank, both themes. */
.flk-sky-hero{padding:clamp(1.2rem,4vw,3rem);border:1px solid var(--line);border-inline-start:4px solid var(--orange);border-radius:var(--radius);background:radial-gradient(ellipse at top left,var(--teal-soft),transparent 70%),var(--surface)}
.flk-sky-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-block:1.5rem}
.flk-sky-features article{padding:1.25rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.flk-sky-features h2{font-size:1.2rem}.flk-sky-features p{color:var(--muted);line-height:1.9}
.flk-sky-catalog{columns:3;column-gap:2rem;padding-inline-start:1.2rem}.flk-sky-catalog li{break-inside:avoid;margin-block:.55rem}
@media(max-width:700px){.flk-sky-features{grid-template-columns:1fr}.flk-sky-catalog{columns:1}}

.flk-side-earth-image{max-width:100%;height:auto;border-radius:12px}

/* Editorial identity: scoped to article credits and the person's profile. */
.flk-ln-byline{font-size:.9rem;color:var(--muted);line-height:2;margin:.7rem 0}
.flk-ln-editor{display:flex;gap:1rem;align-items:flex-start;padding:1.2rem;margin:2rem 0;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.flk-ln-editor img,.flk-person-head img{border-radius:50%;object-fit:cover;flex-shrink:0}
.flk-ln-editor p{margin:0 0 .5rem;font-size:.95rem;line-height:1.9}
.flk-person-head{display:flex;gap:1.5rem;align-items:center;margin:1rem 0 2rem}
.flk-person-works{list-style:none;padding:0}.flk-person-works li{display:flex;gap:1rem;justify-content:space-between;padding:.8rem 0;border-bottom:1px solid var(--line)}
.flk-person-works small{white-space:nowrap;color:var(--muted)}
@media(max-width:540px){.flk-ln-editor{gap:.8rem;padding:1rem}.flk-ln-editor img{width:48px;height:48px}.flk-person-head{gap:1rem}.flk-person-head img{width:88px;height:88px}.flk-person-works li{display:block}.flk-person-works small{display:block;margin-top:.3rem}}

/* The profile uses its full main column; the shared sidebar remains in place. */
.flk-person-prose{max-width:none}.flk-person-prose .flk-ab-cv{grid-template-columns:minmax(0,1fr)}

/* The personal profile stays within its main column and shares the site's theme. */
.flk-person-head{padding:24px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(ellipse at top right,var(--teal-soft),transparent 75%),var(--surface);margin:0 0 16px}
.flk-person-head h1{margin:0;font-size:clamp(2rem,5vw,3rem)}
.flk-person-latin{margin:4px 0;color:var(--muted);text-align:start;font-size:.95rem}
.flk-person-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.flk-person-jumps a{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;background:var(--teal-soft);border:1px solid var(--line);border-radius:12px;text-decoration:none}
.flk-person-card{padding:clamp(16px,3vw,26px);margin:0 0 18px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.flk-person-card h2{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:1.35rem;scroll-margin-top:110px}
.flk-person-card h2>.flk-i{flex:none;color:var(--teal-ink);width:24px;height:24px}
.flk-person-prose{font-size:1.05rem;line-height:2}
.flk-person-prose .flk-person-cv{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.flk-person-cv li{padding:16px;border:1px solid var(--line-soft);border-radius:14px;background:var(--bg-2);font-size:1rem;gap:14px}
.flk-person-cv li>div{min-width:0}.flk-person-cv h3{margin:0 0 4px;font-size:1.1rem}.flk-person-cv p{margin:6px 0 0;color:var(--muted);font-size:.94rem}
.flk-person-gallery{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-top:18px}
.flk-person-gallery figure{min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--bg-2)}
.flk-person-gallery a{display:block;text-decoration:none}.flk-person-gallery img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#020e11}
.flk-person-gallery figcaption{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px;font-size:.78rem;line-height:1.8}
.flk-person-gallery .flk-i{width:15px;height:15px;flex:none}.flk-person-note{font-size:.85rem;color:var(--muted)}
.flk-person-card .flk-ab-contact a{max-width:100%;flex-wrap:wrap}.flk-person-card a:focus-visible,.flk-person-jumps a:focus-visible{outline:2px solid var(--orange-ink);outline-offset:3px}
@media(max-width:700px){.flk-person-head{padding:18px;align-items:flex-start}.flk-person-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.flk-person-jumps{font-size:.9rem}.flk-person-cv li{padding:12px;gap:10px}}
@media(max-width:380px){.flk-person-head{flex-direction:column}.flk-person-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:701px) and (max-width:1100px){.flk-person-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:700px){.flk-person-prose .flk-person-cv{grid-template-columns:minmax(0,1fr)}}

/* Profile links use colour and icons; its article archive stays compact. */
.flk-person-prose a,.flk-person-works a{color:var(--teal-ink);text-decoration:none}
.flk-person-prose p a,.flk-person-cv li span a{font-weight:650}
.flk-person-prose p a::after,.flk-person-cv li span a::after{content:"↗";display:inline-block;margin-inline-start:.25em;font-size:.75em}
.flk-person-prose a:hover,.flk-person-works a:hover{color:var(--teal-hi);text-decoration:none}
.flk-person-works{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 0}
.flk-person-works li{display:block;min-width:0;padding:0;border:0}
.flk-person-works a{display:flex;align-items:flex-start;gap:10px;height:100%;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:.93rem;line-height:1.85}
.flk-person-works a:hover{background:var(--surface-2);border-color:var(--teal)}
.flk-person-works a:focus-visible{outline:2px solid var(--orange-ink);outline-offset:3px}
.flk-person-works .flk-i{flex:none;width:17px;height:17px;margin-top:4px}
.flk-person-work-copy{flex:1;min-width:0}.flk-person-works small{display:block;margin-top:5px;font-size:.76rem}
@media(max-width:700px){.flk-person-works{grid-template-columns:minmax(0,1fr)}}
