/*
 * task733.css — بخش ۲: صفحهٔ «درباره ما» (/about/)
 * -------------------------------------------------
 * لایهٔ مستقل و افزایشی؛ بعد از همهٔ برگه‌های /about/ و پیش از typography730.css
 * بارگذاری می‌شود. هیچ !important ای در این فایل نیست.
 *
 * چه چیزی را درست می‌کند:
 *  ۱) قاب لوح‌های مجوز نازک می‌شود (همان حس قابِ گالری، بدون ضخامت و تزئین زیاد).
 *  ۲) ردیف نشانگرهای گالری مجوزها دیده و قابل کلیک می‌شود (پیش‌تر نامرئی بود).
 *  ۳) کادر آیین‌نامه/تشکیلات به‌هم‌ریخته را مرتب می‌کند: بوم ثابت، تناسب درست
 *     نوار عنوان، حذف حروف فهرستِ سرگردان، اندازهٔ خوانا در همهٔ عرض‌ها.
 *  ۴) لوح‌های «اهداف کلان / برنامه‌های اجرایی» و «مدیر مرکز / معاونت‌ها» دیگر
 *     با currentColor روی پس‌زمینهٔ روشن محو نمی‌شوند.
 *  ۵) بخش آخر (اهداف و برنامه‌ها) روشن می‌شود و تصویر چسبان آن با پس‌زمینهٔ
 *     فوتر اشتباه گرفته نمی‌شود.
 *  ۶) دکمهٔ «مشاهدهٔ کامل آرشیو مجوزها» هم‌اندازه و هم‌شکل دکمهٔ «مشاهده همه»ی
 *     صفحهٔ اصلی می‌شود.
 */

/* ─────────────────────────── ۱) لوح‌ها: رنگ صریح ───────────────────────────
   قاعدهٔ قدیمی .ab-org-plate{color:#edcf86} و .ab-goals-label{color:#d9bd7c} روی
   پس‌زمینهٔ روشن، متن را کم‌خوان می‌کرد. لوح SVG از بخش ۲ به بعد پس‌زمینهٔ
   فیروزه‌ای صریح دارد، پس رنگ متن هم باید صریح و روشن باشد. */
.ab-org-plate,
.ab-goals-label {
    color: #f2e3c0;
}
.ab-org-plate strong,
.ab-org-branches h3 span,
.ab-goals-label h3 {
    color: #f2e3c0;
}

/* لوح SVG تیتر معاونت‌ها در خودِ بخش (نه فقط کادر) هم باید تمام‌قد بماند؛
   قاعدهٔ `svg:not(.ab-plate)` فقط آیکن‌ها را کوچک می‌کند، ولی در عرض‌های
   کوچک اندازهٔ لوح به آیکن فرو می‌ریخت و تیتر بی‌پس‌زمینه می‌شد. */
.ab-organization .ab-org-branches h3 {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 6px 10px;
}

.ab-organization .ab-org-branches h3 > .ab-plate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ab-organization .ab-org-branches h3 > span {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    line-height: 1.6;
}

/* لوح «رسالت ما» در بخش معرفی: پیش‌تر متن و خطِ لوح هر دو از currentColor
   رنگ می‌گرفتند و روی هم می‌افتادند. لوح حالا فیروزه‌ای توپر با خط طلایی است،
   پس متن روشن و تیتر طلایی می‌شود. */
.ab-intro .ab-mission {
    color: #f4ede2;
}

.ab-intro .ab-mission h3 {
    color: #e8d3a2;
}

.ab-intro .ab-mission p {
    color: #f0e6d4;
}

/* ─────────────────── ۲) قاب لوح‌های مجوز: نازک و آرام ─────────────────── */
/* قاب از راه متغیرِ رسمی خودش عوض می‌شود.
   برگهٔ about54 لایهٔ قاب را این‌طور می‌کشد:
   `background:var(--ui52-license-frame,url(...)) center/100% 100% !important`
   پس تنها راه بدون !important، تعریف همان متغیر است — همان کاری که کنترل
   المنتور «لایهٔ قاب مستقل لوح‌ها» هم انجام می‌دهد. اگر مدیر سایت قاب
   اختصاصی خودش را ست کرده باشد، آن مقدارِ نزدیک‌تر به عنصر برنده می‌شود و
   انتخاب او محترم می‌ماند. */
.ab-licenses .ab-document-frame,
body.uirh-harmony45 .ab-licenses .ab-document-frame {
    --ui52-license-frame: url('../about733/license-frame-thin.webp');
    aspect-ratio: 640 / 724;
}

/* پنجرهٔ سند مطابق قاب نازکِ ۱۰ پیکسلی: افقی ۲۲.۵٪ … ۷۷.۵٪ / عمودی ۱۹٪ … ۸۱٪
   (پنجرهٔ شفاف تصویر دقیقاً همین کادر است، پس سند نه بُرش می‌خورد نه کشیده
   می‌شود.) */
.ab-licenses .ab-document-frame > img,
body.uirh-harmony45 .ab-licenses .ab-document-frame > img {
    left: 22.5%;
    top: 19%;
    width: 55%;
    height: 62%;
}

/* ────────────── ۳) نشانگرهای گالری مجوزها: دیده شوند ────────────── */
.ab-license-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.ab-licenses .ab-license-dots > button {
    display: block;
    width: 9px;
    height: 9px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 1px solid #cbaa6e;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    appearance: none;
    transition: background-color .18s ease, transform .18s ease;
}

.ab-licenses .ab-license-dots > button[aria-pressed='true'] {
    background: #cbaa6e;
    transform: scale(1.18);
}

.ab-licenses .ab-license-dots > button {
    position: relative;
}

.ab-licenses .ab-license-dots > button:focus-visible {
    outline: 2px solid #cbaa6e;
    outline-offset: 4px;
}

/* کنترل‌های قبلی/بعدی، هم‌شکل دکمه‌های صفحهٔ اصلی */
.ab-license-controls > button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cbaa6e;
    border-radius: 50%;
    background: #f7efdf;
    color: #003c45;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.ab-license-controls > button:hover:not(:disabled) {
    background: #003c45;
    color: #f4ede2;
    transform: translateY(-2px);
}

.ab-license-controls > button:disabled {
    opacity: .4;
    cursor: default;
}

/* ───────── ۴) دکمهٔ آرشیو مجوزها = دکمهٔ «مشاهده همه» صفحهٔ اصلی ───────── */
.ab-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

body.uirh-global-shell #uirh-main-content .ab-licenses .ab-more-link {
    /* همان دکمهٔ «مشاهده همه»ی صفحهٔ اصلی: ۱px طلایی، شعاع ۷، ارتفاع ۴۴،
       ۸×۱۶، فاصلهٔ ۱۲، متن ۱۴/۷۰۰ — فقط رنگ‌ها با زمینهٔ فیروزه‌ای بخش
       مجوزها هم‌خوان شده‌اند (روی کرم، همان رنگ جوهری خوانا بود؛ روی
       فیروزۀ تیره، طلایی). */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid #cbaa6e;
    border-radius: 7px;
    background: transparent;
    color: #e8d3a2;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}

body.uirh-global-shell #uirh-main-content .ab-licenses .ab-more-link > .see-all-chev {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.uirh-global-shell #uirh-main-content .ab-licenses .ab-more-link:is(:hover, :focus-visible) {
    background: #f4ede2;
    color: #003c45;
    box-shadow: 0 4px 12px rgba(0, 30, 38, .28);
    transform: translateY(-2px);
}

body.uirh-global-shell #uirh-main-content .ab-licenses .ab-more-link:focus-visible {
    outline: 2px solid #cbaa6e;
    outline-offset: 3px;
}

/* ── دکمهٔ «مشاهدهٔ کامل آیین‌نامه و تشکیلات»: هم‌خانوادهٔ همان دکمهٔ «مشاهده همه» ──
   پیش‌تر یک دکمهٔ کرم‌رنگِ پر با گوشه‌های تزئینی و متن ۵px بود؛ حالا همان
   دکمهٔ خط‌دار طلاییِ صفحهٔ اصلی است و شِورون هم در همان شکل می‌آید. */
body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more {
    /* دکمه باید در وسط بخش بنشیند؛ inline-flex با margin:auto وسط نمی‌آید. */
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin: 26px auto 0;
    padding: 8px 22px;
    border: 1px solid #cbaa6e;
    border-radius: 7px;
    background: transparent;
    color: #0b4a55;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}

body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more::before,
body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more::after {
    display: none;
}

body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more > .see-all-chev {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more:is(:hover, :focus-visible) {
    background: #003c45;
    color: #f4ede2;
    box-shadow: 0 4px 12px rgba(7, 60, 69, .14);
    transform: translateY(-2px);
}

body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more:focus-visible {
    outline: 2px solid #cbaa6e;
    outline-offset: 3px;
}

/* ───────── ۵) کادر آیین‌نامه/تشکیلات: مرتب و خوانا ───────── */
.ab-dialog {
    /* بوم ثابت برای نمودار، مستقل از پهنای کادر */
    --ab733-canvas: 1000px;
    padding: 26px 26px 30px;
}

.ab-dialog > h2 {
    margin: 0 0 18px;
    padding: 0 0 12px 46px;
    border-bottom: 1px solid rgba(203, 170, 110, .45);
    font-size: 22px;
    line-height: 1.6;
}

.ab-dialog .ab-dialog-close {
    top: 18px;
}

/* نوار پیمایش افقی (در موبایل) با فاصله و نشانهٔ واضح */
.ab-dialog .ab-org-dialog-scroll {
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: #cbaa6e transparent;
}

.ab-dialog .ab-org-dialog-scroll::-webkit-scrollbar {
    height: 6px;
}

.ab-dialog .ab-org-dialog-scroll::-webkit-scrollbar-thumb {
    background: #cbaa6e;
    border-radius: 3px;
}

/* بوم: ارتفاع صریح و حداقل‌عرض، تا اگر قاعده‌ای بیرونی min-width را برداشت،
   نمودار دوباره به‌هم نریزد. */
.ab-dialog .ab-org-tree {
    min-width: var(--ab733-canvas);
    width: var(--ab733-canvas);
    --ab-u: 1.3px;
    padding-bottom: 26px;
    color: #cbaa6e;
}

/* لوح مدیر مرکز: همان استایل تیترها، بدون گرید ارتفاع‌کش که متن را زیر لوح
   می‌انداخت. اندازهٔ لوح با aspect-ratio مهار می‌شود تا در بوم ۱۰۰۰px
   بیش از ۷۰px قد نکشد. */
.ab-dialog .ab-director {
    width: min(60%, 420px);
    min-height: 58px;
    margin: 0 auto;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ab-dialog .ab-director > .ab-plate {
    inset: 0 auto auto 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.ab-dialog .ab-director strong {
    position: relative;
    z-index: 1;
    color: #f4ede2;
    font-size: 15px;
    line-height: 1.6;
    white-space: nowrap;
}

.ab-dialog .ab-org-branches {
    padding-top: 34px;
    gap: 18px;
}

.ab-dialog .ab-org-branches h3 {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 46px;
    max-width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.6;
}

/* لوح SVG تیتر معاونت‌ها: تمام‌قد پشت متن، نه ۲۲px آیکن */
.ab-dialog .ab-org-branches h3 > .ab-plate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ab-dialog .ab-org-branches h3 > span {
    position: relative;
    z-index: 1;
    color: #f4ede2;
    font-size: 12.5px;
    line-height: 1.6;
}

.ab-dialog .ab-org-branches ul {
    gap: 8px;
}

.ab-dialog .ab-org-branches ul span {
    font-size: 11.5px;
    line-height: 1.85;
    color: #073d58;
}

.ab-dialog .ab-org-branches ul > li > div {
    min-height: 92px;
    background: #fffaf0;
    border-color: #d9c79f;
}

/* حروف/ارقام فهرستِ سرگردان که از ::marker یا شمارندهٔ مرورگر می‌آیند
   (در بعضی مرورگرها با list-style:none هنوز رسم می‌شوند). */
.ab-dialog .ab-org-branches > li::marker,
.ab-license-card::marker {
    content: '';
    font-size: 0;
}

/* آرشیو تصاویر مجوزها: شبکهٔ مرتب و هماندازه */
.ab-dialog .ab-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.ab-dialog .ab-archive-grid > button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 16px;
    border: 1px solid #cbaa6e;
    border-radius: 10px;
    background: #fffaf0;
    color: #073d58;
    font: inherit;
    cursor: pointer;
    overflow: hidden;
}

.ab-dialog .ab-archive-grid > button:hover {
    border-color: #003c45;
}

.ab-dialog .ab-archive-grid > button:focus-visible {
    outline: 2px solid #003c45;
    outline-offset: 2px;
}

.ab-dialog .ab-archive-grid > button img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    margin: 0;
    background: #f8f4eb;
}

/* ───────── ۶) بخش آخر: پس‌زمینهٔ روشن، تصویر چسبان ─────────
   برگه‌های تولیدشده پس‌زمینهٔ فیروزه‌ای این بخش را با
   `body.uirh-harmony45 :is(…,.ab-goals,…)` می‌نشانند؛ آن انتخاب‌گر یک واحد
   ویژگی (specificity) بیشتر از `.ab-goals` دارد. پس همان پیشوند با همان
   ویژگی تکرار می‌شود؛ چون این برگه بعد از همه می‌آید، برندهٔ نهایی است.
   نسخهٔ بدون پیشوند هم نوشته شده تا اگر روزی آن کلاس بدنه برداشته شود،
   بخش روشن بماند. */
.ab-goals,
body.uirh-harmony45 .ab-goals {
    background-color: #f4ede2;
    background-image: none;
    color: #073d58;
    border-block: 1px solid rgba(203, 170, 110, .5);
}

/* برگهٔ polish47 روی همان عنصر متغیرهای خودش را تعریف می‌کند و بعد پس‌زمینهٔ
   فیروزه‌ای را با !important می‌نشاند. همان دو متغیر را در همین سطح بازتعریف
   می‌کنیم: هم پس‌زمینهٔ الگودار برداشته می‌شود، هم رنگ زیرش کرم می‌شود. */
.ab-goals,
body.uirh-harmony45 .ab-goals {
    --ui47-oil: #f4ede2;
    --ui47-bg: none;
}

.ab-goals > .ab-container > h2,
body.uirh-harmony45 .ab-goals > .ab-container > h2 {
    color: #003c45;
}

/* خط افقی سرِ «اهداف کلان» */
.ab-goals .ab-goals-list,
body.uirh-harmony45 .ab-goals .ab-goals-list {
    border-top-color: rgba(203, 170, 110, .55);
}

.ab-goals .ab-goals-list::before,
body.uirh-harmony45 .ab-goals .ab-goals-list::before {
    color: #b3924f;
}

.ab-goals .ab-goals-list article + article::before {
    background: rgba(203, 170, 110, .32);
}

.ab-goals .ab-goals-list svg {
    color: #b3924f;
}

/* ردیف «برنامه‌های اجرایی» پایین‌تر می‌نشیند: هم فاصلهٔ بصری دو ردیف روشن
   می‌شود، هم هنگام اسکرول، «لحظهٔ روشن‌شدنِ» بخش دقیقاً وقتی است که همین
   ردیف وارد کادر دید می‌شود. */
.ab-goals .ab-program-row,
body.uirh-harmony45 .ab-goals .ab-program-row {
    margin-top: clamp(56px, 8vw, 128px);
}

/* داخل لوح فیروزه‌ای، متن روشن می‌ماند */
.ab-goals .ab-goals-label h3,
body.uirh-harmony45 .ab-goals .ab-goals-label h3 {
    color: #f4ede2;
}

/* تیترهای اهداف/برنامه‌ها: فیروزه‌ای روی کرم */
.ab-goals .ab-goals-list h3,
.ab-goals .ab-program-list h3,
body.uirh-harmony45 .ab-goals .ab-goals-list h3 {
    color: #003c45;
}

.ab-goals .ab-goals-list p {
    color: #2c5563;
}

/* حلقه‌های برنامه‌ها */
.ab-goals .ab-program-list article > div {
    background: #f4ede2;
    border-color: #b3924f;
}

.ab-goals .ab-program-list svg {
    color: #003c45;
}

/* خط موج برنامه‌ها روی کرم */
.ab-goals .ab-program-list .ab-wave {
    color: #b3924f;
    opacity: .75;
}

/* چیدمان: متن در ستون راست، تصویر در ستون باریک چپ.
   تصویر «چسبان» است (position:sticky) و align-self:start دارد تا کشیده نشود؛
   بنابراین هنگام اسکرول، تصویر همراهِ متن می‌ماند و در انتهای بخش رها می‌شود.
   عرض ستون تصویر با clamp مهار می‌شود تا در ۹۰۰ و ۱۰۲۴ پیکسل هم متن خرد نشود. */
.ab-goals .ab-goals-layout,
body.uirh-harmony45 .ab-goals .ab-goals-layout {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 14vw, 208px);
    gap: clamp(18px, 2.6vw, 36px);
    align-items: start;
}

.ab-goals .ab-goals-art,
body.uirh-harmony45 .ab-goals .ab-goals-art {
    position: sticky;
    top: 96px;
    align-self: start;
    width: 100%;
    margin: 0;
}

/* تصویر هم‌قد ستون متن می‌شود تا هنگام چسبیدن، فضای خالی عجیب نماند؛
   نسبت طبیعی تصویر حفظ می‌شود (mask و قاب روی همان کادر می‌نشینند). */
.ab-goals .ab-goals-art .ab-goals-photo,
body.uirh-harmony45 .ab-goals .ab-goals-art .ab-goals-photo {
    object-position: center;
}

.ab-goals .ab-goals-photo,
.ab-goals .ab-goals-art .ab-goals-photo {
    max-height: none;
}

/* نوار پایانیِ بخش: خط نازک روشن، نه رنگ فوتر */
.ab-goals::after,
body.uirh-harmony45 .ab-goals::after {
    content: '';
    display: block;
    clear: both;
}

/* ─────────────── ۷) عرض‌های میانی و کوچک ─────────────── */

/* تبلت (۷۶۸–۹۹۱): پنج ستون در این عرض به هم می‌فشارند و واژه‌ها حرف‌به‌حرف
   می‌شکنند. بوم با حداقل‌عرض واقعی خودش نمایش داده می‌شود و ستون‌ها همان
   نسبت دسکتاپ را نگه می‌دارند؛ ناحیهٔ اسکرول افقی از قبل وجود دارد. */
/* تبلت و لپ‌تاپ کوچک (۷۶۸–۱۱۷۹): پنج ستون در این عرض، زیرشاخه‌ها را به
   جعبه‌های چندپیکسلی می‌شکند. واحدهای هر معاونت زیر هم می‌نشینند (ردیف‌های
   افقی خوانا) و خطوط اتصالِ افقیِ قبلی کنار می‌روند؛ شبکه و ستون‌ها سرِ جای
   خود می‌مانند. */
@media (min-width: 768px) and (max-width: 1179px) {
    .ab-organization .ab-org-tree {
        min-width: 0;
        --ab-u: 0.95px;
    }

    .ab-organization .ab-org-branches > li > ul {
        flex-direction: column;
        gap: 6px;
    }

    .ab-organization .ab-org-branches > li > ul::before,
    .ab-organization .ab-org-branches > li > ul > li::before {
        display: none;
    }

    .ab-organization .ab-org-branches > li > ul > li > div {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        min-height: 34px;
        padding: 6px 8px;
        text-align: right;
    }

    .ab-organization .ab-org-branches > li > ul > li > div > svg {
        width: 15px;
        height: 15px;
        flex: 0 0 auto;
    }

    .ab-organization .ab-org-branches ul span {
        font-size: 10.5px;
        line-height: 1.7;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .ab-organization .ab-org-branches h3 > span {
        font-size: 11px;
        line-height: 1.6;
    }
}

/* نمای موبایل چارت سازمانی (بخش و کادر گفت‌وگو):
   پیش‌تر هر معاونت یک کارت بود با دو ستون، یکی از خانه‌ها خالی می‌ماند و
   هدرِ معاونت هم به‌اندازهٔ متن جمع می‌شد. اکنون هدر تمام‌عرض و واحدها یک
   فهرست ردیفی مرتب‌اند. */
@media (max-width: 767px) {
    .ab-organization .ab-org-branches h3,
    .ab-dialog .ab-org-branches h3 {
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        margin: 0;
        padding: 10px 14px;
        font-size: 13px;
        text-align: center;
    }

    /* قاعدهٔ هماهنگ‌سازی سایت این شبکه را دوستونی می‌کند؛ این‌جا با همان
       پیشوند بدنه یک‌ستونی می‌شود. */
    body.uirh-site-harmony .ab-organization .ab-org-branches > li > ul,
    body.uirh-site-harmony .ab-dialog .ab-org-branches > li > ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin: 0;
        padding: 12px;
    }

    body.uirh-site-harmony .ab-organization .ab-org-branches > li > ul > li > div,
    body.uirh-site-harmony .ab-dialog .ab-org-branches > li > ul > li > div {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-height: 0;
        padding: 10px 12px;
        text-align: right;
        font-size: 12.5px;
        border-color: #e2d3b4;
    }

    body.uirh-site-harmony .ab-organization .ab-org-branches > li > ul > li > div > svg,
    body.uirh-site-harmony .ab-dialog .ab-org-branches > li > ul > li > div > svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        color: #b3924f;
    }
}

/* تبلت و کوچک‌تر: تصویر چسبان کنار نمی‌ماند، بالای متن و در جریان عادی */
/* دسکتاپ و تبلت: تصویر چسبان می‌ماند (خواستهٔ مالک). در تبلت ستون تصویر
   باریک‌تر است تا متن خرد نشود. */
@media (min-width: 768px) and (max-width: 1100px) {
    .ab-goals .ab-goals-layout,
    body.uirh-harmony45 .ab-goals .ab-goals-layout {
        grid-template-columns: minmax(0, 1fr) clamp(140px, 17vw, 180px);
        gap: 22px;
    }

    /* با باریک‌شدن ستون متن، چهار هدف در یک ردیف واژه‌ها را می‌شکند؛
       در این عرض‌ها دو ستون و سه ستون خواناست. */
    .ab-goals .ab-goals-row,
    .ab-goals .ab-program-row,
    body.uirh-harmony45 .ab-goals .ab-goals-row,
    body.uirh-harmony45 .ab-goals .ab-program-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ab-goals .ab-goals-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 18px;
    }

    .ab-goals .ab-program-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .ab-goals .ab-goals-label {
        max-width: 240px;
        margin: 0 auto;
    }

    .ab-goals .ab-goals-list h3,
    .ab-goals .ab-program-list h3 {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .ab-goals .ab-goals-list p {
        font-size: 12.5px;
    }
}

/* موبایل: تصویر بالای متن، در جریان عادی و بدون چسبندگی. */
@media (max-width: 767px) {
    .ab-goals .ab-goals-layout,
    body.uirh-harmony45 .ab-goals .ab-goals-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ab-goals .ab-goals-art,
    body.uirh-harmony45 .ab-goals .ab-goals-art {
        position: static;
        order: -1;
        width: min(300px, 74%);
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .ab-goals .ab-goals-art,
    body.uirh-harmony45 .ab-goals .ab-goals-art {
        width: min(280px, 78%);
    }

    .ab-dialog {
        padding: 20px 16px 24px;
        border-radius: 14px;
        max-height: 94vh;
    }

    .ab-dialog > h2 {
        font-size: 18px;
        padding-left: 40px;
    }

    .ab-dialog .ab-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ab-dialog .ab-archive-grid > button img {
        height: 150px;
    }

    .ab-license-dots {
        gap: 8px;
    }

    .ab-licenses .ab-license-dots > button {
        width: 8px;
        height: 8px;
    }

    .ab-more-wrap {
        margin-top: 20px;
    }

    body.uirh-global-shell #uirh-main-content .ab-licenses .ab-more-link {
        padding-inline: 14px;
        gap: 8px;
    }

    body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more {
        width: min(100%, 320px);
        padding-inline: 14px;
        font-size: 13px;
        white-space: normal;
        line-height: 1.6;
    }
}

/* ─────────────── ۸) احترام به prefers-reduced-motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    .ab-licenses .ab-license-dots > button,
    .ab-license-controls > button,
    body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more,
    .ab-licenses .ab-more-link {
        transition: none;
    }

    .ab-license-controls > button:hover:not(:disabled),
    body.uirh-global-shell #uirh-main-content .ab-organization .ab-org-more:hover,
    body.uirh-global-shell #uirh-main-content .ab-licenses .ab-more-link:hover {
        transform: none;
    }

    .ab-licenses .ab-license-dots > button[aria-pressed='true'] {
        transform: none;
        outline: 2px solid #cbaa6e;
        outline-offset: 2px;
    }
}

/* ─────────── ۹) روشن‌شدن بخش «اهداف و برنامه‌ها» با رسیدن به برنامه‌ها ───────────
   حالت اولیه یک «خوابِ نوری» ملایم است (کاغذ روشن، متن‌ها کمی محو) و با
   رسیدن ردیف «برنامه‌های اجرایی» کل بخش به حالت کامل می‌رود.
   • تصویر چسبان از این نوردهی مستثنی است: سرِ جایش می‌ماند و کاملاً روشن است،
     چون خواستهٔ مالک همین بود.
   • بدون جاوااسکریپت هیچ کلاسی اضافه نمی‌شود و بخش از ابتدا کامل است.
   • با prefers-reduced-motion گذرها خاموش می‌شوند و محتوا بلافاصله کامل است. */
.ab-goals .ab-goals-content {
    transition: opacity .7s ease, filter .7s ease;
}

.ab-goals:not(.is-lit) .ab-goals-content {
    opacity: .58;
    filter: saturate(.85);
}

.ab-goals.is-lit .ab-goals-content {
    opacity: 1;
    filter: none;
}

/* تصویر هرگز محو نمی‌شود — چسبان و روشن می‌ماند. */
.ab-goals .ab-goals-art {
    opacity: 1;
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .ab-goals .ab-goals-content {
        transition: none;
        opacity: 1;
        filter: none;
    }
}
