/* راهنمای خدمات شهری — صفحه‌ی بحران ایستا (DEC-103). موبایل اول، RTL، بی منبع بیرونی. داوری چیدمان: Design-Guard. */
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-Regular.subset.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/vazirmatn-Bold.subset.woff') format('woff'); font-weight: 700; font-display: swap; }

:root {
  --bg: #f7f7f5; --surface: #ffffff; --text: #1c1917; --muted: #57534e; --line: #e7e5e4;
  --accent: #0f766e; --accent-ink: #ffffff; --chip: #ecfdf5; --chip-ink: #115e59;
  --focus: #b45309;        /* نگهبان: ۴٫۶۸ روی پس‌زمینه (کف ۳:۱)؛ #f59e0b در روشن فقط ۲٫۰ بود */
  --field-line: #78716c;   /* نگهبان: مرز جعبه‌ی جست‌وجو، مهم‌ترین کنترل صفحه (۴٫۸ روشن، ۳٫۶ تیره) */
  --warn-surface: #fffbeb; --warn-ink: #92400e; --warn-line: #d97706;   /* نگهبان: قرص «بررسی‌نشده» */
  --radius: 12px; --gap: 12px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0a09; --surface: #1c1917; --text: #f5f5f4; --muted: #a8a29e; --line: #292524;
          --accent: #2dd4bf; --accent-ink: #042f2e; --chip: #134e4a; --chip-ink: #ccfbf1; --focus: #f59e0b;
          --warn-surface: #422006; --warn-ink: #fde68a; --warn-line: #f59e0b; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.9 'Vazirmatn', Tahoma, sans-serif; }
a { color: var(--accent); }
a:focus-visible, input:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
.brand { margin: 0; font-size: 13px; color: var(--muted); direction: ltr; text-align: right; }
h1 { margin: 4px 0 6px; font-size: 24px; line-height: 1.5; }
.lead { margin: 0; color: var(--muted); }

.search { margin: 16px 0 8px; }
.search input { width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; font-size: 18px; color: var(--text);
  background: var(--surface); border: 2px solid var(--field-line); border-radius: var(--radius); }
.search input:focus { border-color: var(--accent); }
#q::placeholder { color: var(--muted); opacity: 1; }   /* نگهبان: پیش‌فرض مرورگر در تیره ۳٫۸ بود */
.status { margin: 4px 0 12px; color: var(--muted); font-size: 14px; min-height: 1.9em; }

.results { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { .results { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .results { grid-template-columns: 1fr 1fr 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.6; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); }
.row { margin: 0; font-size: 14px; color: var(--muted); }
.call { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 8px 14px;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.call .num { direction: ltr; unicode-bidi: isolate; letter-spacing: .5px; }
.web { font-size: 14px; align-self: flex-start; }
.card-foot { margin-top: 2px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
/* نگهبان (۱۱-۱۳، هدف آرتیتکت «کاربر درستی را تخمین بزند»): بررسی‌شده = نقطه‌ی فیروزه‌ای + متن آرام؛ بررسی‌نشده = قرص کهربایی ضخیم.
   تمایز با شکل، رنگ و واژه، نه فقط رنگ. قرص کنش‌پذیر نیست (قاعده‌ی ۴۴px نه)؛ «این شماره غلط است» بعدها دکمه‌ی جدا در همین ردیف، سمت چپ. */
.check { display: inline-flex; align-items: center; gap: 6px; }
.check::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.check.is-unchecked { padding: 1px 10px; border-radius: 999px; border: 1px solid var(--warn-line); background: var(--warn-surface); color: var(--warn-ink); font-weight: 700; }
.check.is-unchecked::before { background: var(--warn-line); }

.tiles { margin: 24px 0 8px; }
.tiles h2, .all summary { font-size: 16px; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }

.all { margin: 16px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
/* نگهبان: ناحیه‌ی کلیک ۳۰ ⇒ ۴۴. ⚠️ display:list-item نه flex — flex مثلث باز/بسته را در کروم برمی‌دارد و نشانه‌ی «باز می‌شود» گم می‌شود */
.all summary { cursor: pointer; margin: 0; display: list-item; min-height: 44px; padding: 10px 0; line-height: 24px; box-sizing: border-box; }
.all[open] { padding-bottom: 10px; }
/* هدف لمسی ≥۴۴ در اشاره‌گر درشت (03-design-system §۴) — «این شماره غلط است» هم که بعدها در پای کارت می‌آید همین را بگیرد */
@media (pointer: coarse) {
  .chip, .web, .card-foot button, .card-foot a { min-height: 44px; display: inline-flex; align-items: center; }
}
.group h3 { font-size: 15px; margin: 12px 0 4px; }
.group ul { margin: 0; padding-inline-start: 18px; }
.group li { margin: 2px 0; }

.foot { border-top: 1px solid var(--line); padding: 16px 0 32px; color: var(--muted); font-size: 13px; }
.foot p { margin: 2px 0; }
/* شناسه‌ی منبع (sha256 ِ فایل ردیف‌ها، حکم معمار ۱۱-۱۳): برای سنجش «کدام نسخه روی زنده است» با گوشی؛ کم‌رنگ‌تر از متن پا نیست، فقط کوچک‌تر */
.foot .ver { font-size: 12px; }
