/* Homepage SEO article row (inc-home-content.php): full-width band right before the footer. */
.ex-home-guide{padding:8px 0 64px}
.ex-home-guide-box{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 34px rgba(19,53,92,.06);padding:36px 40px 32px}
@media(max-width:600px){.ex-home-guide-box{padding:22px 16px 20px;border-radius:14px}}
.ex-home-guide-content,.ex-home-guide-content p,.ex-home-guide-content li{color:#3d5368}
.ex-home-guide-content>:first-child{margin-top:0}
.ex-home-guide-content h2{scroll-margin-top:100px;color:var(--ink);margin:44px 0 14px;padding-top:28px;border-top:1px solid #edf2f8}
.ex-home-guide-content h2:first-child{border-top:0;padding-top:0}
.ex-home-guide-content h3{color:var(--ink);margin:28px 0 10px}
.ex-home-guide-content a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.ex-home-guide-content ul,.ex-home-guide-content ol{padding-inline-start:24px;margin:0 0 20px}
.ex-home-guide-content li{margin-bottom:8px}
.ex-home-guide-content figure{margin:28px 0}
.ex-home-guide-content img{max-width:100%;height:auto;border-radius:12px;margin-inline:auto}

/* Tables: wrap text (the base stylesheet sets nowrap on th/td), borders, zebra rows, own scroll box on mobile. */
.ex-home-guide-table{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:20px 0 28px;border:1px solid var(--line);border-radius:12px;background:#fff}
.ex-home-guide-table table{display:table;width:100%;min-width:560px;border-collapse:collapse;font-size:14px;margin:0}
.ex-home-guide-table th,.ex-home-guide-table td{white-space:normal;padding:12px 14px;border-bottom:1px solid #eef3f8;text-align:right;vertical-align:top;line-height:1.9}
.ex-home-guide-table thead th{background:#e9f3fd;color:#2d4d6c;font-weight:800}
.ex-home-guide-table tbody tr:nth-child(even){background:#f8fbfe}
.ex-home-guide-table tbody tr:last-child>*{border-bottom:0}

/* Table of contents */
.ex-home-guide-toc{background:var(--paper);border:1px solid var(--line);border-radius:12px;margin:0 0 36px}
.ex-home-guide-toc summary{display:flex;align-items:center;gap:10px;padding:14px 18px;cursor:pointer;font-weight:800;color:var(--ink);list-style:none}
.ex-home-guide-toc summary::-webkit-details-marker{display:none}
.ex-home-guide-toc summary .icon{width:20px;height:20px;color:var(--accent)}
.ex-home-guide-toc summary small{margin-inline-start:auto;font-weight:500;color:var(--muted);font-size:13px}
.ex-home-guide-toc ol{margin:0;padding:0 40px 16px 18px;columns:2;column-gap:32px;font-size:14px}
.ex-home-guide-toc li{break-inside:avoid;margin-bottom:6px}
.ex-home-guide-toc a{color:#2d4d6c}
.ex-home-guide-toc a:hover{color:var(--accent)}

@media (max-width:760px){
  .ex-home-guide{padding:0 0 48px}
  .ex-home-guide-content h2{margin-top:32px;padding-top:22px}
  .ex-home-guide-toc ol{columns:1}
  .ex-home-guide-table table{font-size:13px}
}
.ex-home-guide-table th,.ex-home-guide-table td{overflow-wrap:normal;word-break:normal}
.ex-home-guide-table tr>:first-child{white-space:nowrap}
.ex-home-guide-toc ol,.ex-home-guide-content ol{list-style-type:persian}

/* Preview + «مشاهده کامل» */
.ex-home-guide-preview>:last-child{margin-bottom:0}

.ex-home-guide-more{margin-top:8px}
.ex-home-guide-toggle{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;margin-top:18px;border:1px solid #cfe2f6;border-radius:12px;background:#f2f8ff;color:var(--accent);font-weight:800;font-size:15px;cursor:pointer;list-style:none;transition:background-color .15s,border-color .15s}
.ex-home-guide-toggle::-webkit-details-marker{display:none}
.ex-home-guide-toggle:hover{background:#e6f2ff;border-color:#a9cdf3}
.ex-home-guide-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.ex-home-guide-toggle .icon{width:18px;height:18px;transform:rotate(-90deg)}
.ex-home-guide-more[open]>.ex-home-guide-toggle{display:none}
.ex-home-guide-rest>:first-child{margin-top:20px}
