/* Opportunities page: shares ../style.css with the application form. */
.list-view { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; overflow-wrap: break-word; }
html[lang=fa] .hero h1 { font-weight: 800; line-height: 1.4; letter-spacing: 0; }
.hero .lead { white-space: normal; }

.section-title { margin: 0 0 16px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.35; }
.perks { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.perks ul, .how ol { margin: 0; padding-inline-start: 1.3em; color: #3b2440; font-size: 16px; }
.perks li, .how li { margin-bottom: 8px; }
.how { max-width: 720px; margin-top: clamp(36px, 5vw, 64px); }
.how p { margin-top: 14px; color: #4d3550; font-size: 15.5px; }
.how a { color: var(--coral-dark); font-weight: 600; }
.how a:hover { text-decoration: underline; }

.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.role-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 18px 44px -32px rgba(56, 0, 56, .3); transition: border-color .15s, transform .15s; }
.role-card:hover { border-color: var(--coral); transform: translateY(-2px); }
.role-card h2 { font-size: 21px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.role-card p { color: #4d3550; font-size: 15px; overflow-wrap: anywhere; }
.role-card .btn { margin-top: auto; width: auto; align-self: flex-start; min-height: 44px; padding: 8px 20px; font-size: 15px; }

.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.meta li { padding: 3px 12px; border-radius: 100px; background: var(--mist); color: var(--ink); font-size: 13px; font-weight: 600; }
html[lang=fa] .meta li { font-size: 14px; }
.meta li.deadline { background: #fff3d6; color: #6b4400; }
.role-intro .meta { margin-top: 16px; }

/* Back to the list: a quiet pill in the header-link style, no arrow glyph. */
.back { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 20px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.back:hover { border-color: var(--mist); background: var(--mist); color: var(--coral-dark); }
.description { margin-top: 18px; font-size: 15.5px; color: #3b2440; white-space: pre-line; overflow-wrap: anywhere; }
.description:empty { display: none; }
.form-title { margin-bottom: 6px; font-size: 22px; font-weight: 700; }

.empty-roles { grid-column: 1 / -1; padding: clamp(28px, 5vw, 56px); border: 1.5px dashed var(--field); border-radius: 24px; text-align: center; color: var(--smoke); }
.empty-roles h2 { margin-bottom: 8px; color: var(--ink); font-size: 22px; }
.loading { max-width: 1100px; margin: 64px auto; }
/* Descriptions can be long, so the role column scrolls with the page. */
.role-intro { position: static; }

/* Persian role texts on the English page: Vazirmatn, no tight tracking. */
:is(.role-card, .role-intro, .q) [lang=fa] { font-family: var(--font-fa); letter-spacing: 0; }
.role-card h2[lang=fa] { line-height: 1.6; }
:is(.role-card, .role-intro) p[lang=fa], .description[lang=fa] { line-height: 1.95; }
.meta li[lang=fa] { font-size: 14px; }
/* An English name in brackets inside a Persian title stays in Poppins. */
:is(.role-card, .role-intro) [lang=fa] bdi[lang=en] { font-family: var(--font-en); }

/* Role page: one column that reads top to bottom, title, text, then the form. */
#roleView { display: block; max-width: 760px; margin-inline: auto; }
#roleView .role-intro { position: static; }
#roleView .panel { margin-top: clamp(28px, 4vw, 44px); }
.role-intro h1 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: break-word; }
html[lang=fa] .role-intro h1, .role-intro h1[lang=fa] { font-weight: 800; line-height: 1.6; letter-spacing: 0; }
/* The English name of a Persian title sits smaller, on its own line. */
.role-intro h1 bdi[lang=en], .role-card h2 bdi[lang=en] { display: block; text-align: right; font-weight: 600; letter-spacing: 0; color: var(--smoke); }
.role-intro h1 bdi[lang=en] { margin-top: 2px; font-size: .5em; line-height: 1.5; }
.role-card h2 bdi[lang=en] { font-size: .7em; line-height: 1.5; }
.description .desc-head { font-weight: 700; color: var(--ink); }
