/* ===== ماشین‌حساب مواعد قضایی (طرح «Mohlat») =====
   روی home.css سوار است (رنگ‌ها، هدر، فوتر)؛ فقط بخش‌های خاص این صفحه اینجاست.
   ساختارش هم‌الگوی die.css است (پیشوند mo- به‌جای dc-).
   منطق محاسبه در mohlat.js است (کپی web-app/src/lib/calculators/mohlat.ts). */

.blob1 { top: -260px; right: -160px; height: 640px; width: 640px; background: radial-gradient(closest-side, rgba(48,111,87,.14), rgba(48,111,87,0)); }
.blob2 { top: 40px; left: -220px; height: 560px; width: 560px; background: radial-gradient(closest-side, rgba(0,167,157,.09), rgba(0,167,157,0)); }

/* ---------- هیرو ---------- */
.mo-hero { position: relative; margin: 0 auto; max-width: 1100px; padding: 48px 24px 36px; text-align: center; }
.crumbs { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.crumbs a { padding: 8px 4px; color: var(--soft); }
.crumbs a:hover { color: var(--gd); }
.crumbs .cur { color: var(--sub); }
.mo-kick { margin-top: 18px; }
.mo-hero h1 { margin: 14px 0 0; font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.mo-hero > p { margin: 16px auto 0; max-width: 42rem; font-size: clamp(15.5px, 1.5vw, 17px); line-height: 2.05; color: var(--muted); text-wrap: balance; }
.mo-stats { margin: 26px auto 0; max-width: 720px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mo-stat { border-radius: 20px; border: 1px solid var(--line); background: #ffffff; padding: 16px 20px; text-align: right; }
.mo-stat > div { font-size: 13px; line-height: 1.7; font-weight: 700; color: var(--soft); }
.mo-stat b { display: block; margin-top: 6px; font-size: 24px; line-height: 1.5; font-weight: 900; color: var(--ink); }
.mo-stat small { font-size: 14px; font-weight: 700; color: var(--soft); }
.mo-stat-g { border-color: #c3dacd; background: #f0f6f2; }
.mo-stat-g > div { color: #3f6b57; }

/* ---------- ماشین‌حساب ---------- */
.mo-calc-w { position: relative; margin: 0 auto; max-width: 1100px; padding: 0 24px 32px; }
.mo-calc { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border-radius: 30px; border: 1px solid #dfe9e3; background: #ffffff; box-shadow: 0 1px 2px rgba(16,40,32,.04), 0 40px 80px -56px rgba(16,48,36,.45); }
.mo-form { display: flex; flex-direction: column; gap: 18px; padding: 34px; }
.mo-f > label, .mo-lblrow label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--sub); }
.mo-lblrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mo-lblrow label { margin-bottom: 0; }
.mo-today { border: none; background: transparent; cursor: pointer; padding: 2px 4px; font-size: 12.5px; font-weight: 700; color: var(--g); }
.mo-today:hover { color: var(--gd); }
.mo-today[hidden] { display: none; }
.mo-date { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.mo-form select { width: 100%; height: 50px; border-radius: 13px; border: 1px solid #d7e3db; background: #ffffff; padding: 0 12px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.mo-form select:focus { border-color: #a9cbb7; box-shadow: 0 0 0 3px rgba(48,111,87,.12); }
.mo-checks { display: flex; flex-direction: column; gap: 10px; }
.mo-check { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #fafcfb; cursor: pointer; padding: 13px 15px; transition: all .2s; }
.mo-check[hidden] { display: none; }
.mo-check input { position: absolute; opacity: 0; pointer-events: none; }
.mo-check:has(input:focus-visible) { outline: 2px solid var(--g); outline-offset: 2px; }
.mo-chk { display: grid; flex-shrink: 0; height: 22px; width: 22px; margin-top: 2px; place-items: center; border-radius: 7px; border: 1.5px solid #b9c7be; background: #ffffff; }
.mo-chk svg { visibility: hidden; }
.mo-check b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.mo-check b + span { font-size: 12.5px; line-height: 1.8; color: var(--soft); }
.mo-check.on { border-color: var(--g); background: #f0f6f2; }
.mo-check.on .mo-chk { border-color: var(--g); background: var(--g); }
.mo-check.on .mo-chk svg { visibility: visible; }
.mo-warn { margin: 0; border-radius: 12px; background: #fdf0e7; padding: 10px 12px; font-size: 13px; line-height: 1.9; color: #9a3b12; }
.mo-warn[hidden] { display: none; }
.mo-disc { margin: auto 0 0; font-size: 12.5px; line-height: 1.9; color: var(--faint); }

.mo-out { position: relative; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(160deg, #337a5e 0%, #27583f 55%, #1b4230 100%); padding: 34px; }
.mo-out-mark { pointer-events: none; position: absolute; bottom: -50px; left: -20px; height: 220px; opacity: .07; }
.mo-out-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.8); }
.mo-live { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(255,255,255,.14); padding: 3px 10px; font-size: 11.5px; font-weight: 700; color: #ffffff; }
.mo-live[hidden] { display: none; }
.mo-live i { height: 6px; width: 6px; border-radius: 999px; background: #7fe0b0; }
.mo-result { position: relative; margin-top: 10px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 900; line-height: 1.3; color: #ffffff; }
.mo-wdrow { position: relative; margin-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.85); }
.mo-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 800; background: rgba(255,255,255,.16); color: #ffffff; }
.mo-pill[hidden] { display: none; }
.mo-pill.late { background: #fdf0e7; color: #9a3b12; }
.mo-rows { position: relative; margin: 18px 0; }
.mo-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.mo-rows > div[hidden] { display: none; }
.mo-rows dt { flex-shrink: 0; color: rgba(255,255,255,.75); }
.mo-rows dd { margin: 0; font-weight: 800; line-height: 1.7; color: #ffffff; text-align: left; }
.mo-rows dd.sm { font-size: 13px; }
.mo-rows dd.hl { color: #b8f0d2; }
.mo-rows dd.warm { color: #ffc9a8; }
.mo-basis { position: relative; margin-bottom: 18px; border-radius: 12px; background: rgba(255,255,255,.1); padding: 10px 12px; }
.mo-basis[hidden] { display: none; }
.mo-basis > div { font-size: 11.5px; font-weight: 800; color: rgba(255,255,255,.7); }
.mo-basis p { margin: 4px 0 0; max-height: 170px; overflow: auto; font-size: 13px; line-height: 1.95; color: rgba(255,255,255,.9); }
.mo-print { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 13px; padding: 12px; font-size: 14.5px; font-weight: 800; border: none; background: #ffffff; color: var(--gd); cursor: pointer; transition: all .2s; }
.mo-print:hover { background: #f1f7f3; }

.mo-strip { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; border-radius: 22px; border: 1px solid #c3dacd; background: linear-gradient(120deg, #eef6f1, #e3f1ec); padding: 18px 22px; }
.mo-strip > div { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; line-height: 1.85; color: var(--ink); }
.mo-strip-ic { display: grid; height: 44px; width: 44px; flex-shrink: 0; place-items: center; border-radius: 13px; background: var(--grad); }
.mo-strip-ic img { height: 22px; display: block; }
.mo-strip > a { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 12px; background: var(--grad); padding: 12px 20px; font-size: 14.5px; font-weight: 700; color: #ffffff; }
.mo-strip > a:hover { color: #ffffff; filter: brightness(1.06); }

/* ---------- عنوان بخش‌ها ---------- */
.mo-head { text-align: center; }
.mo-head h2 { margin: 14px 0 0; font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.mo-head p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.95; color: var(--muted); }

/* ---------- جدول مواعد ---------- */
.mo-sec { position: relative; margin: 0 auto; max-width: 980px; padding: 80px 24px 88px; }
.mo-tabs-w { margin-top: 22px; display: flex; justify-content: center; }
.mo-tabs { display: flex; gap: 3px; max-width: 100%; overflow-x: auto; border-radius: 14px; background: #e6efe9; padding: 4px; scrollbar-width: none; }
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tabs button { flex-shrink: 0; white-space: nowrap; border: none; border-radius: 10px; cursor: pointer; padding: 9px 18px; font-size: 14px; font-weight: 700; background: transparent; color: var(--soft); transition: all .2s; }
.mo-tabs button[aria-selected="true"] { background: #ffffff; color: var(--gd); box-shadow: 0 1px 2px rgba(16,40,32,.08), 0 6px 14px -8px rgba(16,40,32,.2); }
.mo-tbl-w { margin-top: 18px; overflow: hidden; border-radius: 22px; border: 1px solid #dfe9e3; background: #ffffff; }
.mo-tp[hidden] { display: none; }
.mo-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mo-tbl th { background: #f0f6f2; padding: 14px 10px; font-size: 13px; font-weight: 800; color: #3f6b57; text-align: center; }
.mo-tbl th:nth-child(1) { text-align: right; padding-inline: 16px 10px; }
.mo-tbl th:nth-child(2), .mo-tbl th:nth-child(3) { width: 18%; }
.mo-tbl td { padding: 12px 10px; border-top: 1px solid var(--line2); font-size: 14px; text-align: center; transition: background .15s; }
.mo-tbl td:nth-child(1) { text-align: right; padding-inline: 16px 10px; }
.mo-tbl td:nth-child(2) { font-weight: 800; color: var(--gd); }
.mo-tbl td:nth-child(3) { font-weight: 700; color: var(--muted); }
.mo-tbl tbody tr { cursor: pointer; }
.mo-tbl tbody tr:nth-child(even) td { background: #fafcfb; }
.mo-tbl tbody tr:hover td { background: #eef6f1; }
.mo-tbl tbody tr.cur td { background: #e6f1ea; }
.mo-pick { display: block; width: 100%; border: none; background: transparent; cursor: pointer; padding: 0; text-align: right; font-size: inherit; font-weight: 700; line-height: 1.8; color: var(--ink); }
.mo-pick:focus-visible { outline: 2px solid var(--g); outline-offset: 3px; border-radius: 4px; }
/* همه‌ی ردیف‌ها در HTML هستند (برای گوگل)؛ تا زدن «نمایش همه» فقط ۱۲ ردیف اول دیده می‌شود */
.mo-tbl:not(.all) tbody tr:nth-child(n+13) { display: none; }
.mo-more { margin-top: 14px; text-align: center; }
.mo-more[hidden] { display: none; }
.mo-more button { border: 1px solid #cfe0d6; background: #ffffff; cursor: pointer; border-radius: 12px; padding: 10px 20px; font-size: 14px; font-weight: 700; color: var(--gd); }
.mo-more button:hover { background: #f2f6f3; }
.mo-tnote { margin: 16px 0 0; font-size: 13px; line-height: 1.9; color: var(--faint); text-align: center; text-wrap: pretty; }

/* ---------- راهنما ---------- */
.mo-guide { background: var(--mint); border-top: 1px solid var(--line2); }
.mo-guide-in { margin: 0 auto; max-width: 1000px; padding: 80px 24px 88px; }
.mo-intro { margin: 18px auto 0; max-width: 46rem; text-align: center; font-size: 16.5px; line-height: 2.1; color: var(--sub); text-wrap: pretty; }
.mo-formula { margin: 30px auto 0; max-width: 860px; border-radius: 26px; border: 1px solid #dfe9e3; background: linear-gradient(160deg, #ffffff, #f3f9f5); padding: 30px 32px; box-shadow: 0 1px 2px rgba(16,40,32,.04), 0 30px 60px -48px rgba(16,48,36,.4); }
.mo-f-t { text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; color: var(--g); }
.mo-f-row { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tk { display: inline-flex; align-items: center; border-radius: 10px; border: 1px solid #cfe0d6; background: #ffffff; padding: 10px 14px; font-size: 14.5px; font-weight: 800; line-height: 1.5; white-space: nowrap; color: var(--ink); }
.tk-g { border-color: var(--g); background: var(--g); color: #ffffff; }
.op { font-size: 22px; font-weight: 900; color: #6b8a79; }
.mo-ex { margin-top: 20px; display: flex; gap: 12px; border-radius: 16px; background: var(--mint2); padding: 14px 16px; }
.mo-ex > span { display: grid; height: 30px; min-width: 30px; flex-shrink: 0; place-items: center; border-radius: 9px; background: var(--g); padding: 0 6px; font-size: 13px; font-weight: 900; color: #ffffff; }
.mo-ex > div { min-width: 0; }
.mo-ex-main { margin: 0; font-size: 15px; font-weight: 700; line-height: 2; color: #27402f; }
.mo-ex-sub { margin: 2px 0 0; font-size: 13px; line-height: 1.9; color: #54705f; }
.mo-cards { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mo-card { display: flex; flex-direction: column; scroll-snap-align: start; border-radius: 24px; border: 1px solid #d3e2d9; background: #ffffff; padding: 24px; box-shadow: 0 1px 2px rgba(16,40,32,.04); }
.mo-card-ic { display: grid; height: 46px; width: 46px; place-items: center; border-radius: 14px; background: var(--mint2); color: var(--g); }
.mo-card h3 { margin: 16px 0 0; font-size: 17.5px; font-weight: 800; line-height: 1.7; color: var(--ink); }
.mo-card p { margin: 8px 0 0; font-size: 14.5px; line-height: 2.05; color: var(--muted); }
.mo-card p a { font-weight: 700; color: var(--g); }

/* ---------- پرسش‌ها (مثل صفحه‌ی تماس) ---------- */
.mo-faq { background: #ffffff; border-top: 1px solid var(--line2); }
.mo-faq-in { margin: 0 auto; max-width: 820px; padding: 80px 24px 88px; }
.faqs { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faqs details { overflow: hidden; border-radius: 18px; border: 1px solid #e3ece6; background: #ffffff; transition: all .2s; }
.faqs details[open] { border-color: #cfe0d6; box-shadow: 0 18px 40px -30px rgba(16,48,36,.4); }
.faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; padding: 18px 20px; list-style: none; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary:focus-visible { outline: 2px solid var(--g); outline-offset: -2px; border-radius: 18px; }
.fq-ic { display: grid; flex-shrink: 0; height: 30px; width: 30px; place-items: center; border-radius: 10px; background: var(--mint2); color: var(--g); transition: transform .25s; }
.faqs details[open] .fq-ic { background: var(--g); color: #ffffff; transform: rotate(45deg); }
.faqs details p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 2.05; color: var(--muted); animation: rise .3s var(--ease) both; }

/* ---------- موبایل ---------- */
@media (max-width: 820px) {
  .mo-hero { padding: 32px 20px 28px; }
  .mo-stat { padding: 12px 14px; }
  .mo-stat > div { font-size: 11.5px; }
  .mo-stat b { font-size: 17px; }
  .mo-stat small { font-size: 11.5px; }
  .mo-calc-w { padding: 0 14px 32px; }
  .mo-calc { grid-template-columns: minmax(0, 1fr); }
  .mo-form, .mo-out { padding: 22px 20px; }
  .mo-strip { flex-direction: column; align-items: stretch; padding: 18px; }
  .mo-strip > div { align-items: flex-start; font-size: 14px; }
  .mo-sec { padding: 56px 14px 64px; }
  .mo-guide-in, .mo-faq-in { padding: 56px 20px 64px; }
  .mo-tabs button { padding: 8px 8px; font-size: 12.5px; }
  .mo-tbl th, .mo-tbl td { padding-inline: 6px; }
  .mo-tbl th:nth-child(1), .mo-tbl td:nth-child(1) { padding-inline: 12px 6px; }
  .mo-tbl th:nth-child(2), .mo-tbl th:nth-child(3) { width: 68px; }
  .mo-tbl td { font-size: 13px; }
  .mo-ex-main { font-size: 14px; }
  .mo-formula { padding: 20px 12px; }
  .mo-f-row { gap: 4px; flex-wrap: nowrap; }
  .tk { padding: 6px 7px; font-size: min(12px, 3.2vw); }
  .op { font-size: min(15px, 3.8vw); }
  /* کارت‌های راهنما: ردیف افقی با اسکرول */
  .mo-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 8px; scroll-padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .faqs details p { animation: none; }
}
