/* Layer 2 — UI Contract: Organisms (design-system.md بخش ۴). */

/* ---------- Navigation ---------- */
.insight-nav { display: flex; width: 100%; align-items: center; gap: var(--insight-space-2, .5rem); flex-wrap: wrap; }
.insight-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--insight-space-1, .25rem);
  min-height: 44px;
  padding-inline: var(--insight-space-3, .75rem);
  border-radius: var(--bs-border-radius);
  color: var(--bs-body-color);
  text-decoration: none;
  font-size: .9rem;
}
.insight-nav__link:hover { background: var(--bs-tertiary-bg); }
.insight-nav__link--active { background: var(--bs-primary); color: #fff; }
@media (max-width: 768px) {
  .insight-nav { flex-direction: column; align-items: stretch; }
}
/* Variant — Vertical/Sidebar (طبق ردیف Navigation بخش ۴ design-system.md: «Collapsed/Expanded»؛
   اولین مصرف‌کننده: الگوی نام‌گذاری‌شده «Admin Shell» زیر همین بخش). */
.insight-nav--vertical { flex-direction: column; align-items: stretch; gap: var(--insight-space-1, .25rem); }
.insight-nav--vertical .insight-nav__link { justify-content: flex-start; padding-inline: var(--insight-space-3, .75rem); }
/* برچسب گروه (اقتباس از الگوی "PAGES"/"EXAMPLES" در Sidebar بلند AdminLTE v4). */
.insight-nav__section-label { margin: var(--insight-space-3, .75rem) 0 0; padding-inline: var(--insight-space-3, .75rem); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); }
.insight-nav__section-label:first-child { margin-block-start: 0; }

/* ---------- الگو «Admin Shell» (طبق ADR-0015 — نام یونیک برای استفاده مجدد در هر بخش مدیریتی
   آینده): چیدمان دو‌ستونه Sidebar ثابت (ناوبری Vertical بالا) + محتوای اصلی، جایگزین رسمی
   لیست تب افقی تکراری قبلی بخش مدیریت. */
.insight-admin-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--insight-space-4, 1rem); align-items: start; width: 100%; }
.insight-admin-shell__sidebar {
  position: sticky;
  top: var(--insight-space-4, 1rem);
  display: flex;
  flex-direction: column;
  gap: var(--insight-space-3, .75rem);
  padding: var(--insight-space-3, .75rem);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  background: var(--bs-tertiary-bg);
}
.insight-admin-shell__title { margin: 0; padding-inline: var(--insight-space-2, .5rem); font-size: .8rem; font-weight: 700; color: var(--bs-secondary-color); }
.insight-admin-shell__content { min-width: 0; display: flex; flex-direction: column; gap: var(--insight-space-4, 1rem); }
@media (max-width: 900px) {
  .insight-admin-shell { grid-template-columns: 1fr; }
  .insight-admin-shell__sidebar { position: static; }
  .insight-admin-shell__sidebar .insight-nav--vertical { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Data Table (→ Card-List زیر md، طبق بخش ۶) ---------- */
.insight-data-table-wrap { overflow-x: auto; width: 100%; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); }
.insight-data-table { width: 100%; border-collapse: collapse; }
.insight-data-table th,
.insight-data-table td {
  padding-inline: var(--insight-table-cell-x, .5rem);
  padding-block: var(--insight-table-cell-y, .6rem);
  text-align: start;
  border-bottom: 1px solid var(--bs-border-color);
}
.insight-data-table th { font-size: .8rem; color: var(--bs-secondary-color); font-weight: 700; white-space: nowrap; }
.insight-data-table--compact { --insight-table-cell-x: var(--insight-space-2, .5rem); --insight-table-cell-y: var(--insight-space-1, .25rem); font-size: .82rem; }
.insight-data-table__row--clickable { cursor: pointer; }
.insight-data-table__row--clickable:hover { background: var(--bs-tertiary-bg); }
/* ---------- Task #99: Sortable/Selectable/Sticky Header/Bulk Actions ---------- */
.insight-data-table__select-col { width: 40px; text-align: center; }
.insight-data-table__sort-btn { display: inline-flex; align-items: center; gap: .25rem; border: 0; background: transparent; padding: 0; font: inherit; font-size: .8rem; font-weight: 700; color: var(--bs-secondary-color); cursor: pointer; }
.insight-data-table__sort-icon { font-size: .7rem; opacity: .6; }
.insight-data-table__sort-btn[aria-sort="ascending"] .insight-data-table__sort-icon,
.insight-data-table__sort-btn[aria-sort="descending"] .insight-data-table__sort-icon { opacity: 1; color: var(--bs-primary); }
.insight-data-table-wrap--sticky-header .insight-data-table th { position: sticky; inset-block-start: 0; z-index: 2; background: var(--bs-body-bg); }
.insight-data-table__bulk-actions { display: flex; align-items: center; gap: var(--insight-space-2, .5rem); padding: var(--insight-space-2, .5rem) var(--insight-space-3, .75rem); background: color-mix(in srgb, var(--bs-primary) 6%, var(--bs-body-bg)); border-bottom: 1px solid var(--bs-border-color); }

@media (max-width: 768px) {
  .insight-data-table, .insight-data-table thead, .insight-data-table tbody, .insight-data-table th, .insight-data-table td, .insight-data-table tr { display: block; }
  .insight-data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .insight-data-table tr { border-bottom: 1px solid var(--bs-border-color); padding-block: var(--insight-space-2, .5rem); }
  .insight-data-table td { border-bottom: 0; padding-inline-start: 40%; position: relative; }
  .insight-data-table td::before { content: attr(data-label); position: absolute; inset-inline-start: 0; width: 35%; font-weight: 700; color: var(--bs-secondary-color); font-size: .78rem; }
}

/* Variant — Fixed Scroll (طبق ADR-0015، اولین مصرف‌کننده ماژول MI): بعضی جدول‌های تطبیقی
   به‌جای تبدیل به Card-List زیر md، به Scroll افقی با ستون‌های ثابت نیاز دارند (بخش ۶ فقط
   یک الگوی موبایل پیش‌فرض تعریف می‌کند؛ این Variant الگوی جایگزین رسمی همین نیاز است).
   عمداً بعد از بلوک Card-List بالا تعریف شده تا با Specificity برابر، در Cascade برنده باشد. */
.insight-data-table--fixed-scroll,
.insight-data-table--fixed-scroll thead,
.insight-data-table--fixed-scroll tbody,
.insight-data-table--fixed-scroll th,
.insight-data-table--fixed-scroll td,
.insight-data-table--fixed-scroll tr { display: revert; }
.insight-data-table--fixed-scroll thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; }
.insight-data-table--fixed-scroll td { padding-inline-start: var(--insight-table-cell-x, .5rem); position: static; }
.insight-data-table--fixed-scroll td::before { content: none; }

/* ---------- Card-List ---------- */
.insight-card-list { display: grid; width: 100%; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--insight-space-4, 1rem); }
@media (max-width: 576px) { .insight-card-list { grid-template-columns: 1fr; } }

/* ---------- Modal (Focus Trap/Esc در JS، بخش ۱۱) ---------- */
.insight-modal[hidden] { display: none; }
.insight-modal { position: fixed; inset: 0; z-index: var(--insight-z-modal, 1055); display: flex; align-items: center; justify-content: center; }
.insight-modal__backdrop { position: absolute; inset: 0; background: var(--insight-overlay); }
.insight-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--bs-body-bg);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--insight-shadow);
}
.insight-modal__header { display: flex; align-items: center; justify-content: space-between; padding: var(--insight-space-4, 1rem); border-bottom: 1px solid var(--bs-border-color); }
.insight-modal__title { margin: 0; font-size: 1.1rem; }
.insight-modal__close { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--bs-secondary-color); min-width: 44px; min-height: 44px; }
.insight-modal__body { padding: var(--insight-space-4, 1rem); }
.insight-modal__footer { display: flex; justify-content: flex-end; gap: var(--insight-space-2, .5rem); padding: var(--insight-space-4, 1rem); border-top: 1px solid var(--bs-border-color); }
/* Variant — Wide: برای محتوای متراکم/جدولی (اولین مصرف‌کننده: Modal جزئیات شاخص MI که قبلاً
   پیاده‌سازی اختصاصی max-width:1540px خودش را داشت). */
.insight-modal__panel--wide { width: min(1540px, calc(100vw - 2rem)); }
@media (max-width: 576px) {
  .insight-modal__panel { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
}

/* ---------- Toast Stack ---------- */
.insight-toast-stack {
  position: fixed;
  inset-block-end: var(--insight-space-4, 1rem);
  inset-inline-end: var(--insight-space-4, 1rem);
  z-index: var(--insight-z-toast, 1090);
  display: flex;
  flex-direction: column;
  gap: var(--insight-space-2, .5rem);
}
@media (max-width: 576px) { .insight-toast-stack { inset-inline: var(--insight-space-2, .5rem); inset-block-end: var(--insight-space-2, .5rem); } }

/* ---------- Filter Bar ---------- */
.insight-filter-bar { display: flex; width: 100%; flex-wrap: wrap; gap: var(--insight-space-3, .75rem); align-items: flex-end; }
@media (max-width: 576px) { .insight-filter-bar { flex-direction: column; align-items: stretch; } }

/* ---------- Empty State Block ---------- */
.insight-empty-state { display: flex; width: 100%; flex-direction: column; align-items: center; gap: var(--insight-space-3, .75rem); padding: var(--insight-space-5, 1.5rem); text-align: center; color: var(--bs-secondary-color); }
.insight-empty-state .insight-icon { width: 2.5rem; height: 2.5rem; }
.insight-empty-state__message { margin: 0; }

/* ---------- Account Menu ---------- */
.insight-account-menu { position: relative; }
.insight-account-menu__trigger { min-height: 44px; padding-inline: var(--insight-space-3, .75rem); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: var(--bs-body-bg); cursor: pointer; }
.insight-account-menu__panel {
  position: absolute;
  inset-block-start: calc(100% + 4px);
  inset-inline-end: 0;
  min-width: 200px;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--insight-shadow);
  display: flex;
  flex-direction: column;
  z-index: var(--insight-z-dropdown, 1000);
}
.insight-account-menu__panel[hidden] { display: none; }
.insight-account-menu__item { padding: var(--insight-space-3, .75rem); text-decoration: none; color: var(--bs-body-color); min-height: 44px; display: flex; align-items: center; }
.insight-account-menu__item:hover { background: var(--bs-tertiary-bg); }

/* ---------- Form (Simple/Grid/Inline/Settings) ---------- */
.insight-form { display: flex; width: 100%; flex-direction: column; gap: var(--insight-space-4, 1rem); }
.insight-form--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--insight-space-4, 1rem); }
.insight-form--grid > .insight-alert { grid-column: 1 / -1; }
.insight-form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.insight-form__actions { grid-column: 1 / -1; display: flex; justify-content: flex-start; }
@media (max-width: 576px) {
  .insight-form--grid, .insight-form--inline { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
}

/* ---------- Wizard/Stepper ---------- */
.insight-wizard { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--insight-space-2, .5rem); }
.insight-wizard__step { display: flex; align-items: center; gap: var(--insight-space-2, .5rem); color: var(--bs-secondary-color); font-size: .85rem; }
.insight-wizard__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bs-tertiary-bg);
  font-weight: 700;
}
.insight-wizard__step--current { color: var(--bs-body-color); font-weight: 700; }
.insight-wizard__step--current .insight-wizard__step-number { background: var(--bs-primary); color: #fff; }
@media (max-width: 576px) { .insight-wizard { flex-direction: column; align-items: flex-start; } }

/* ---------- Gallery/Lightbox (طبق ADR-0015 — منتقل‌شده از ماژول DS) ---------- */
.insight-gallery { position: relative; width: 100%; height: 360px; touch-action: pan-y; overscroll-behavior-x: contain; cursor: grab; -webkit-tap-highlight-color: transparent; border-radius: var(--bs-border-radius-lg); overflow: hidden; background: var(--insight-ink); }
.insight-gallery:active { cursor: grabbing; }
.insight-gallery__slide { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
.insight-gallery__slide.is-active { opacity: 1; visibility: visible; }
.insight-gallery__slide:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 43%, rgba(16, 22, 68, .82)); pointer-events: none; }
.insight-gallery__slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.insight-gallery__slide figcaption { position: absolute; z-index: 1; inset-inline: 22px; bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 12px; direction: ltr; }
.insight-gallery__slide figcaption span { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.insight-gallery__slide figcaption small { font-size: 12px; opacity: .85; color: #fff; max-width: 55%; font-family: var(--font-fa); text-align: right; direction: rtl; }
.insight-gallery__credit { position: absolute; z-index: 2; top: 13px; left: 13px; max-width: 75%; padding: 5px 8px; border-radius: 7px; background: rgba(12, 18, 57, .68); color: rgba(255, 255, 255, .86); font-size: 8px; line-height: 1.5; text-decoration: none; direction: rtl; backdrop-filter: blur(5px); }
.insight-gallery__control { position: absolute; z-index: 5; top: 50%; width: 38px; height: 54px; margin-top: -27px; border: 0; border-radius: 0; background: transparent; color: #fff; font: 300 38px/1 var(--font-en); text-shadow: 0 2px 8px rgba(0, 0, 0, .55); cursor: pointer; direction: ltr; transition: transform .2s ease; }
.insight-gallery__control:hover { transform: scale(1.04); }
.insight-gallery__control:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.insight-gallery__control--prev { left: 8px; }
.insight-gallery__control--prev:before { content: "‹"; }
.insight-gallery__control--next { right: 8px; }
.insight-gallery__control--next:before { content: "›"; }
.insight-gallery__dots { position: absolute; z-index: 5; bottom: 12px; left: 50%; display: flex; gap: 5px; transform: translateX(-50%); }
.insight-gallery__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.insight-gallery__dots button.is-active { width: 19px; border-radius: 8px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .insight-gallery__control, .insight-gallery__slide { transition: none; } }

body.insight-lightbox-open { overflow: hidden; }
/* height صریح (نه فقط inset:0) با واحد Viewport پویا: در مرورگر موبایل که نوار آدرس با
   Scroll جمع/باز می‌شود، inset:0 به‌تنهایی روی Viewport طرح‌بندی (نه Viewport واقعاً
   دیده‌شده) اندازه می‌گیرد — همان چیزی که باعث می‌شد بخش پایین تصاویر عمودی در Lightbox
   دیده نشود. 100vh برای مرورگرهای قدیمی‌تر Fallback است؛ 100dvh مقدار واقعی را می‌دهد. */
.insight-lightbox { position: fixed; z-index: var(--insight-z-modal, 1055); inset: 0; height: 100vh; height: 100dvh; display: none; grid-template-rows: minmax(0, 1fr) 64px; background: var(--insight-ink); color: #fff; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.insight-lightbox.is-open { display: grid; }
.insight-lightbox.is-single .insight-lightbox-nav { display: none; }
/* Flex، نه Grid: روی Grid Item بدون Stretch (place-items:center)، max-height درصدی روی
   عکس (Replaced Element با width/height:auto) در برخی مرورگرها اصلاً محاسبه نمی‌شود و عکس با
   اندازه طبیعی کامل رندر می‌شود — با اندازه‌گیری واقعی (getBoundingClientRect) تأیید شد که
   Flex این مشکل را ندارد چون ارتفاع درصدی روی عکس به‌طور قابل‌اعتماد نسبت به Flex Container
   حل می‌شود. */
.insight-lightbox-stage { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; cursor: pointer; }
.insight-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: transparent; user-select: none; -webkit-user-drag: none; }
.insight-lightbox-nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.insight-lightbox-nav button { width: 48px; height: 44px; border: 0; border-radius: 0; background: transparent; color: #fff; font: 300 38px/1 var(--font-en); cursor: pointer; }
.insight-lightbox-nav button:hover { transform: scale(1.08); }
.insight-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 680px) {
  .insight-gallery { height: 235px; }
  .insight-gallery__control { width: 30px; height: 50px; margin-top: -25px; }
  .insight-gallery__slide figcaption small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .insight-lightbox-nav button { transition: none; } }

/* ---------- Media Card (طبق ADR-0015 — منتقل‌شده از ماژول DS) ---------- */
.insight-media-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; box-shadow: 0 8px 26px rgba(var(--insight-text-rgb), .08); transition: transform .22s ease, box-shadow .22s ease; }
.insight-media-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(var(--insight-text-rgb), .16); }
/* پیش‌فرض بدون تصویر (طرح آماده Placeholder، Variant `--photo` زیرش با عکس واقعی جایگزین
   می‌شود): همون سه رنگ برند رسمی (Primary → Primary-2 → Accent)، نه یک Gradient بیرون از
   پالت (بازخورد کاربر ۲۰۲۶-۰۸-۰۸، مصداق «هر رنگی هر جایی استفاده شده باید در پالت باشد»). */
.insight-media-card__visual { position: relative; min-height: 205px; padding: 20px; background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-2) 58%, var(--bs-accent)); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.insight-media-card__visual--photo { background-image: linear-gradient(180deg, rgba(20, 30, 90, .12), rgba(16, 22, 68, .86)), var(--insight-media-card-image); background-size: cover; background-position: center; }
.insight-media-card__visual:after { content: ""; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(42, 63, 154, .1), rgba(123, 39, 142, .13)); pointer-events: none; }
.insight-media-card__region, .insight-media-card__identity { position: relative; z-index: 1; }
.insight-media-card__region { display: flex; justify-content: flex-end; }
.insight-media-card__region > * { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(16, 22, 68, .48); font-size: 11px; backdrop-filter: blur(5px); }
.insight-media-card__identity { direction: ltr; text-align: left; align-self: stretch; }
.insight-media-card__body { display: flex; flex-direction: column; flex: 1; padding: 21px; }
.insight-media-card__body h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.5; }
.insight-media-card__body p { display: -webkit-box; min-height: 68px; margin: 0; color: var(--insight-muted); font-size: 13.5px; line-height: 1.85; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.insight-media-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 15px 0; }
.insight-media-card__tags span { padding: 5px 8px; border-radius: 8px; background: var(--bs-tertiary-bg); color: var(--bs-primary); font-size: 11px; font-weight: 800; }
.insight-media-card__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bs-border-color); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; color: var(--insight-muted); font-size: 11px; }
.insight-media-card__meta > span { display: flex; align-items: flex-start; gap: 6px; }
.insight-media-card__meta > span:last-child { text-align: end; }
.insight-media-card__meta b { color: var(--bs-primary); }
.insight-media-card__link { display: flex; align-items: center; gap: 7px; margin-top: 15px; color: var(--insight-primary-2, var(--bs-primary)); font-size: 13px; }
.insight-media-card__link .insight-icon { transition: transform .2s; }
.insight-media-card:hover .insight-media-card__link .insight-icon { transform: translateX(-4px); }
.insight-media-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: 100%; }
.insight-media-card-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .insight-media-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .insight-media-card-grid, .insight-media-card-grid--compact { grid-template-columns: 1fr; } .insight-media-card__body p { min-height: auto; } .insight-media-card__meta { grid-template-columns: 1fr; } }

/* Media Card — Variant فشرده (کارت‌های مرتبط/ثانویه) */
.insight-media-card--compact .insight-media-card__visual { min-height: 125px; padding: 16px; flex-direction: row; align-items: flex-end; justify-content: flex-start; }
.insight-media-card--compact .insight-media-card__identity span { color: #fff; font-size: 14px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.insight-media-card--compact .insight-media-card__body { padding: 18px; }
.insight-media-card--compact .insight-media-card__body p { -webkit-line-clamp: 2; min-height: auto; }

/* ---------- الگو «Stat Strip» (طبق ADR-0015 — منتقل‌شده از ماژول DS) ---------- */
.insight-stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); box-shadow: var(--insight-shadow); }
.insight-stat-strip__item { min-height: 100px; padding: var(--insight-space-3, .75rem) var(--insight-space-4, 1rem); display: grid; grid-template-columns: 32px 1fr; column-gap: var(--insight-space-3, .75rem); align-content: center; }
.insight-stat-strip__item + .insight-stat-strip__item { border-inline-start: 1px solid var(--bs-border-color); }
.insight-stat-strip__item .insight-icon { width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: var(--bs-tertiary-bg); color: var(--insight-primary-2, var(--bs-primary)); }
.insight-stat-strip__item span { display: block; margin-bottom: 4px; font-size: .7rem; color: var(--bs-secondary-color); }
.insight-stat-strip__item b { font-size: .82rem; line-height: 1.65; color: var(--bs-primary); }
@media (max-width: 900px) {
  .insight-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .insight-stat-strip__item:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--bs-border-color); }
  .insight-stat-strip__item:nth-child(4) { border-top: 1px solid var(--bs-border-color); }
}
@media (max-width: 576px) {
  .insight-stat-strip { grid-template-columns: 1fr; }
  .insight-stat-strip__item + .insight-stat-strip__item { border-inline-start: 0; border-top: 1px solid var(--bs-border-color); }
}

/* ---------- الگو «Info Card» (طبق ADR-0015 — منتقل‌شده از ماژول DS) ---------- */
.insight-info-card { padding: var(--insight-space-4, 1rem); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); box-shadow: var(--insight-shadow); }
.insight-info-card h3 { display: flex; align-items: center; gap: var(--insight-space-2, .5rem); margin: 0 0 var(--insight-space-3, .75rem); font-size: 1.05rem; }
.insight-info-card h3 .insight-icon { color: var(--insight-primary-2, var(--bs-primary)); }
.insight-info-card__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--insight-space-2, .5rem); }
.insight-info-card__list li { position: relative; padding-inline-start: 22px; color: var(--bs-body-color); font-size: .82rem; line-height: 1.8; }
.insight-info-card__list li:before { position: absolute; inset-inline-start: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: .56rem; font-weight: 800; }
.insight-info-card__list--positive li:before { content: "✓"; background: var(--bs-success-bg-subtle, #e5f6ed); color: var(--bs-success); }
.insight-info-card__list--negative li:before { content: "–"; background: var(--bs-danger-bg-subtle, #fbecec); color: var(--bs-danger); }
.insight-info-card__list--alert li:before { content: ""; width: 7px; height: 7px; top: 9px; background: var(--bs-warning); }
.insight-info-card--caution { border-color: var(--bs-danger); }

/* ---------- الگو «Timeline Steps» (طبق ADR-0015 — منتقل‌شده از ماژول DS) ---------- */
.insight-timeline { position: relative; width: 100%; }
.insight-timeline:before { content: ""; position: absolute; inset-inline-start: 21px; top: 11px; bottom: 11px; width: 1px; background: var(--bs-border-color); }
.insight-timeline__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--insight-space-3, 1rem); padding-block-end: var(--insight-space-5, 1.5rem); }
.insight-timeline__step:last-child { padding-block-end: 0; }
.insight-timeline__number { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bs-primary); color: #fff; font-weight: 800; font-size: .7rem; }
.insight-timeline__step h3 { margin: .1rem 0 .3rem; font-size: 1.05rem; }
.insight-timeline__step p { margin: 0; color: var(--bs-secondary-color); font-size: .85rem; line-height: 1.9; text-align: justify; text-align-last: right; text-justify: inter-word; }
@media (max-width: 576px) {
  .insight-timeline:before { inset-inline-start: 19px; }
  .insight-timeline__step { grid-template-columns: 40px 1fr; gap: var(--insight-space-2, .5rem); }
  .insight-timeline__number { width: 40px; height: 40px; }
}

.insight-disclosure { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 16px; box-shadow: var(--insight-shadow, 0 1px 3px rgba(0,0,0,.06)); margin: .75rem 0; overflow: hidden; }
.insight-disclosure__toggle { width: 100%; border: 0; background: transparent; padding: .9rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--bs-primary); font-weight: 800; cursor: pointer; text-align: start; }
.insight-disclosure__toggle > span:first-child { flex: 1; min-width: 0; }
.insight-disclosure__toggle small { display: block; font-weight: 400; color: var(--bs-secondary-color); font-size: .7rem; margin-top: .15rem; }
.insight-disclosure__trailing { flex-shrink: 0; font-weight: 400; }
.insight-disclosure__chevron { transition: transform .2s; font-size: 1.1rem; flex-shrink: 0; }
.insight-disclosure.is-open .insight-disclosure__chevron { transform: rotate(180deg); }
.insight-disclosure__content { display: none; padding: 0 1rem 1rem; }
.insight-disclosure.is-open .insight-disclosure__content { display: block; }

.insight-page-header__eyebrow { display: block; font: 800 10px var(--font-en); letter-spacing: 1.5px; color: var(--insight-accent); }
.insight-page-header__title { margin: 5px 0; color: var(--insight-primary); font-size: 27px; }
.insight-page-header__desc { margin: 0 0 22px; color: var(--insight-muted); font-size: 12px; line-height: 1.9; }

.insight-segmented-toggle { margin-top: .75rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 16px; box-shadow: var(--insight-shadow, 0 1px 3px rgba(0,0,0,.06)); overflow: hidden; }
.insight-segmented-toggle__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-bottom: 1px solid var(--bs-border-color); }
.insight-segmented-toggle__tab { width: 100%; border: 0; background: var(--bs-tertiary-bg); color: var(--bs-primary); padding: .8rem 1rem; text-align: start; cursor: pointer; }
.insight-segmented-toggle__tab + .insight-segmented-toggle__tab { border-inline-start: 1px solid var(--bs-border-color); }
.insight-segmented-toggle__tab span { display: block; font-size: .8rem; font-weight: 800; }
.insight-segmented-toggle__tab small { display: block; margin-top: .2rem; font-size: .65rem; color: var(--bs-secondary-color); }
.insight-segmented-toggle__tab.is-active { color: #fff; background: linear-gradient(105deg, var(--insight-primary-2, var(--bs-primary)), var(--insight-accent, var(--bs-primary))); }
.insight-segmented-toggle__tab.is-active small { color: rgba(255, 255, 255, .82); }
.insight-segmented-toggle__panel { display: none; width: 100%; padding: .75rem .85rem; max-height: 285px; overflow: auto; }
.insight-segmented-toggle__panel.is-open { display: block; }

/* ---------- Dropdown (طبق بازخورد کاربر ۲۰۲۶-۰۸-۰۸) — همون الگوی Account Menu، عمومی‌شده ---------- */
.insight-dropdown { position: relative; display: inline-block; }
.insight-dropdown__menu {
  position: absolute; z-index: var(--insight-z-dropdown, 1000);
  inset-block-start: calc(100% + 4px); inset-inline-end: 0;
  min-width: 180px; display: none; flex-direction: column;
  padding: var(--insight-space-1, .25rem);
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius); box-shadow: var(--insight-shadow);
}
.insight-dropdown.is-open .insight-dropdown__menu { display: flex; }
.insight-dropdown__item {
  display: flex; align-items: center; gap: var(--insight-space-2, .5rem);
  min-height: 40px; padding-inline: var(--insight-space-2, .5rem);
  border: 0; background: transparent; border-radius: var(--bs-border-radius-sm);
  color: var(--bs-body-color); text-decoration: none; font-size: .85rem; text-align: start; cursor: pointer;
}
.insight-dropdown__item:hover { background: var(--bs-tertiary-bg); }
.insight-dropdown__item--danger { color: var(--bs-danger); }

/* ---------- Offcanvas ---------- */
.insight-offcanvas { position: fixed; inset: 0; z-index: var(--insight-z-modal, 1055); display: none; }
.insight-offcanvas.is-open { display: block; }
.insight-offcanvas__backdrop { position: absolute; inset: 0; background: var(--insight-overlay); }
.insight-offcanvas__panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 360px);
  display: flex; flex-direction: column; background: var(--bs-body-bg);
  box-shadow: var(--insight-shadow); transform: translateX(0);
}
/* بدون Override مخصوص [dir="rtl"]: inset-inline-start/end از ابتدا Logical و RTL-Aware هستند —
   یک Override دستی اضافه (که این‌جا تا پیش از این وجود داشت) دوباره آن‌ها را برعکس می‌کند و پنل
   را از سمت اشتباه باز می‌کند. باگ واقعی، در تست بصری واقعی همین تسک (اولین مصرف واقعی این
   Component در کل پروژه) کشف شد — طبق قانون سخت «Property منطقی، نه فیزیکی» اصلاح شد. */
.insight-offcanvas__header { display: flex; align-items: center; justify-content: space-between; padding: var(--insight-space-4, 1rem); border-bottom: 1px solid var(--bs-border-color); }
.insight-offcanvas__title { margin: 0; font-size: 1.05rem; }
.insight-offcanvas__close { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--bs-secondary-color); min-width: 44px; min-height: 44px; }
.insight-offcanvas__body { padding: var(--insight-space-4, 1rem); overflow-y: auto; }
/* Variant — End: از سمت پایان منطقی باز می‌شود (مثلاً فیلتر پیشرفته)، نه همیشه سمت شروع. */
.insight-offcanvas--end .insight-offcanvas__panel { inset-inline-start: auto; inset-inline-end: 0; }

/* ---------- Tooltip (فقط CSS/Hover — بدون JS/Popper، برای متن کوتاه راهنما) ---------- */
.insight-tooltip { position: relative; display: inline-flex; }
.insight-tooltip[data-insight-tooltip]:before,
.insight-tooltip[data-insight-tooltip]:after { position: absolute; z-index: var(--insight-z-tooltip, 1080); opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none; }
.insight-tooltip[data-insight-tooltip]:before {
  content: attr(data-insight-tooltip); inset-block-end: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  max-width: 220px; padding: 6px 10px; border-radius: var(--bs-border-radius-sm);
  background: var(--insight-ink); color: #fff; font-size: .72rem; line-height: 1.5; text-align: center; white-space: nowrap;
}
.insight-tooltip[data-insight-tooltip]:after {
  content: ""; inset-block-end: calc(100% + 3px); left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--insight-ink);
}
.insight-tooltip[data-insight-tooltip]:hover:before, .insight-tooltip[data-insight-tooltip]:hover:after,
.insight-tooltip[data-insight-tooltip]:focus-visible:before, .insight-tooltip[data-insight-tooltip]:focus-visible:after { opacity: 1; visibility: visible; }

/* ---------- Popover (کلیک‌محور، محتوای بلندتر از Tooltip) ---------- */
.insight-popover { position: relative; display: inline-block; }
.insight-popover__panel {
  position: absolute; z-index: var(--insight-z-tooltip, 1080);
  inset-block-start: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  display: none; width: max(240px, min(320px, 90vw));
  padding: var(--insight-space-3, .75rem); background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); box-shadow: var(--insight-shadow);
}
.insight-popover.is-open .insight-popover__panel { display: block; }
.insight-popover__title { margin: 0 0 .35rem; font-size: .88rem; font-weight: 800; }
.insight-popover__body { font-size: .8rem; line-height: 1.7; color: var(--bs-secondary-color); }
@media (max-width: 576px) {
  .insight-popover__panel {
    position: fixed;
    inset: 50% var(--insight-space-4, 1rem) auto;
    width: auto;
    max-block-size: calc(100vh - 2 * var(--insight-space-4, 1rem));
    max-block-size: calc(100dvh - 2 * var(--insight-space-4, 1rem));
    overflow-y: auto;
    transform: translateY(-50%);
  }
}

/* ---------- Scrollspy (فقط Highlight لینک فعال؛ ظاهر از همون Navigation/Pill Nav می‌آید) ---------- */
.insight-scrollspy [data-insight-scrollspy-link].is-active { background: var(--bs-tertiary-bg); font-weight: 800; }

/* ---------- Task #98: Design System Library Expansion (بنچمارک AdminLTE v4) ---------- */

/* ---------- Callout ---------- */
.insight-callout { padding: var(--insight-space-3, .75rem) var(--insight-space-4, 1rem); border-radius: var(--bs-border-radius); border-inline-start: 4px solid; background: var(--bs-tertiary-bg); }
.insight-callout__title { margin: 0 0 .3rem; font-weight: 800; font-size: .9rem; }
.insight-callout__body { font-size: .84rem; line-height: 1.8; color: var(--bs-secondary-color); }
.insight-callout--info { border-inline-start-color: var(--bs-info); }
.insight-callout--info .insight-callout__title { color: var(--bs-info-text-emphasis, var(--bs-info)); }
.insight-callout--success { border-inline-start-color: var(--bs-success); }
.insight-callout--success .insight-callout__title { color: var(--bs-success-text-emphasis, var(--bs-success)); }
.insight-callout--warning { border-inline-start-color: var(--bs-warning); }
.insight-callout--warning .insight-callout__title { color: var(--bs-warning-text-emphasis, var(--bs-warning)); }
.insight-callout--danger { border-inline-start-color: var(--bs-danger); }
.insight-callout--danger .insight-callout__title { color: var(--bs-danger-text-emphasis, var(--bs-danger)); }

/* ---------- Activity Feed ---------- */
.insight-activity-feed { position: relative; display: flex; flex-direction: column; gap: var(--insight-space-3, .75rem); }
.insight-activity-feed:before { content: ""; position: absolute; inset-inline-start: 16px; top: 8px; bottom: 8px; width: 1px; background: var(--bs-border-color); }
.insight-activity-feed__item { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: var(--insight-space-3, .75rem); }
.insight-activity-feed__icon { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); }
.insight-activity-feed__icon--primary { color: var(--bs-primary); }
.insight-activity-feed__icon--accent { color: var(--bs-accent); }
.insight-activity-feed__icon--success { color: var(--bs-success); }
.insight-activity-feed__icon--warning { color: var(--bs-warning); }
.insight-activity-feed__icon--danger { color: var(--bs-danger); }
.insight-activity-feed__text { margin: 0; font-size: .85rem; line-height: 1.7; color: var(--bs-body-color); }
.insight-activity-feed__time { display: block; margin-top: .2rem; font-size: .72rem; color: var(--bs-secondary-color); }

/* ---------- Notification List ---------- */
.insight-notification-list { display: flex; flex-direction: column; }
.insight-notification { display: flex; align-items: flex-start; gap: var(--insight-space-3, .75rem); padding: var(--insight-space-3, .75rem); border-bottom: 1px solid var(--bs-border-color); }
.insight-notification:last-child { border-bottom: 0; }
.insight-notification--unread { background: color-mix(in srgb, var(--bs-primary) 5%, var(--bs-body-bg)); }
.insight-notification__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.insight-notification__icon--primary { background: color-mix(in srgb, var(--bs-primary) 14%, var(--bs-body-bg)); color: var(--bs-primary); }
.insight-notification__icon--accent { background: color-mix(in srgb, var(--bs-accent) 14%, var(--bs-body-bg)); color: var(--bs-accent); }
.insight-notification__icon--success { background: var(--bs-success-bg-subtle); color: var(--bs-success); }
.insight-notification__icon--warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning); }
.insight-notification__icon--danger { background: var(--bs-danger-bg-subtle); color: var(--bs-danger); }
.insight-notification__text { margin: 0; font-size: .82rem; line-height: 1.7; color: var(--bs-body-color); }
.insight-notification__time { display: block; margin-top: .15rem; font-size: .7rem; color: var(--bs-secondary-color); }

/* ---------- Profile Card ---------- */
.insight-profile-card { display: flex; align-items: center; gap: var(--insight-space-3, .75rem); padding: var(--insight-space-4, 1rem); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); box-shadow: var(--insight-shadow); }
.insight-profile-card--compact { padding: var(--insight-space-2, .5rem); gap: var(--insight-space-2, .5rem); box-shadow: none; }
.insight-profile-card__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.insight-profile-card__name { margin: 0; font-weight: 800; font-size: .95rem; color: var(--bs-body-color); }
.insight-profile-card--compact .insight-profile-card__name { font-size: .82rem; }
.insight-profile-card__role { margin: 0; font-size: .78rem; color: var(--bs-secondary-color); }
.insight-profile-card__stats { display: flex; gap: var(--insight-space-4, 1rem); margin-inline-start: auto; }
.insight-profile-card__stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.insight-profile-card__stat b { font-size: 1.1rem; font-weight: 800; color: var(--bs-primary); }
.insight-profile-card__stat span { font-size: .72rem; color: var(--bs-secondary-color); }

/* ---------- Quick Actions ---------- */
.insight-quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: var(--insight-space-3, .75rem); }
.insight-quick-actions__item { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: var(--insight-space-3, .75rem) var(--insight-space-2, .5rem); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); background: var(--bs-body-bg); text-decoration: none; cursor: pointer; min-height: 44px; transition: border-color .15s ease, box-shadow .15s ease; }
.insight-quick-actions__item:hover { border-color: var(--bs-primary); box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb, 31, 2, 123), .12); }
.insight-quick-actions__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.insight-quick-actions__icon--primary { background: color-mix(in srgb, var(--bs-primary) 14%, var(--bs-body-bg)); color: var(--bs-primary); }
.insight-quick-actions__icon--accent { background: color-mix(in srgb, var(--bs-accent) 14%, var(--bs-body-bg)); color: var(--bs-accent); }
.insight-quick-actions__icon--ocean { background: color-mix(in srgb, var(--bs-ocean) 14%, var(--bs-body-bg)); color: var(--bs-ocean); }
.insight-quick-actions__label { font-size: .74rem; font-weight: 700; color: var(--bs-body-color); text-align: center; }

/* ---------- Dashboard Grid (الگوی چیدمان، نه یک تابع PHP تازه — ترکیبی از Componentهای بالا) ---------- */
.insight-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--insight-space-4, 1rem); width: 100%; }
.insight-dashboard-grid--wide-first > :first-child { grid-column: 1 / -1; }

/* ---------- Task #100: Application Templates (فقط سطح UI Pattern، بدون Business Logic) ---------- */

/* Calendar (Month Grid) */
.insight-template-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--bs-border-color); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); overflow: hidden; }
.insight-template-calendar__weekday { padding: .4rem; background: var(--bs-tertiary-bg); font-size: .72rem; font-weight: 800; text-align: center; color: var(--bs-secondary-color); }
.insight-template-calendar__day { min-height: 64px; padding: .35rem; background: var(--bs-body-bg); font-size: .78rem; color: var(--bs-body-color); }
.insight-template-calendar__day--muted { color: var(--bs-secondary-color); opacity: .5; }
.insight-template-calendar__day--today { background: color-mix(in srgb, var(--bs-primary) 8%, var(--bs-body-bg)); font-weight: 800; }
.insight-template-calendar__day .insight-chip { display: block; margin-top: .3rem; font-size: .6rem; }

/* Kanban (Column Board) */
.insight-template-kanban { display: flex; gap: var(--insight-space-3, .75rem); overflow-x: auto; padding-block-end: .5rem; }
.insight-template-kanban__column { flex: 0 0 260px; display: flex; flex-direction: column; gap: var(--insight-space-2, .5rem); padding: var(--insight-space-2, .5rem); background: var(--bs-tertiary-bg); border-radius: var(--bs-border-radius-lg); }
.insight-template-kanban__column-title { display: flex; align-items: center; justify-content: space-between; padding: .3rem .5rem; font-size: .8rem; font-weight: 800; }
.insight-template-kanban__card { padding: var(--insight-space-2, .5rem) var(--insight-space-3, .75rem); background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); font-size: .78rem; box-shadow: var(--insight-shadow); }

/* File Manager (Grid) */
.insight-template-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--insight-space-3, .75rem); }
.insight-template-file-item { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: var(--insight-space-2, .5rem); border-radius: var(--bs-border-radius); text-align: center; cursor: pointer; }
.insight-template-file-item:hover { background: var(--bs-tertiary-bg); }
.insight-template-file-item__icon { width: 42px; height: 42px; border-radius: var(--bs-border-radius); background: color-mix(in srgb, var(--bs-primary) 12%, var(--bs-body-bg)); color: var(--bs-primary); display: grid; place-items: center; }
.insight-template-file-item__name { font-size: .72rem; color: var(--bs-body-color); overflow-wrap: anywhere; }

/* Centered State Page (Maintenance/Error) */
.insight-template-state-page { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--insight-space-3, .75rem); padding: var(--insight-space-5, 1.5rem); text-align: center; min-height: 220px; }
.insight-template-state-page__code { font-size: 2.4rem; font-weight: 900; color: var(--bs-primary); }
.insight-template-state-page__message { margin: 0; color: var(--bs-secondary-color); font-size: .9rem; max-width: 420px; }

/* Pricing */
.insight-template-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--insight-space-4, 1rem); }
.insight-template-pricing-plan { display: flex; flex-direction: column; gap: var(--insight-space-2, .5rem); padding: var(--insight-space-4, 1rem); text-align: center; }
.insight-template-pricing-plan__price { font-size: 1.8rem; font-weight: 900; color: var(--bs-primary); }
.insight-template-pricing-plan__period { font-size: .75rem; color: var(--bs-secondary-color); }

.insight-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; margin-top: .9rem; }
.insight-pagination a { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding-inline: .4rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: var(--bs-body-bg); color: var(--bs-primary); text-decoration: none; font-weight: 800; font-size: .8rem; }
.insight-pagination a[aria-current="page"] { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
@media (max-width: 576px) {
  .insight-segmented-toggle__tabs { grid-template-columns: 1fr; }
  .insight-segmented-toggle__tab + .insight-segmented-toggle__tab { border-inline-start: 0; border-top: 1px solid var(--bs-border-color); }
}
