/* پودنامه — افزوده‌ها روی پوستهٔ کاروانسرا. رنگ اصلی (روناسی) از پنل تنظیم می‌شود. */
.hero-search { display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 14px; max-width: 620px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search input { flex: 1; border: 0; font: inherit; padding: 10px 12px; color: var(--ink); background: transparent; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search select { border: 0; border-inline-start: 1px solid var(--line); font: inherit; color: var(--ink); background: transparent; padding: 0 8px; }
.hero-kinds { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; color: #c3cbdc; font-size: .9rem; }
.hero-kinds a { color: #fff; border-bottom: 1px dashed var(--accent); }
.arch-card b { font-size: 1.05rem; }

/* فهرست */
.list-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; margin-top: 26px; }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 86px; }
.filter-box label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.filter-box input, .filter-box select, .form-x input, .form-x select, .form-x textarea {
  font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 10px; background: #fff; width: 100%; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.check input { width: auto; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.list-head h1 { font-family: var(--font-display); font-size: 1.7rem; }
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.sorts a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .85rem; }
.sorts a[aria-current="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.biz-list { display: flex; flex-direction: column; gap: 10px; }
.biz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.biz:hover { box-shadow: 0 10px 24px rgba(27,42,74,.08); }
.biz-ic { width: 52px; height: 52px; border-radius: 50% 50% 10px 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.4rem; }
.biz h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.6; }
.biz .meta { color: var(--muted); font-size: .82rem; display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 2px; }
.biz .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.tag.ok { background: #e3f4ea; color: #17643b; }
.tag.warn { background: #fdf0d9; color: #7a4b00; }
.tag.off { background: #f1e3e5; color: #7a2531; }
.tag.sp { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.sponsored-box { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 10px; margin-bottom: 14px; background: #fffaf0; }
.sponsored-box > small { color: #7a4b00; display: block; margin-bottom: 6px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pager span.cur { background: var(--night); color: #fff; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* پروفایل */
.crumbs { font-size: .82rem; color: var(--muted); margin-top: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--primary); }
.profile-head { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; margin: 14px 0 22px; }
.profile-head .biz-ic { width: 84px; height: 84px; font-size: 2.2rem; }
.profile-head h1 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; }
.profile-head .meta { color: var(--muted); display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .9rem; }
.profile-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.signals { list-style: none; }
.sig { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.sig:first-child { border-top: 0; }
.sig > i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; background: var(--surface-2); color: var(--muted); }
.sig.found > i { background: #e3f4ea; color: #17643b; }
.sig.notfound > i { background: #f6efe1; color: #7a5a14; }
.sig b { display: block; }
.sig p { font-size: .9rem; line-height: 1.8; }
.sig small { color: var(--muted); font-size: .76rem; display: block; margin-top: 2px; }
.sig small a { color: var(--primary); }
.timeline { list-style: none; padding: 6px 18px 14px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.timeline li:last-child { border-bottom: 0; }
.timeline .k { font-weight: 700; }
.timeline a { color: var(--primary); }
.facts-list { padding: 8px 18px 14px; display: grid; gap: 8px; font-size: .9rem; }
.facts-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.facts-list div:last-child { border-bottom: 0; }
.facts-list dt { color: var(--muted); }
.facts-list dd { margin: 0; font-weight: 600; text-align: left; }
.note-box { padding: 14px 18px; font-size: .85rem; color: var(--muted); line-height: 1.9; }
.stack-gap { display: flex; flex-direction: column; gap: 18px; }

/* آمار */
.bars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 4px; align-items: end; height: 220px; padding: 16px 18px 0; }
.bars .col { display: flex; gap: 2px; align-items: end; height: 100%; }
.bars .f { background: var(--primary); width: 50%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bars .d { background: var(--accent); width: 50%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bars-x { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); overflow: hidden; gap: 4px; padding: 4px 18px 14px; font-size: .62rem; color: var(--muted); text-align: center; }
.legend { display: flex; gap: 16px; font-size: .82rem; padding: 0 18px 14px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 5px; }
.hbar { display: grid; grid-template-columns: 140px 1fr 60px; gap: 10px; align-items: center; padding: 7px 18px; font-size: .88rem; }
.hbar .track { background: var(--surface-2); border-radius: 6px; height: 10px; overflow: hidden; }
.hbar .fill { background: var(--primary); height: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th, .data-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.data-table th { color: var(--muted); font-weight: 600; background: var(--surface-2); }

/* متن */
.prose { max-width: 820px; line-height: 2.1; }
.prose h2 { font-family: var(--font-display); margin: 30px 0 10px; font-size: 1.4rem; }
.prose h3 { margin: 20px 0 6px; font-size: 1.05rem; }
.prose ul, .prose ol { padding-inline-start: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; direction: ltr; display: inline-block; }
.page-hero { background-color: var(--night); background-image: var(--girih-light); background-size: 80px 80px; color: #fff; padding: 40px 0; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.page-hero p { color: #c3cbdc; margin-top: 8px; max-width: 70ch; }

/* فرم */
.form-x { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-x .full { grid-column: 1 / -1; }
.form-x label { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; }
.form-x .err { color: #a8323e; font-size: .8rem; }

.city-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.city-grid a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .9rem; }
.city-grid a small { color: var(--muted); margin-inline-start: 4px; }
.foot-grid a:hover { color: #fff; }
.foot-note { font-size: .78rem; color: #93a0bb; margin-top: 14px; line-height: 1.9; }

@media (max-width: 1000px) {
  .list-layout, .profile-grid { grid-template-columns: 1fr; }
  .filter-box { position: static; }
}
@media (max-width: 640px) {
  .biz { grid-template-columns: 44px 1fr; }
  .biz-ic { width: 44px; height: 44px; font-size: 1.1rem; }
  .biz .tags { grid-column: 1 / -1; justify-content: flex-start; }
  .profile-head { grid-template-columns: 60px 1fr; }
  .profile-head .biz-ic { width: 60px; height: 60px; font-size: 1.5rem; }
  .profile-head .actions { grid-column: 1 / -1; }
  .form-x { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 100px 1fr 44px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .bars-x span:not(:nth-child(4n)) { visibility: hidden; }
  .bars, .bars-x { padding-inline: 8px; gap: 2px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search select { border: 0; border-top: 1px solid var(--line); width: 100%; padding: 8px; }
}

/* پنل */
.pn-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 18px; }
.pn-form .span-2 { grid-column: 1 / -1; }
.pn-form label, .sig-form label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--ink); }
.pn-form input:not([type=checkbox]):not([type=color]), .pn-form select, .pn-form textarea,
.sig-form input:not([type=checkbox]), .sig-form select, .tbl-tools input, .tbl-tools select {
  font: inherit; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: #fff; color: var(--ink); width: 100%; }
.pn-form .chk { flex-direction: row; align-items: center; gap: 8px; }
.pn-form .help { color: var(--muted); font-size: .76rem; }
.pn-form .err, .sig-form .err { color: #a8323e; font-size: .78rem; }
.sig-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 18px; align-items: end; border-top: 1px dashed var(--line); }
.form-foot { padding: 0 18px 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.tbl-wrap { overflow-x: auto; }
.tbl-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: end; }
.tbl-tools > * { flex: 1 1 150px; }
.tbl-tools .btn { flex: 0 0 auto; }
.data-table td .tag { margin-inline-end: 3px; }
.data-table tr:hover td { background: #fafbf9; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 18px; }
.kv div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.kv b { font-size: 1.25rem; }
.kv span { color: var(--muted); font-size: .8rem; }
.meter { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--primary); }
.set-group { margin-bottom: 18px; }
.login-box { max-width: 420px; margin: 70px auto; }
.ts-wrapper { width: 100%; }
@media (max-width: 760px) { .pn-form, .sig-form, .kv { grid-template-columns: 1fr; } }
