/* ==========================================================================
   دکترجاب — سیستم طراحی «کاشی روشن» (نسخه ۶)
   ساده و روشن: سطح سفید، لاجوردی فقط برای دکمه اصلی و تیترها، فیروزه‌ای برای حقوق، کهربایی فقط برای «فوری».
   هر صفحه یک کار اصلی دارد و یک دکمه اصلی.
   حرکت امضایی: «ته‌برگ تاریخ» روی هر آگهی، مثل کارت نوبت مطب.
   مرجع: DESIGN.md و سیستم طراحی «دکترجاب» (توکن‌ها هم‌نام‌اند).
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url(/fonts/Vazirmatn-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lalezar"; src: url(/fonts/Lalezar-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  /* رنگ‌ها — روشن */
  --ground: #f5f7fb;
  --surface: #ffffff;
  --sunken: #e9edf4;
  --ink: #101a33;
  --ink-2: #39456a;
  --muted: #5f6b85;
  --line: #e1e6ef;
  --line-strong: #c4cde0;
  --shell: #16306f;
  --shell-ink: #ffffff;
  --shell-muted: #b9c6ea;
  --primary: #16306f;
  --primary-hover: #1d3d8a;
  --primary-ink: #ffffff;
  --primary-soft: #e6ebf7;
  --stub-ink: #16306f;
  --stub-line: #c9d4f2;
  --link: #2446a6;
  --turq: #19b5a5;
  --on-turq: #0a1838;
  --turq-ink: #0b6b62;
  --turq-soft: #dcf4f0;
  --hot: #a34a06;
  --hot-soft: #fcefd9;
  --hot-line: #f0c99a;
  --danger: #b4302a;
  --danger-soft: #fdecea;
  --shadow-card: 0 1px 2px rgb(22 48 111 / 6%), 0 8px 24px -12px rgb(22 48 111 / 18%);
  --shadow-float: 0 -1px 0 rgb(22 48 111 / 4%), 0 -8px 28px -14px rgb(22 48 111 / 22%);

  /* حروف */
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  --font-display: "Lalezar", "Vazirmatn", Tahoma, sans-serif;

  /* شکل، فاصله و حرکت */
  --radius-tag: 6px;
  --radius-ctl: 10px;
  --radius-box: 14px;
  --radius-panel: 18px;
  --radius-pill: 999px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --tabbar-h: 64px;
  color-scheme: light;
}

/* رنگ‌ها — تیره (خودکار یا انتخاب کاربر) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1222; --surface: #121b31; --sunken: #0e172b; --ink: #e6ebf5; --ink-2: #bdc7dc; --muted: #8d99b3; --line: #24304a; --line-strong: #33415f;
    --shell: #0f1a36; --shell-ink: #e6ebf5; --shell-muted: #93a2c8; --primary: #3a5bd0; --primary-hover: #4769e0; --primary-ink: #ffffff; --primary-soft: #1a2546;
    --stub-ink: #c9d4f2; --stub-line: #2e3c66; --link: #9db4ff; --turq: #35cfc0; --on-turq: #07162a; --turq-ink: #5fe0d3; --turq-soft: #11332f;
    --hot: #f2a65a; --hot-soft: #3a2611; --hot-line: #6b4520; --danger: #ff8a80; --danger-soft: #3a1717;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
    --shadow-float: 0 -1px 0 rgb(255 255 255 / 4%), 0 -10px 30px -14px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1222; --surface: #121b31; --sunken: #0e172b; --ink: #e6ebf5; --ink-2: #bdc7dc; --muted: #8d99b3; --line: #24304a; --line-strong: #33415f;
  --shell: #0f1a36; --shell-ink: #e6ebf5; --shell-muted: #93a2c8; --primary: #3a5bd0; --primary-hover: #4769e0; --primary-ink: #ffffff; --primary-soft: #1a2546;
  --stub-ink: #c9d4f2; --stub-line: #2e3c66; --link: #9db4ff; --turq: #35cfc0; --on-turq: #07162a; --turq-ink: #5fe0d3; --turq-soft: #11332f;
  --hot: #f2a65a; --hot-soft: #3a2611; --hot-line: #6b4520; --danger: #ff8a80; --danger-soft: #3a1717;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
  --shadow-float: 0 -1px 0 rgb(255 255 255 / 4%), 0 -10px 30px -14px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--ink); background: var(--ground); text-rendering: optimizeLegibility; caret-color: var(--turq-ink); }
::selection { background: var(--turq-soft); color: var(--ink); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.5; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
img, svg { max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.ic-lg { width: 2.2rem; height: 2.2rem; color: var(--muted); }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
@media (min-width: 881px) { .wrap { width: min(1240px, 100% - 64px); } .narrow { width: min(760px, 100% - 64px); } }
.muted { color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); }
[hidden] { display: none !important; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-ctl); }
.skip:focus { top: 8px; }
.display { font-family: var(--font-display); font-weight: 400; color: var(--shell); line-height: 1.3; }
:root[data-theme="dark"] .display { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .display { color: var(--ink); } }

.section { padding-block: var(--space-12) 0; }
.section-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 800; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; }
.section-head .section-title { margin: 0; }
.section-sub { color: var(--muted); margin-block: -10px 16px; }
.section-more { margin-top: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--turq-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: var(--space-6); }

/* ---------- دکمه‌ها ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--radius-ctl); border: 1.5px solid transparent; font-weight: 800; font-size: .95rem; line-height: 1.4; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-accent { background: var(--turq); color: var(--on-turq); }
.btn-ghost { background: var(--surface); color: var(--primary); border-color: var(--primary); }
:root[data-theme="dark"] .btn-ghost { color: var(--ink); border-color: var(--line-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ghost { color: var(--ink); border-color: var(--line-strong); } }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding-inline: 26px; font-size: 1.02rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--primary-hover); }
  .btn-accent:hover { background: color-mix(in srgb, var(--turq) 88%, white); }
  .btn-ghost:hover { background: var(--primary-soft); }
}

/* ---------- سربرگ روشن ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--stub-ink); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; padding-top: 4px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; font-weight: 600; font-size: .95rem; border-radius: 8px; position: relative; transition: color 160ms ease, background-color 160ms ease; }
.main-nav a[aria-current] { color: var(--ink); font-weight: 800; }
.main-nav a[aria-current]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--turq); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--ink); background: var(--ground); } }
.btn-post { margin-inline-start: auto; min-height: 42px; padding: 8px 18px; }
@media (max-width: 880px) {
  .main-nav, .site-header .btn-post { display: none; }
  .header-inner { height: 56px; }
  .brand-name { font-size: 1.5rem; }
  .logo-mark { width: 30px; height: 30px; }
}
body.tg .btn-post { display: none; }

/* ---------- صفحه اول: یک جعبه جست‌وجو، بعد خود آگهی‌ها ---------- */
.hero { padding-block: 56px 8px; }
.hero-inner { max-width: 760px; margin-inline: auto; text-align: center; display: grid; justify-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 1.6rem + 3vw, 3.7rem); line-height: 1.25; color: var(--stub-ink); }
.lead { margin-block: 12px 26px; color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.hero-search { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; padding-inline-start: 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-card); transition: border-color 160ms ease, box-shadow 160ms ease; }
.hero-search:focus-within { border-color: var(--turq); box-shadow: 0 0 0 4px color-mix(in srgb, var(--turq) 18%, transparent), var(--shadow-card); }
.hero-search > .ic { width: 22px; height: 22px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; min-height: 52px; border: 0; padding: 0 4px; background: transparent; font-size: 1.05rem; box-shadow: none; }
.hero-search input:focus { box-shadow: none; }
.hero-search .btn { min-height: 52px; padding-inline: 26px; border-radius: 13px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.chips a, .role-cloud a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.chips a span, .role-cloud a span { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips a:active, .role-cloud a:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .chips a:hover, .role-cloud a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); color: var(--ink); } }
.hero.is-tg { padding-top: 24px; }
.hero.is-tg h1 { font-size: 1.9rem; margin-bottom: 18px; }
@media (max-width: 640px) {
  .hero { padding-block: 28px 0; }
  .hero-inner { text-align: start; justify-items: stretch; }
  .lead { font-size: 1rem; margin-block: 8px 20px; }
  .hero-search { padding-inline-start: 14px; border-radius: 16px; }
  .hero-search input { min-height: 48px; font-size: 1rem; }
  .hero-search .btn { min-height: 48px; padding-inline: 16px; }
  /* سمت‌ها در یک ردیف که با انگشت ورق می‌خورد */
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { scroll-snap-align: start; }
}

.feed .job-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.feed-all { margin-top: 16px; }
@media (min-width: 641px) { .feed-all { width: auto; display: flex; max-width: 380px; margin-inline: auto; } }

/* ---------- ته‌برگ تاریخ: حرکت امضایی ---------- */
.stub { flex: none; display: grid; justify-items: center; align-content: center; gap: 1px; width: 78px; padding-block: 12px; line-height: 1.15; color: var(--stub-ink); background: var(--primary-soft); border-inline-end: 2px dashed var(--stub-line); font-variant-numeric: tabular-nums; text-align: center; }
.stub b { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; }
.stub span { font-size: .78rem; font-weight: 700; }
.stub i { font-style: normal; font-size: .72rem; font-weight: 800; margin-top: 3px; }
.stub.is-hot { background: var(--hot-soft); color: var(--hot); border-inline-end-color: var(--hot-line); }

/* ---------- کارت آگهی: عنوان، محل و نوع همکاری، حقوق. همین. ---------- */
.job-list { display: grid; gap: 10px; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); overflow: hidden; transition: border-color 160ms ease, box-shadow 200ms ease; }
.job-link { display: flex; color: inherit; text-decoration: none; height: 100%; }
.job .stub { width: 64px; background: transparent; border-inline-end: 1.5px dashed var(--line-strong); }
.job .stub b { font-size: 1.85rem; }
.job .stub span { color: var(--muted); font-weight: 600; }
.job .stub.is-hot { background: transparent; color: var(--hot); border-inline-end-color: var(--hot-line); }
.job .stub.is-hot span { color: var(--hot); }
.job-body { display: grid; gap: 3px; align-content: center; min-width: 0; flex: 1; padding: 14px 16px; }
.job h3 { font-size: 1rem; font-weight: 800; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-meta-line { font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-kind { justify-self: start; font-size: .74rem; font-weight: 800; color: var(--stub-ink); background: var(--primary-soft); padding: 0 8px; border-radius: var(--radius-tag); line-height: 1.9; }
.job-place { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); min-width: 0; }
.job-place span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-place .ic { width: 1em; height: 1em; }
.job-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--sunken); padding: 2px 9px; border-radius: var(--radius-tag); line-height: 1.7; border: 0; }
.tag-kind { background: var(--primary-soft); color: var(--stub-ink); font-weight: 800; }
.tag-remove { cursor: pointer; margin-inline-start: auto; }
.pay { font-weight: 800; color: var(--turq-ink); font-variant-numeric: tabular-nums; font-size: .95rem; }
@media (hover: hover) and (pointer: fine) {
  .job:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow-card); }
  .job:hover h3 { color: var(--link); }
}
.job-link:active { background: var(--ground); }

/* ---------- دعوت کارفرما ---------- */
.employer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 32px; border-radius: var(--radius-panel); background: var(--primary-soft); }
.employer > div { flex: 1 1 420px; }
.employer h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); line-height: 1.3; color: var(--stub-ink); }
.employer p { color: var(--ink-2); margin-top: 6px; max-width: 46em; }
@media (max-width: 640px) { .employer { padding: 22px 20px; } .employer .btn { width: 100%; } }

/* ---------- ابر سمت‌ها ---------- */
.role-cloud { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.role-cloud a.is-all { color: var(--turq-ink); border-style: dashed; }
.count { color: var(--muted); font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--sunken); padding: 0 8px; border-radius: var(--radius-pill); }

/* ---------- سؤالات پرتکرار ---------- */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 200ms var(--ease-out); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { color: var(--ink-2); padding-bottom: 16px; max-width: 70ch; }

/* ---------- فرم‌ها ---------- */
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); color: var(--ink); font-size: 1rem; transition: border-color 160ms ease, box-shadow 160ms ease; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
textarea { resize: vertical; line-height: 1.9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turq); box-shadow: 0 0 0 3px color-mix(in srgb, var(--turq) 25%, transparent); }
[aria-invalid="true"] { border-color: var(--danger); }
select { appearance: none; padding-inline-end: 14px; padding-inline-start: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%235f6b85'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 14px; background-position: left 12px center; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--primary); width: auto; min-height: 0; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field > span:first-child { font-weight: 700; font-size: .95rem; color: var(--ink); }
legend { font-weight: 700; color: var(--ink); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 600; }
.hint { font-size: .86rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- صفحه فهرست ---------- */
.page-head { padding-block: 24px 12px; display: grid; gap: 6px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .85rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "›"; margin-inline-start: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs [aria-current] { color: var(--ink-2); }
.listing { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.filters { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 18px; }
.filters-form { display: grid; gap: 14px; }
.ff-row { display: grid; gap: 14px; }
.more-filters { display: grid; gap: 14px; }
.more-filters summary { display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; color: var(--turq-ink); cursor: pointer; list-style: none; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: "+"; margin-inline-start: auto; font-size: 1.3rem; line-height: 1; }
.more-filters[open] summary::after { content: "−"; }
.more-filters[open] { gap: 14px; }
.more-filters > .field { margin-top: 12px; }
.more-filters .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--turq); }
@media (max-width: 880px) {
  .listing { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .filters { position: static; padding: 14px; }
  .filters-form { gap: 10px; }
  .ff-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filters .field label { font-size: .82rem; color: var(--muted); }
  .filters input, .filters select { min-height: 44px; }
  /* با جاوااسکریپت، تغییر هر گزینه خودش نتیجه را نشان می‌دهد؛ دکمه و برچسب جست‌وجو لازم نیست */
  .js .filters .ff-go { display: none; }
  .js .filters .ff-q label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.empty-box { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-box); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; font-variant-numeric: tabular-nums; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding-inline: 14px; border-radius: var(--radius-ctl); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 700; }
.pager span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.related-links { margin-top: 32px; }
.related-links p { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.related-links a { font-size: .88rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); text-decoration: none; color: var(--ink-2); }
.seo-text.small { margin-top: 20px; font-size: .88rem; color: var(--muted); }

/* راهنمای شغل روی صفحه سمت */
.role-guide { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); display: grid; gap: 18px; }
.role-summary { color: var(--ink-2); max-width: 68ch; }
.role-guide h3 { font-size: 1rem; margin-bottom: 6px; }
.role-guide ul { margin: 0; padding-inline-start: 18px; color: var(--ink-2); display: grid; gap: 2px; }
.guide-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .guide-cols { grid-template-columns: 1fr; } .role-guide { padding: 18px; } }
.pay-stats { padding: 14px 16px; border-radius: var(--radius-ctl); background: var(--turq-soft); display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.ad-tips { display: grid; gap: 10px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-links ul { list-style: none; padding: 0; }
.guide-links a { text-decoration: none; }

/* ---------- صفحه آگهی ---------- */
.job-hero { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); overflow: hidden; }
.job-hero .stub { width: 132px; gap: 4px; }
.job-hero .stub b { font-size: 4rem; }
.job-hero .stub span { font-size: .9rem; }
.job-hero .stub i { background: var(--hot); color: var(--hot-soft); padding: 1px 10px; border-radius: var(--radius-pill); margin-top: 6px; }
.job-hero-body { flex: 1; min-width: 0; padding: 26px 32px; display: grid; gap: 10px; }
.job-hero h1 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem); line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .94rem; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-pay { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 900; color: var(--turq-ink); font-variant-numeric: tabular-nums; }
.job-pay small { font-size: .95rem; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .job-hero .stub { width: 84px; }
  .job-hero .stub b { font-size: 2.6rem; }
  .job-hero .stub span { font-size: .78rem; }
  .job-hero-body { padding: 16px 18px; gap: 8px; }
  .job-meta span:last-child { display: none; }
}
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 24px; }
.job-main { display: grid; gap: 24px; min-width: 0; }
.job-side { display: grid; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 960px) {
  .job-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
  .job-side { position: static; }
}
.job-main .panel h2 { margin-bottom: 10px; }
.job-desc { display: grid; gap: 10px; max-width: 68ch; }
.job-desc p { white-space: pre-line; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { padding-block: 11px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 10px; }
  .facts dt { font-size: .88rem; flex: none; }
  .facts dd { text-align: left; }
  .panel { padding: 18px; }
}

/* توضیحات بلند در موبایل: کوتاه + «ادامه متن» (فقط وقتی جاوااسکریپت فعال است) */
.job-desc.is-clamped { max-height: 12.5em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.desc-more { justify-self: start; margin-top: 4px; padding: 6px 0; min-height: 40px; border: 0; background: none; font: inherit; font-weight: 800; color: var(--turq-ink); cursor: pointer; }

/* نوار تماس پایین صفحه آگهی (موبایل و مینی‌اپ تلگرام) — جای نوار تب پایین را می‌گیرد */
.job-bar { display: none; }
.job-bar { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; gap: 8px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px -20px rgb(16 26 51 / .45); }
.job-bar > .btn { flex: 1; min-width: 0; min-height: 52px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.job-bar .bar-tg { flex: none; width: 52px; height: 52px; padding: 0; }
.bar-ic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: var(--radius-ctl); background: var(--ground); color: var(--ink-2); cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease; }
.bar-ic:active { transform: scale(.94); }
.bar-ic .ic { width: 24px; height: 24px; }
.bar-ic .ic-on { display: none; }
.bar-ic[aria-pressed="true"] { color: var(--turq-ink); background: var(--turq-soft); }
.bar-ic[aria-pressed="true"] .ic-on { display: block; }
.bar-ic[aria-pressed="true"] .ic-off { display: none; }
@media (max-width: 960px) {
  .job-bar { display: flex; }
  body.has-jobbar .tabbar { display: none; }
}
body.tg .job-bar { display: flex; }
body.tg.has-jobbar .tabbar { display: none; }

/* کارت آگهی‌دهنده وقتی به پروفایل لینک می‌شود */
a.org-card { text-decoration: none; color: inherit; border-radius: 8px; }
.org-more { font-size: .88rem; font-weight: 700; color: var(--turq-ink); }
@media (hover: hover) and (pointer: fine) { a.org-card:hover b { color: var(--link); } }

/* ---------- پروفایل مطب / کلینیک ---------- */
.clinic-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 26px 30px; }
.org-avatar-lg { width: 88px; height: 88px; border-radius: 22px; font-size: 3rem; }
.clinic-id { flex: 1 1 340px; min-width: 0; display: grid; gap: 6px; }
.clinic-id h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.5; }
.clinic-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: .94rem; }
.clinic-meta span { display: inline-flex; align-items: center; gap: 6px; }
.clinic-id .tag { text-decoration: none; }
.clinic-stats { display: flex; gap: 10px; margin: 0; }
.clinic-stats div { min-width: 104px; padding: 12px 16px; border-radius: var(--radius-ctl); background: var(--ground); text-align: center; }
.clinic-stats dt { font-size: .82rem; color: var(--muted); }
.clinic-stats dd { margin: 0; font-family: var(--font-display); font-size: 2rem; line-height: 1.2; color: var(--stub-ink); font-variant-numeric: tabular-nums; }
.clinic .job-main > section { display: grid; gap: 14px; }
.section-title .count { font-family: var(--font-body, inherit); font-size: .8em; font-weight: 600; color: var(--muted); }
.section-title-sm { font-size: 1.15rem; color: var(--muted); }
.past-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); }
.past-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 13px 20px; color: var(--ink-2); }
.past-list li + li { border-top: 1px solid var(--line); }
.clinic-note h2 { font-size: 1.05rem; margin-bottom: 6px; }
.clinic-note p { color: var(--ink-2); font-size: .94rem; }
@media (max-width: 640px) {
  .clinic-head { padding: 18px; gap: 14px; }
  .org-avatar-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 2.2rem; }
  .clinic-stats { width: 100%; }
  .clinic-stats div { flex: 1; }
}

.contact-box { display: grid; gap: 14px; }
.org-card { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.org-card > div { display: grid; min-width: 0; line-height: 1.6; }
.org-card .muted { font-size: .9rem; }
.org-avatar { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: var(--primary-ink); font-family: var(--font-display); font-size: 1.6rem; padding-top: 4px; }
.contact-links { display: grid; gap: 8px; }
.contact-link { font-variant-numeric: tabular-nums; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qa { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; min-height: 60px; border: 0; border-radius: var(--radius-ctl); background: var(--ground); color: var(--ink-2); font-size: .82rem; font-weight: 700; text-decoration: none; transition: background-color 160ms ease, transform 160ms var(--ease-out), color 160ms ease; }
.qa:active { transform: scale(0.96); }
.qa .ic { width: 22px; height: 22px; }
.qa .ic-on { display: none; }
.qa[aria-pressed="true"] { color: var(--turq-ink); background: var(--turq-soft); }
.qa[aria-pressed="true"] .ic-on { display: block; }
.qa[aria-pressed="true"] .ic-off { display: none; }
@media (hover: hover) and (pointer: fine) { .qa:hover { background: var(--sunken); } }
.safety { display: flex; gap: 12px; font-size: .9rem; line-height: 1.8; color: var(--stub-ink); background: var(--primary-soft); padding: 16px 18px; border-radius: var(--radius-box); }
.safety .ic { width: 24px; height: 24px; margin-top: 2px; }
.report summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--muted); list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report { padding-block: 14px; }
.report[open] summary { margin-bottom: 12px; color: var(--ink); }
.report-form { display: grid; gap: 12px; }
.report-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }

/* مقایسه حقوق */
.pay-compare .muted { margin-bottom: 14px; }
.pc-bar { display: block; width: 100%; height: 28px; overflow: visible; }
.pc-track { fill: var(--sunken); }
.pc-band { fill: color-mix(in srgb, var(--turq) 35%, var(--surface)); }
.pc-med { fill: var(--muted); }
.pc-job { fill: var(--turq); }
.pc-legend { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-legend b { color: var(--turq-ink); }

/* ---------- فرم ثبت آگهی ---------- */
.post-head { padding-block: 32px 8px; }
.post-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 48px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .post-aside { display: none; } }
.post-form { display: grid; gap: 18px; margin-block: 16px 0; min-width: 0; }
fieldset { margin: 0; padding: 22px 26px 26px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); min-width: 0; }
.form-step { display: grid; gap: 16px; }
.form-step > legend { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; padding-inline: 8px; }
.step-no { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--turq); padding-top: 3px; }
@media (max-width: 560px) { fieldset { padding: 18px 16px 20px; } }
.kind-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input, .pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card > span { display: grid; gap: 2px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color 160ms ease, background-color 160ms ease; }
.radio-card .ic { width: 22px; height: 22px; color: var(--muted); margin-bottom: 4px; }
.radio-card small { color: var(--muted); font-size: .86rem; }
.radio-card input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.radio-card input:checked + span .ic { color: var(--stub-ink); }
.radio-card input:focus-visible + span, .pill input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 2px; }
@media (max-width: 460px) { .kind-switch { gap: 8px; } .radio-card > span { padding: 12px; } .radio-card small { font-size: .8rem; line-height: 1.6; } }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); font-size: .95rem; font-weight: 700; color: var(--ink-2); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease; }
.pill input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.pay-hint { background: var(--turq-soft); color: var(--ink); border-radius: var(--radius-ctl); padding: 10px 14px; font-size: .92rem; font-variant-numeric: tabular-nums; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-bottom: 8px; cursor: pointer; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 6px; flex: none; }

/* کنار فرم: پیش‌نمایش و چک‌لیست */
.post-aside { position: sticky; top: 88px; display: grid; gap: 12px; margin-top: 16px; }
.aside-label { font-size: .9rem; font-weight: 800; color: var(--muted); }
.job.preview { box-shadow: var(--shadow-card); }
.checklist { display: grid; gap: 8px; padding: 18px 20px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.checklist li { display: flex; align-items: center; gap: 8px; color: var(--muted); transition: color 200ms ease; }
.checklist .ic { width: 18px; height: 18px; }
.checklist .ic-on { display: none; }
.checklist li.is-done { color: var(--turq-ink); font-weight: 700; }
.checklist li.is-done .ic-on { display: block; }
.checklist li.is-done .ic-off { display: none; }
@media (max-width: 960px) { .post-aside { position: static; margin-top: 8px; } .checklist { display: none; } }

/* ---------- پیام‌ها و وضعیت ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-ctl); border: 1px solid; }
.alert p + p { margin-top: 6px; }
.alert-error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.alert-success, .alert-info { background: var(--turq-soft); border-color: color-mix(in srgb, var(--turq-ink) 30%, transparent); color: var(--ink); }
.alert-warn { background: var(--hot-soft); border-color: color-mix(in srgb, var(--hot) 35%, transparent); color: var(--ink); margin-bottom: 16px; }
.manage-link { display: flex; gap: 8px; margin-top: 10px; }
.manage-link input { direction: ltr; font-size: .85rem; }
.done { justify-items: center; text-align: center; gap: 12px; padding-block: 48px; }
.done .alert { text-align: start; }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--turq-soft); color: var(--turq-ink); }
.done-icon .ic { width: 32px; height: 32px; }
.done-icon.err { background: var(--sunken); color: var(--muted); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reason { width: auto; flex: 1; min-width: 140px; min-height: 44px; }
.status-card { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 24px; }
.status { padding: 1px 10px; border-radius: var(--radius-tag); font-size: .84rem; font-weight: 700; background: var(--sunken); }
.status-active { color: var(--turq-ink); background: var(--turq-soft); }
.status-pending { color: var(--hot); background: var(--hot-soft); }
.status-rejected, .status-deleted { color: var(--danger); background: var(--danger-soft); }

/* ---------- صفحات متنی، اپ، راهنماها ---------- */
.prose { line-height: 2.05; }
.prose > * + * { margin-top: 12px; }
.prose ul { padding-inline-start: 20px; }
.platforms { list-style: none; padding: 0; margin: 20px 0 0; display: grid; }
.platforms li { display: flex; align-items: center; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.platforms li > div { flex: 1; min-width: 0; }
.platform-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--stub-ink); }
.platform-icon .ic { width: 22px; height: 22px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.guide-list.single { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (max-width: 760px) { .guide-list { grid-template-columns: minmax(0, 1fr); } }
.guide-item a { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.guide-item b { font-size: 1.04rem; line-height: 1.7; }
.guide-item .muted { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) and (pointer: fine) { .guide-item a:hover b { color: var(--link); } }
.aud { justify-self: start; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-tag); }
.aud-employer { color: var(--stub-ink); background: var(--primary-soft); }
.aud-seeker { color: var(--turq-ink); background: var(--turq-soft); }
.aud-both { color: var(--ink-2); background: var(--sunken); }
.article { gap: 0; }
.article-head { display: grid; gap: 8px; margin-block: 8px 18px; }
.article-head h1 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.05rem); line-height: 1.55; }
.article-intro { font-size: 1.08rem; color: var(--ink); line-height: 2.1; max-width: 66ch; }
.article section { margin-top: 26px; max-width: 66ch; }
.article section h2 { margin-bottom: 8px; }
.article section p { color: var(--ink-2); line-height: 2.1; }
.article section p + p { margin-top: 10px; }
.article section ul { margin: 8px 0 0; padding-inline-start: 20px; color: var(--ink-2); display: grid; gap: 4px; line-height: 2; }
.article-cta { margin-top: 32px; padding: 18px 20px; border-radius: var(--radius-box); background: var(--turq-soft); display: grid; gap: 10px; }
.related-guides { margin-top: 36px; }

/* ---------- صفحه «بیشتر» ---------- */
.more-page { display: grid; gap: 16px; padding-bottom: 32px; }
.settings { display: grid; gap: 14px; }
.settings h2 { font-size: 1rem; color: var(--muted); }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.sr-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--stub-ink); flex: none; }
.sr-text { flex: 1; display: grid; line-height: 1.6; }
.sr-text small { color: var(--muted); font-size: .86rem; }
.switch-row input[type="checkbox"] { appearance: none; position: relative; width: 52px; height: 32px; min-height: 0; padding: 0; border-radius: var(--radius-pill); background: var(--line-strong); border: 0; cursor: pointer; flex: none; transition: background-color 220ms ease; }
.switch-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform 260ms var(--ease-spring); }
.switch-row input[type="checkbox"]:checked { background: var(--turq-ink); }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(-20px); }
.theme-pick { border: 0; padding: 14px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.theme-pick legend { padding: 0; font-size: .95rem; float: inline-start; width: 100%; margin-bottom: 10px; }
.theme-opts { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-pick label { position: relative; cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; pointer-events: none; }
.theme-pick span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 700; color: var(--ink-2); transition: border-color 160ms ease, background-color 160ms ease; }
.theme-pick .ic { width: 22px; height: 22px; }
.theme-pick input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--stub-ink); }
.theme-pick input:focus-visible + span { outline: 2px solid var(--turq); outline-offset: 2px; }
.menu-list { display: grid; padding: 4px 0; }
.menu-list a { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--ink); text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.menu-list a:last-child { border-bottom: 0; }
.menu-list a span { flex: 1; }
.menu-list .ic { color: var(--muted); }
.menu-list a > .ic:last-child { color: var(--turq); }

/* ---------- پنل مدیریت ---------- */
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-block: 16px 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 10px; text-align: center; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: .82rem; }
.admin-job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 14px; margin-bottom: 10px; display: grid; gap: 6px; }
.admin-job header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-job p { font-size: .9rem; }
.badge { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-tag); }
.badge-hiring { color: var(--stub-ink); background: var(--primary-soft); }
.badge-seeking { color: var(--turq-ink); background: var(--turq-soft); }
.badge-report { color: var(--danger); background: var(--danger-soft); }
.pre { white-space: pre-line; }
.empty { color: var(--muted); }
.outreach { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-box); padding: 12px 16px; display: grid; gap: 10px; }
.outreach[open] { padding-bottom: 16px; }
.outreach summary { cursor: pointer; font-weight: 700; }
.outreach textarea { margin-block: 10px; }
.admin .section-head { flex-wrap: wrap; }
.channel-copy summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--link); }
.channel-copy[open] { display: grid; gap: 8px; }
.channel-copy textarea { margin-top: 8px; font-size: .88rem; }
.report-list { margin: 0; padding-inline-start: 18px; font-size: .88rem; color: var(--ink-2); }

/* ---------- پاورقی ---------- */
.site-footer { margin-top: 72px; padding-block: 32px calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { display: grid; gap: 10px; max-width: 360px; }
.footer-brand .brand { color: var(--shell); }
:root[data-theme="dark"] .footer-brand .brand { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .footer-brand .brand { color: var(--ink); } }
.footer-brand p { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; max-width: 540px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
@media (min-width: 881px) { .site-footer { padding-bottom: 32px; } }

/* ==========================================================================
   نوار تب پایین (موبایل و مینی‌اپ تلگرام)
   نشانگر قرصی زیر تب فعال با فنر نرم جابه‌جا می‌شود؛ آیکون فعال توپر می‌شود.
   ========================================================================== */
.tabbar { display: none; }
@media (max-width: 880px) {
  .tabbar {
    --tb-pad: 8px;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
    padding: 6px var(--tb-pad) calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: var(--shadow-float);
  }
  .tab { position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; padding: 4px 0 2px; min-height: 52px; font-size: .74rem; font-weight: 700; color: var(--muted); text-decoration: none; transition: color 240ms ease; }
  .tab-ic { position: relative; display: grid; place-items: center; width: 56px; height: 30px; transition: transform 200ms var(--ease-out); }
  .tab-ic .ic { grid-area: 1 / 1; width: 23px; height: 23px; transition: opacity 220ms ease, transform 320ms var(--ease-spring); }
  .tab-ic .ic-on { opacity: 0; transform: scale(.6); }
  .tab:active .tab-ic { transform: scale(.88); }
  .tab-label { line-height: 1.4; }

  /* تب فعال (و تبی که همین الان زده شد) */
  .tab[aria-current], .tab.is-going { color: var(--stub-ink); }
  .tab[aria-current] .ic-on, .tab.is-going .ic-on { opacity: 1; transform: scale(1); }
  .tab[aria-current] .ic-off:not(:only-child), .tab.is-going .ic-off:not(:only-child) { opacity: 0; transform: scale(.6); }
  .tabbar:has(.is-going) .tab[aria-current]:not(.is-going) { color: var(--muted); }
  .tabbar:has(.is-going) .tab[aria-current]:not(.is-going) .ic-on { opacity: 0; transform: scale(.6); }
  .tabbar:has(.is-going) .tab[aria-current]:not(.is-going) .ic-off { opacity: 1; transform: scale(1); }

  /* نشانگر قرصی */
  .tab-ind { position: absolute; z-index: 0; top: 10px; inset-inline-start: var(--tb-pad); width: calc((100% - 2 * var(--tb-pad)) / 5); height: 30px; pointer-events: none; transition: transform 460ms var(--ease-spring), opacity 200ms ease; }
  .tab-ind::before { content: ""; position: absolute; inset: 0 calc(50% - 30px); border-radius: var(--radius-pill); background: var(--primary-soft); }
  .tabbar[data-active="-1"] .tab-ind, .tabbar[data-active="2"] .tab-ind { opacity: 0; }
  .tabbar[data-active="1"] .tab-ind { transform: translateX(-100%); }
  .tabbar[data-active="2"] .tab-ind { transform: translateX(-200%); }
  .tabbar[data-active="3"] .tab-ind { transform: translateX(-300%); }
  .tabbar[data-active="4"] .tab-ind { transform: translateX(-400%); }

  /* دکمه وسط: ثبت آگهی */
  .tab-post .tab-ic { width: 52px; height: 52px; margin-top: -24px; border-radius: 17px; background: var(--turq); color: var(--on-turq); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--turq) 70%, transparent), 0 0 0 4px var(--surface); }
  .tab-post .tab-ic .ic { width: 26px; height: 26px; }
  .tab-post .tab-ic .ic-off { opacity: 1 !important; transform: none !important; }
  .tab-post[aria-current] .tab-ic, .tab-post.is-going .tab-ic { box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--turq); }

  main { padding-bottom: 8px; }
}
:root[data-theme="dark"] .tab[aria-current], :root[data-theme="dark"] .tab.is-going { color: var(--turq-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-current], :root:not([data-theme="light"]) .tab.is-going { color: var(--turq-ink); } }

/* ---------- داخل تلگرام (مینی‌اپ) ---------- */
body.tg { --ground: var(--tg-theme-secondary-bg-color, #f2f4f8); --surface: var(--tg-theme-bg-color, #fff); --ink: var(--tg-theme-text-color, #101a33); --muted: var(--tg-theme-hint-color, #5f6b85); --link: var(--tg-theme-link-color, #2446a6); --primary: var(--tg-theme-button-color, #16306f); --primary-ink: var(--tg-theme-button-text-color, #fff); }
body.tg .site-header, body.tg .site-footer, body.tg .notify, body.tg .about-seo { display: none; }
body.tg .tabbar { display: grid; }
body.tg main { padding-bottom: calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.tg-hero { padding-block: 22px 4px; display: grid; gap: 14px; }
.tg-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.3; color: var(--primary); }
.tg-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tg-roles a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; text-decoration: none; }
.tg-notify { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--stub-ink); font-weight: 700; text-decoration: none; }

/* ==========================================================================
   جابه‌جایی نرم بین صفحه‌ها (View Transitions) — سربرگ و نوار پایین ثابت می‌مانند
   ========================================================================== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.tabbar { view-transition-name: tabbar; }
.tab-ind { view-transition-name: tab-ind; }
main { view-transition-name: page; }
::view-transition-group(*) { animation-duration: 300ms; animation-timing-function: var(--ease-out); }
::view-transition-group(tab-ind) { animation-duration: 420ms; animation-timing-function: var(--ease-spring); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
::view-transition-old(page) { animation: vt-out 150ms ease-in both; }
::view-transition-new(page) { animation: vt-in 300ms var(--ease-out) both; }
html:active-view-transition-type(to-left)::view-transition-old(page) { animation-name: vt-out-right; }
html:active-view-transition-type(to-left)::view-transition-new(page) { animation-name: vt-in-left; }
html:active-view-transition-type(to-right)::view-transition-old(page) { animation-name: vt-out-left; }
html:active-view-transition-type(to-right)::view-transition-new(page) { animation-name: vt-in-right; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes vt-out-right { to { opacity: 0; transform: translateX(24px); } }
@keyframes vt-out-left { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-in-right { from { opacity: 0; transform: translateX(28px); } }

/* ---------- حرکت کمتر ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .btn:active, .tab:active .tab-ic, .qa:active { transform: none; }
}
