.smsal-page{padding:28px 0 56px;background:#fff;color:#1f2937}
.smsal-container{width:min(1180px,calc(100% - 32px));margin:0 auto}
.smsal-breadcrumb{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:#64748b;margin-bottom:18px}
.smsal-breadcrumb a{color:#475569;text-decoration:none}

.smsal-hero{margin-bottom:26px}
.smsal-title-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;direction:ltr;width:100%}
.smsal-country-flag{font-size:30px;line-height:1;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.smsal-hero h1{font-size:clamp(24px,2.7vw,32px);line-height:1.45;margin:0;color:#111827;text-align:right;font-weight:700;direction:rtl;flex:1}
.smsal-intro{font-size:16px;line-height:2.05;color:#475569;width:100%;max-width:none;text-align:justify;text-justify:inter-word}
.smsal-intro p,.smsal-content p{margin:0 0 14px;text-align:justify;text-justify:inter-word;line-height:2.05}
.smsal-intro p:last-child,.smsal-content p:last-child{margin-bottom:0}

.smsal-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0 10px}
.smsal-summary-card{border:1px solid #e5e7eb;border-radius:16px;padding:15px 18px;background:#f8fafc;display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;min-height:118px;justify-content:center}
.smsal-summary-card.is-main{background:#fff8dc;border-color:#f0c84b;box-shadow:0 7px 20px rgba(240,200,75,.12)}
.smsal-summary-card small{color:#64748b;font-size:13px}
.smsal-summary-card strong{font-size:23px;color:#111827;line-height:1.35}
.smsal-usd-inline{font-size:12px;color:#2563eb;direction:ltr;unicode-bidi:embed}
.smsal-fx-note{font-size:12px;color:#94a3b8;text-align:center;margin:2px 0 6px}

.smsal-section{margin:44px 0}
.smsal-section-title{font-size:24px;margin:0 0 26px;color:#111827;text-align:right;display:flex;align-items:center;justify-content:flex-start;gap:9px;line-height:1.5;direction:rtl}
.smsal-title-icon{width:34px;height:34px;border-radius:10px;background:#f1f5f9;color:#0f356d;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.smsal-title-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* فقط تیتر دو جدول اصلی وسط چین باشد */
.smsal-salary-table-section .smsal-section-title,.smsal-cities .smsal-section-title{justify-content:center;text-align:center}
.smsal-section-head{display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;gap:0;margin-bottom:26px;text-align:right}
.smsal-section-head .smsal-section-title{margin-bottom:10px;width:100%}
.smsal-section-head a{font-size:14px;text-decoration:none}

.smsal-table-wrap{overflow:auto;border:1px solid #e5e7eb;border-radius:14px}
.smsal-table{width:100%;border-collapse:collapse;min-width:620px;background:#fff}
.smsal-table th,.smsal-table td{padding:14px 16px;border-bottom:1px solid #eef2f7;text-align:right}
.smsal-table thead th{background:#f8fafc;color:#334155}
.smsal-table tbody tr:last-child th,.smsal-table tbody tr:last-child td{border-bottom:0}

.smsal-content{margin-top:42px;margin-bottom:58px}
.smsal-jobs-section{margin-top:70px!important;margin-bottom:50px}

.smsal-hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.smsal-hub-card{border:1px solid #e5e7eb;border-radius:14px;padding:18px;text-decoration:none;display:flex;flex-direction:column;gap:8px;background:#fff;color:#111827;transition:.2s}
.smsal-hub-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(15,23,42,.08)}
.smsal-hub-card span{font-size:14px;color:#64748b}
.smsal-related{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:52px 0}
.smsal-related .smsal-section-title{font-size:21px}
.smsal-link-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.smsal-link-grid a{border:1px solid #e5e7eb;border-radius:10px;padding:12px 14px;text-decoration:none;background:#fff;color:#1f2937}

.smsal-sources ul{margin:0;padding-right:20px;text-align:right}
.smsal-sources li{margin:8px 0}
.smsal-faq-item{border-top:1px solid #e5e7eb;padding:18px 0;text-align:right}
.smsal-faq-item h3{font-size:18px;margin:0 0 8px;text-align:right}
.smsal-faq-item p{margin:0;line-height:1.9;text-align:justify}
.smsal-empty{padding:22px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}

@media(max-width:800px){
  .smsal-page{padding-top:18px}
  .smsal-summary{grid-template-columns:1fr}
  .smsal-hub-grid{grid-template-columns:1fr 1fr}
  .smsal-related{grid-template-columns:1fr}
  .smsal-link-grid{grid-template-columns:1fr}
  .smsal-summary-card{min-height:0;padding:14px 16px}
  .smsal-jobs-section{margin-top:56px!important}
}
@media(max-width:520px){
  .smsal-container{width:min(100% - 22px,1180px)}
  .smsal-title-row{gap:12px}
  .smsal-country-flag{font-size:27px}
  .smsal-hero h1{font-size:24px}
  .smsal-hub-grid{grid-template-columns:1fr}
  .smsal-summary-card strong{font-size:21px}
  .smsal-section-title{font-size:21px;margin-bottom:22px}
  .smsal-related .smsal-section-title{font-size:20px}
}

/* Main salaries archive */
.smsal-archive-page{background:#fff}
.smsal-archive-hero{display:flex;align-items:flex-start;gap:16px;margin:4px 0 28px;padding:22px 24px;border:1px solid #e5e7eb;border-radius:18px;background:#f8fafc}
.smsal-archive-title-icon{width:48px;height:48px;border-radius:14px;background:#fff;color:#0f356d;display:flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #e5e7eb}
.smsal-archive-title-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.smsal-archive-hero h1{font-size:clamp(25px,2.7vw,34px);line-height:1.5;margin:0 0 8px;color:#111827;text-align:right}
.smsal-archive-hero p{margin:0;color:#64748b;line-height:2;text-align:justify}
.smsal-filter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:end;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;margin:0 0 34px;box-shadow:0 7px 24px rgba(15,23,42,.04)}
.smsal-filter-field{display:flex;flex-direction:column;gap:7px}
.smsal-filter-field label{font-size:13px;font-weight:700;color:#334155}
.smsal-filter-field select{width:100%;min-height:46px;border:1px solid #dbe2ea;border-radius:10px;background:#fff;padding:0 12px;color:#1f2937;font:inherit}
.smsal-filter-actions{display:flex;align-items:center;gap:10px;min-height:46px}
.smsal-filter-actions button{border:0;border-radius:10px;background:#0f356d;color:#fff;min-height:46px;padding:0 22px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.smsal-filter-actions a{font-size:13px;text-decoration:none;color:#64748b;white-space:nowrap}
.smsal-archive-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.smsal-archive-head h2{font-size:24px;margin:0;color:#111827;text-align:right}
.smsal-archive-head span{font-size:13px;color:#64748b;background:#f1f5f9;border-radius:999px;padding:6px 11px}
.smsal-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.smsal-archive-card{border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#fff;text-decoration:none;color:#1f2937;display:flex;flex-direction:column;min-height:190px;transition:.2s}
.smsal-archive-card:hover{transform:translateY(-2px);box-shadow:0 9px 25px rgba(15,23,42,.08);border-color:#cbd5e1}
.smsal-archive-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.smsal-archive-flag{font-size:28px;line-height:1}
.smsal-archive-arrow{font-size:21px;color:#94a3b8;direction:ltr}
.smsal-archive-card h3{font-size:18px;line-height:1.7;margin:0 0 10px;color:#111827;text-align:right}
.smsal-archive-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
.smsal-archive-meta span{font-size:12px;color:#475569;background:#f1f5f9;border-radius:999px;padding:5px 9px}
.smsal-archive-salary{margin-top:auto;padding-top:13px;border-top:1px solid #eef2f7!important;border-top-color:#eef2f7!important;display:flex;align-items:center;justify-content:space-between;gap:10px}
.smsal-archive-card:visited .smsal-archive-salary,.smsal-archive-card:active .smsal-archive-salary,.smsal-archive-card:focus .smsal-archive-salary{border-top:1px solid #eef2f7!important;border-top-color:#eef2f7!important}
.smsal-archive-salary small{color:#64748b;font-size:12px}
.smsal-archive-salary strong{font-size:15px;color:#0f356d}
.smsal-archive-empty{margin-top:14px}

@media(max-width:900px){
  .smsal-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .smsal-filter{grid-template-columns:1fr 1fr}
  .smsal-filter-actions{grid-column:1/-1}
}
@media(max-width:600px){
  .smsal-archive-hero{padding:17px;gap:12px}
  .smsal-archive-title-icon{width:42px;height:42px}
  .smsal-archive-hero h1{font-size:24px}
  .smsal-filter{grid-template-columns:1fr;padding:14px}
  .smsal-filter-actions{grid-column:auto;align-items:stretch;flex-direction:column}
  .smsal-filter-actions button{width:100%}
  .smsal-archive-grid{grid-template-columns:1fr}
  .smsal-archive-card{min-height:0}
}

/* Salaries archive pagination - 36 cards per page */
.smsal-pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:34px 0 0;direction:rtl}
.smsal-page-link{min-width:40px;height:40px;padding:0 12px;border:1px solid #dbe2ea;border-radius:10px;background:#fff;color:#334155;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;line-height:1;transition:.2s}
a.smsal-page-link:hover{border-color:#0f356d;color:#0f356d;box-shadow:0 4px 14px rgba(15,53,109,.08)}
.smsal-page-link.is-current{background:#0f356d;border-color:#0f356d;color:#fff;cursor:default}
.smsal-page-prev,.smsal-page-next{padding-inline:16px;min-width:64px}
.smsal-page-dots{height:40px;display:inline-flex;align-items:center;color:#94a3b8;padding:0 2px}
@media(max-width:600px){
  .smsal-pagination{gap:6px;margin-top:26px}
  .smsal-page-link{min-width:36px;height:36px;padding:0 10px}
  .smsal-page-prev,.smsal-page-next{min-width:58px;padding-inline:12px}
  .smsal-page-dots{height:36px}
}


/* Detail page visual refresh - v1.0.16 */
.smsal-detail-page{background:#f6f8fb}
.smsal-detail-page .smsal-breadcrumb{margin-bottom:16px}

.smsal-detail-page .smsal-hero{position:relative;overflow:hidden;background:#fff;border:1px solid #e3e8ef;border-top:3px solid #c89b36;border-radius:20px;padding:24px 26px 22px;margin-bottom:22px;box-shadow:0 10px 28px rgba(15,23,42,.045)}
.smsal-detail-page .smsal-title-row{margin-bottom:12px}
.smsal-detail-page .smsal-country-flag{width:48px;height:48px;border-radius:14px;background:#f8fafc;border:1px solid #e5eaf0;font-size:28px}
.smsal-detail-page .smsal-intro{color:#445266}

.smsal-detail-page .smsal-summary{gap:16px;margin-top:20px}
.smsal-detail-page .smsal-summary-card{background:#fff;border-color:#e0e6ed;box-shadow:0 7px 20px rgba(15,23,42,.045);transition:transform .18s ease,box-shadow .18s ease}
.smsal-detail-page .smsal-summary-card:hover{transform:translateY(-2px);box-shadow:0 11px 26px rgba(15,23,42,.07)}
.smsal-detail-page .smsal-summary-card.is-main{background:#fff8df;border-color:#e6be54;box-shadow:0 9px 24px rgba(200,155,54,.14)}
.smsal-detail-page .smsal-summary-card small{font-weight:600;color:#667085}
.smsal-detail-page .smsal-summary-card strong{color:#13213a}
.smsal-detail-page .smsal-fx-note{margin:8px 0 0;color:#8793a5}

.smsal-detail-page .smsal-section-title{color:#172033}
.smsal-detail-page .smsal-title-icon{background:#eef4fb;color:#0f356d;border:1px solid #e1eaf4}

.smsal-detail-page .smsal-salary-table-section,
.smsal-detail-page .smsal-cities,
.smsal-detail-page .smsal-content,
.smsal-detail-page .smsal-jobs-section,
.smsal-detail-page .smsal-faq{background:#fff;border:1px solid #e3e8ef;border-radius:20px;padding:26px 28px;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.smsal-detail-page .smsal-salary-table-section{margin-top:34px}
.smsal-detail-page .smsal-content{position:relative;border-right:4px solid #c89b36;color:#374151;margin-top:34px;margin-bottom:44px}
.smsal-detail-page .smsal-jobs-section{margin-top:44px!important;margin-bottom:36px}
.smsal-detail-page .smsal-faq{margin-top:36px;margin-bottom:28px}

.smsal-detail-page .smsal-table-wrap{border-color:#dde4ec;border-radius:14px;box-shadow:0 2px 8px rgba(15,23,42,.025);background:#fff;scrollbar-width:thin;scrollbar-color:#c8d0db #f2f4f7}
.smsal-detail-page .smsal-table thead th{background:#eef4fb;color:#22334e;font-weight:700}
.smsal-detail-page .smsal-table tbody tr:nth-child(even){background:#fafbfd}
.smsal-detail-page .smsal-salary-table-section .smsal-table tbody tr:nth-child(2){background:#fff9e8}
.smsal-detail-page .smsal-salary-table-section .smsal-table tbody tr:nth-child(2) th,
.smsal-detail-page .smsal-salary-table-section .smsal-table tbody tr:nth-child(2) td{font-weight:700;color:#172033}
.smsal-detail-page .smsal-table th,.smsal-detail-page .smsal-table td{border-bottom-color:#e9eef4}

.smsal-detail-page .smsal-related{gap:22px;margin:36px 0}
.smsal-detail-page .smsal-related>div{background:#fff;border:1px solid #e3e8ef;border-radius:20px;padding:24px;box-shadow:0 8px 24px rgba(15,23,42,.035)}
.smsal-detail-page .smsal-related .smsal-section-title{margin-bottom:18px}
.smsal-detail-page .smsal-link-grid{gap:10px}
.smsal-detail-page .smsal-link-grid a{background:#f9fbfd;border-color:#e1e7ee;color:#263449;transition:background .18s ease,border-color .18s ease,transform .18s ease,color .18s ease}
.smsal-detail-page .smsal-link-grid a:hover{background:#eef4fb;border-color:#c9d8e8;color:#0f356d;transform:translateY(-1px)}

.smsal-detail-page .smsal-faq-item{border:1px solid #e7ebf0;background:#fafbfd;border-radius:14px;padding:17px 18px;margin:10px 0}
.smsal-detail-page .smsal-faq-item:first-of-type{margin-top:0}
.smsal-detail-page .smsal-faq-item:last-child{margin-bottom:0}
.smsal-detail-page .smsal-faq-item h3{font-size:17px;color:#172033;margin-bottom:7px}
.smsal-detail-page .smsal-faq-item p{color:#4b5563}
.smsal-detail-page .smsal-empty{background:#f8fafc;border-color:#d8e0e9;color:#475569}

@media(max-width:800px){
  .smsal-detail-page .smsal-hero{padding:20px 18px;border-radius:17px}
  .smsal-detail-page .smsal-country-flag{width:43px;height:43px;border-radius:12px;font-size:25px}
  .smsal-detail-page .smsal-salary-table-section,
  .smsal-detail-page .smsal-cities,
  .smsal-detail-page .smsal-content,
  .smsal-detail-page .smsal-jobs-section,
  .smsal-detail-page .smsal-faq{padding:20px 17px;border-radius:17px}
  .smsal-detail-page .smsal-related>div{padding:20px 17px;border-radius:17px}

  /* Main salary table has only four columns, so keep it fully visible on phones instead of horizontal scrolling. */
  .smsal-detail-page .smsal-salary-table-section .smsal-table-wrap{overflow:hidden}
  .smsal-detail-page .smsal-salary-table-section .smsal-table{min-width:0;width:100%;table-layout:fixed}
  .smsal-detail-page .smsal-salary-table-section .smsal-table th,
  .smsal-detail-page .smsal-salary-table-section .smsal-table td{padding:11px 7px;font-size:13px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .smsal-detail-page .smsal-salary-table-section .smsal-table th:first-child,
  .smsal-detail-page .smsal-salary-table-section .smsal-table td:first-child{width:20%;text-align:right}
  .smsal-detail-page .smsal-salary-table-section .smsal-table th:not(:first-child),
  .smsal-detail-page .smsal-salary-table-section .smsal-table td:not(:first-child){width:26.666%}

  /* Larger city tables may still scroll horizontally; momentum scrolling keeps that interaction natural. */
  .smsal-detail-page .smsal-cities .smsal-table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
}

@media(max-width:520px){
  .smsal-detail-page{padding-top:14px}
  .smsal-detail-page .smsal-hero{padding:18px 15px}
  .smsal-detail-page .smsal-summary{gap:11px;margin-top:16px}
  .smsal-detail-page .smsal-summary-card{border-radius:14px}
  .smsal-detail-page .smsal-salary-table-section,
  .smsal-detail-page .smsal-cities,
  .smsal-detail-page .smsal-content,
  .smsal-detail-page .smsal-jobs-section,
  .smsal-detail-page .smsal-faq{padding:18px 13px}
  .smsal-detail-page .smsal-related>div{padding:18px 13px}
  .smsal-detail-page .smsal-salary-table-section .smsal-table th,
  .smsal-detail-page .smsal-salary-table-section .smsal-table td{padding:10px 5px;font-size:12.5px}
}

/* Optional SEO content hierarchy - v1.0.18 */
.smsal-detail-page .smsal-seo-section .smsal-section-title{font-size:23px;margin-bottom:18px}
.smsal-detail-page .smsal-subsection-title{font-size:19px;font-weight:700;color:#172033;line-height:1.6;margin:22px 0 10px;text-align:right}
@media(max-width:600px){.smsal-detail-page .smsal-seo-section .smsal-section-title{font-size:20px}.smsal-detail-page .smsal-subsection-title{font-size:17px}}
