/**
 * Ready-made site pages and the 404 page. White cards, soft borders, the
 * plugin's font. Scoped under .rsp (pages) and .rsp-nf (404).
 */

body.rs-site-page .entry-header,
body.rs-site-page .page-header,
body.rs-site-page .entry-title,
body.rs-site-page .page-title { display: none; }

.rsp { max-width: var( --rs-page-w, 1200px ); margin: 0 auto; padding: 24px 16px 56px; color: #23254b; font-size: 15px; line-height: 2; box-sizing: border-box; }
.rsp *, .rsp *::before, .rsp *::after { box-sizing: border-box; }
.rsp a { color: inherit; }
.rsp svg { width: 20px; height: 20px; flex: 0 0 auto; }

.rsp__head { text-align: center; margin: 12px 0 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rsp__head--start { align-items: flex-start; text-align: start; }
.rsp__head h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.6; color: #1f2333; }
.rsp__head p { margin: 0; color: #62666d; max-width: 640px; }
.rsp__head small { color: #9da0a8; }
.rsp__icon { width: 64px; height: 64px; border-radius: 50%; background: #eef3fb; color: var( --rs-primary, #183661 ); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.rsp__icon svg { width: 30px; height: 30px; }

.rsp__card { background: #fff; border: 1px solid #e6e9f0; border-radius: 22px; padding: 12px 12px; margin-bottom: 18px;  }
.rsp__card h2 { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: #1f2333; padding-bottom: 10px; border-bottom: 2px solid var( --rs-primary, #183661 ); display: inline-block; }
.rsp__line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; color: #4a4d6a; }
.rsp__small { font-size: 13px; color: #8a90a0; margin: 6px 0; }
.rsp__map { margin: 16px 0 6px; border-radius: 16px; overflow: hidden; border: 1px solid #e6e9f0; }
.rsp__map iframe { display: block; width: 100%; height: 280px; border: 0; }
.rsp__hours { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 12px; padding-top: 16px; border-top: 1px solid #edf0f5; font-weight: 700; }
.rsp__boxes { display: grid; grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) ); gap: 12px; }
.rsp__box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; border-radius: 16px; background: #f6f8fb; border: 1px solid #edf0f5; text-decoration: none; text-align: center; }
.rsp__box strong { font-size: 14.5px; }
.rsp__box span { color: #3c4150; font-weight: 700; }
a.rsp__box:hover { background: #eef3fb; }
.rsp__note { display: flex; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #edf0f5; font-size: 13.5px; color: #62666d; }
.rsp__days { display: grid; grid-template-columns: repeat( auto-fit, minmax( 222px, 1fr ) ); gap: 10px; margin-top: 10px; }
.rsp__days div { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 14px; background: #f6f8fb; border: 1px solid #edf0f5; text-align: center; }
.rsp__days b { font-size: 21px; }
.rsp__days small { color: #8a90a0; font-size: 13px; }

.rsp__prose { font-size: 15px; line-height: 2.2; color: #3c4150; }
.rsp__prose h2 { font-size: 19px; margin: 28px 0 8px; color: #1f2333; scroll-margin-top: 90px; }
.rsp__prose h3 { font-size: 16px; margin: 18px 0 6px; }
.rsp__prose p { margin: 0 0 12px; }
.rsp__prose img { max-width: 100%; height: auto; border-radius: 14px; }
.rsp__prose ul, .rsp__prose ol { padding-inline-start: 22px; }
.rsp__h2 { font-size: 19px; margin: 34px 0 12px; font-weight: 800; color: #1f2333; }
.rsp__h2--c { text-align: center; }

.rsp__stats { display: grid; grid-template-columns: repeat( auto-fit, minmax( 140px, 1fr ) ); gap: 12px; margin: 22px 0; }
.rsp__stats div { background: #f6f8fb; border-radius: 16px; padding: 16px; text-align: center; display: flex; flex-direction: column; }
.rsp__stats b { font-size: 24px; color: var( --rs-primary, #183661 ); }
.rsp__stats span { font-size: 13.5px; color: #62666d; }

.rsp__gallery { display: grid; grid-template-columns: repeat( 4, 1fr ); gap: 12px; margin: 22px 0; grid-auto-flow: dense; }
.rsp__gallery figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #eef1f6; }
.rsp__gallery figure.s2 { grid-column: span 2; }
.rsp__gallery figure.s3 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.rsp__gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rsp__chips { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc( 100% - 20px ); }
.rsp__chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 999px; background: rgba( 255, 255, 255, .88 ); backdrop-filter: blur( 8px ); -webkit-backdrop-filter: blur( 8px ); color: #23254b; font-size: 12.5px; font-weight: 700; text-decoration: none; line-height: 1.6; }
.rsp__chip img, .rsp__chip i { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #dfe6f3; flex: none; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; }
.rsp__gallery figcaption { position: absolute; inset-inline: 8px; bottom: 8px; padding: 9px 14px; border-radius: 14px; background: rgba( 255, 255, 255, .78 ); backdrop-filter: blur( 12px ); -webkit-backdrop-filter: blur( 12px ); color: #23254b; text-align: start; display: flex; flex-direction: column; gap: 1px; }
.rsp__gallery figcaption strong { font-size: 14.5px; font-weight: 800; line-height: 1.7; }
.rsp__gallery figcaption span { font-size: 12.5px; color: #4a4f66; line-height: 1.8; }
.rsp__gallery figure.s1 figcaption span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.rsp__sthteam { background: #fcf3e9; border-radius: 28px; padding: 34px 32px 30px; margin: 26px 0; }
.rsp__sthteam h2 { margin: 0 0 22px; display: inline-block; padding-inline-start: 14px; border-inline-start: 3px solid var( --rs-primary, #183661 ); font-size: 22px; font-weight: 500; color: var( --rs-primary, #183661 ); line-height: 1.6; }
.rsp__sthteam-grid { display: grid; grid-template-columns: repeat( 6, minmax( 0, 1fr ) ); gap: 14px; align-items: start; }
.rsp__sthteam-tile { display: flex; flex-direction: column; background: #fbe9d7; overflow: hidden; border-radius: 6px; text-decoration: none; color: inherit; transition: transform .25s ease; }
.rsp__sthteam-tile:nth-child( even ) { background: #ecd0b0; }
a.rsp__sthteam-tile:hover { transform: translateY( -4px ); }
.rsp__sthteam-tile img { width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 1 / 1.05 !important; object-fit: cover; object-position: top; display: block; }
.rsp__sthteam-tile i { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1.05; font-style: normal; font-size: 38px; font-weight: 800; color: #b99572; }
.rsp__sthteam-tile span { display: flex; flex-direction: column; padding: 8px 10px; background: rgba( 255, 255, 255, .72 ); }
.rsp__sthteam-tile b { font-size: 13.5px; color: #3a2a1a; line-height: 1.7; }
.rsp__sthteam-tile small { font-size: 12px; color: #7a6a5a; }
@media ( max-width: 1024px ) { .rsp__sthteam-grid { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); } }
@media ( max-width: 768px ) { .rsp__sthteam { padding: 22px 14px; border-radius: 22px; } .rsp__sthteam-grid { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 8px; } }
.rsp__team { display: grid; grid-template-columns: repeat( auto-fill, minmax( 150px, 1fr ) ); gap: 12px; }
.rsp__person { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 10px; border-radius: 18px; background: #fff; border: 1px solid #e6e9f0; text-align: center; text-decoration: none; }
.rsp__person img, .rsp__person i { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; background: #e6ebf3; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 26px; font-weight: 800; color: var( --rs-primary, #183661 ); margin-bottom: 6px; }
.rsp__person small { color: #8a90a0; font-size: 13px; }

.rsp__acc { background: #f6f7fa; border-radius: 22px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.rsp__acc details { background: transparent; border-radius: 14px; }
.rsp__acc details[open] { background: #fff; }
.rsp__acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 700; font-size: 14.5px; text-align: right; }
.rsp__acc summary::-webkit-details-marker { display: none; }
.rsp__acc summary em { font-style: normal; color: #9da0a8; margin-inline-end: 4px; }
.rsp__acc summary svg { width: 16px; height: 16px; transition: transform .2s; color: #8a90a0; }
.rsp__acc details[open] summary svg { transform: rotate( 180deg ); }
.rsp__acc details > div { padding: 0 16px 14px; color: #4a4d6a; font-size: 14.5px; }
.rsp__acc details > div p { margin: 0 0 8px; }
.rsp__search { display: flex; align-items: center; gap: 8px; max-width: 460px; margin: 0 0 18px; padding: 8px 16px; border: 1px solid #dfe3ea; border-radius: 14px; background: #fff; }
.rsp__search input { flex: 1; border: 0; outline: 0; font: inherit; background: none; }
.rsp__cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 16px; }
.rsp__cats button { padding: 6px 16px; border: 1px solid #dfe3ea; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.rsp__cats button.is-on { background: #1a1d29; border-color: #1a1d29; color: #fff; }
.rsp__empty { text-align: center; color: #8a90a0; padding: 20px; }

.rsp__hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 260px; border-radius: 26px; overflow: hidden; position: relative; background: #1f2f4d; color: #fff; padding: 30px; margin-bottom: 26px; }
.rsp__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.rsp__hero div { position: relative; }
.rsp__hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: #fff; }
.rsp__hero p { margin: 0; opacity: .9; }
.rsp__grid { display: grid; grid-template-columns: repeat( auto-fit, minmax( 250px, 1fr ) ); gap: 14px; }
.rsp__tile { background: #f6f8fb; border-radius: 20px; padding: 20px; }
.rsp__tile strong { font-size: 16px; display: block; margin-bottom: 4px; }
.rsp__tile p { margin: 0; color: #62666d; font-size: 14px; }
.rsp__steps { list-style: none; margin: 20px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: st; }
.rsp__steps li { display: flex; gap: 14px; align-items: flex-start; counter-increment: st; }
.rsp__steps li b::before { content: counter( st ); }
.rsp__steps li b { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var( --rs-primary, #183661 ); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rsp__steps strong { display: block; font-size: 16px; }
.rsp__steps span, .rsp__steps p { color: #62666d; font-size: 14.5px; margin: 0; }
.rsp__steps img { display: block; max-width: 100%; margin-top: 10px; border-radius: 16px; border: 1px solid #e6e9f0; }
.rsp__steps--big li { padding: 16px; border-radius: 20px; background: #f6f8fb; }
.rsp__jobs { display: flex; flex-direction: column; gap: 10px; }
.rsp__job { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 16px 20px; border: 1px solid #e6e9f0; border-radius: 18px; background: #fff; text-decoration: none; flex-wrap: wrap; }
.rsp__job span { color: #8a90a0; font-size: 14px; }
.rsp__cta { text-align: center; margin-top: 26px; }
.rsp__btn { display: inline-flex; padding: 12px 30px; border-radius: 14px; background: var( --rs-primary, #183661 ); color: #fff !important; text-decoration: none; font-weight: 700; }

.rsp__doc { display: block; }
.rsp__doc.has-toc { display: grid; grid-template-columns: 240px minmax( 0, 1fr ); gap: 24px; align-items: start; }
.rsp__toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid #e6e9f0; border-radius: 18px; background: #fff; font-size: 14px; }
.rsp__toc a { text-decoration: none; color: #4a4d6a; padding: 4px 0; }
.rsp__toc a:hover { color: var( --rs-primary, #183661 ); }

@media ( max-width: 760px ) {
	.rsp { padding: 14px 12px 40px; }
	.rsp__gallery { grid-template-columns: repeat( 2, 1fr ); }
	.rsp__doc.has-toc { grid-template-columns: 1fr; }
	.rsp__toc { position: static; }
	.rsp__card { padding: 16px; }
}

/* ---------------- 404 ---------------- */
body.rs-nf-body { margin: 0; background: #fff; font-family: 'IRANYekanXFaNum', Tahoma, sans-serif; }
.rsp-nf { --nf: var( --rs-primary, #1b4dff ); min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 16px; text-align: center; color: #23254b; background: #fff; }
.rsp-nf *, .rsp-nf *::before, .rsp-nf *::after { box-sizing: border-box; }
.rsp-nf__art { width: 340px; height: 340px; max-width: 86vw; max-height: 86vw; margin-bottom: 34px; border-radius: 50%; background: #eaf0ff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rsp-nf__art.has-img { width: min(var(--nf-art, 520px), 92vw); height: auto; max-width: none; max-height: none; border-radius: 0; background: transparent; overflow: visible; }
.rsp-nf__art.has-img img { width: 100%; max-height: none; height: auto; }
.rsp-nf__art img, .rsp-nf__art svg { width: 84%; height: auto; max-height: 90%; object-fit: contain; }
.rsp-nf h1 { margin: 0; font-size: 19px; font-weight: 800; color: #1f2333; line-height: 1.8; }
.rsp-nf h1 span { color: var( --nf ); }
.rsp-nf__sub { margin: 0 0 12px; color: #6b7080; font-size: 14px; }
.rsp-nf__card { width: min( 370px, 100% ); padding: 18px 20px 20px; border: 1px solid #e1e5ee; border-radius: 22px; background: #fff; text-align: right; }
.rsp-nf__card h2 { margin: 0 0 18px; font-size: 13px; font-weight: 600; color: #3c4150; }
.rsp-nf__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; }
.rsp-nf__item { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.rsp-nf__item i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #eaf0ff; color: var( --nf ); display: inline-flex; align-items: center; justify-content: center; }
.rsp-nf__item i img { width: 20px; height: 20px; object-fit: contain; }
.rsp-nf__item i svg { width: 18px; height: 18px; }
.rsp-nf__item span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rsp-nf__item strong { font-size: 13px; font-weight: 700; color: #1f2333; }
.rsp-nf__item small { font-size: 11px; color: #8a90a0; line-height: 1.6; }
.rsp-nf__item:hover strong { color: var( --nf ); }
.rsp-nf__btn { margin-top: 10px; padding: 12px 28px; border-radius: 13px; background: var( --nf ); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.rsp-nf__btn:hover {}
.rsp-nf__ph { margin: 22px 0 4px; font-size: 14px; font-weight: 700; color: #62666d; }
.rsp-nf__people { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.rsp-nf__person { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 170px; padding: 16px 10px; border: 1px solid #e6e9f0; border-radius: 20px; text-decoration: none; color: inherit; background: #fff; }
.rsp-nf__person img, .rsp-nf__person i { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #e6ebf3; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 21px; font-weight: 800; color: var( --nf ); margin-bottom: 6px; }
.rsp-nf__person small { color: #8a90a0; font-size: 13px; }
.rsp-nf__person span { margin-top: 4px; font-size: 14px; font-weight: 700; color: var( --nf ); }
@media ( max-width: 480px ) { .rsp-nf__art { width: 280px; height: 280px; margin-bottom: 24px; } .rsp-nf__art.has-img { width: min(var(--nf-art, 520px), 92vw); height: auto; } }
