/* ============================================================
   بخش «آخرین مقالات / مجله» (pg-journal) — مشترکِ هر ۳ چیدمان، قبل از فوتر.
   طراحی از Claude Design. کلاس‌های عمومیِ متداخل (card/title/container/…)
   به pg-j* تغییرِ نام یافته‌اند تا با بخشِ دسته‌بندی‌ها تداخل نکنند.
   متغیرها از --bm-* نگاشت می‌شوند (دارک‌مود + رنگ‌بندیِ پنل).
   ============================================================ */
.pg-journal{
  --pg-font: var(--bm-font, "Vazirmatn", Tahoma, Arial, sans-serif);
  --pg-page: var(--bm-bg);
  --pg-surface: var(--bm-surface);
  --pg-surface-2: var(--bm-surface-2);
  --pg-text: var(--bm-text);
  --pg-muted: var(--bm-text-sub);
  --pg-border: var(--bm-border);
  --pg-primary: var(--bm-primary);
  --pg-primary-soft: var(--bm-primary-soft);
  --pg-cyan: #169fd0; --pg-amber: #d79516; --pg-green: #168c68;
  --pg-shadow: var(--bm-shadow-lg, 0 15px 45px rgba(28,40,72,.08));
  --pg-shadow-hover: var(--bm-shadow-xl, 0 24px 60px rgba(28,40,72,.15));
}
:root[data-theme="dark"] .pg-journal{
  --pg-cyan: #35bce9; --pg-amber: #f0b43d; --pg-green: #35ba8d;
  --pg-shadow: 0 18px 48px rgba(0,0,0,.18); --pg-shadow-hover: 0 28px 68px rgba(0,0,0,.3);
}
.pg-journal *{ box-sizing: border-box; }
.pg-journal button, .pg-journal a{ color: inherit; font: inherit; }
.pg-journal a{ text-decoration: none; }

    .pg-journal {
      position: relative;
      overflow: hidden;
      padding: clamp(34px, 4vw, 54px) 20px;
      background: var(--pg-page);
      border-block: 1px solid var(--pg-border);
    }

    .pg-jcont { position: relative; width: min(980px, 100%); margin-inline: auto; }

    .pg-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 28px;
      margin-bottom: 13px;
    }

    .pg-head-copy { max-width: 720px; }
    .pg-jeyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 29px;
      margin: 0 0 8px;
      padding: 5px 11px;
      color: var(--pg-primary);
      background: var(--pg-primary-soft);
      border: 1px solid color-mix(in srgb, var(--pg-primary) 20%, transparent);
      border-radius: 999px;
      font-size: 10px;
      font-weight: 900;
    }
    .pg-jeyebrow::before { width: 7px; height: 7px; content: ""; background: var(--pg-amber); border-radius: 50%; }
    .pg-jtitle { margin: 0; font-size: clamp(23px, 2.4vw, 31px); font-weight: 900; line-height: 1.35; letter-spacing: -.04em; }
    .pg-jlead { margin: 5px 0 0; color: var(--pg-muted); font-size: 11px; font-weight: 500; line-height: 1.75; }

    .pg-jactions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
    .pg-theme,
    .pg-jall {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 40px;
      background: var(--pg-surface);
      border: 1px solid var(--pg-border);
      border-radius: 13px;
      box-shadow: var(--pg-shadow);
    }
    .pg-theme { width: 40px; padding: 0; cursor: pointer; }
    .pg-theme svg { width: 19px; height: 19px; }
    .pg-theme .pg-moon { display: none; }
    [data-theme="dark"] .pg-theme .pg-sun { display: none; }
    [data-theme="dark"] .pg-theme .pg-moon { display: block; }
    .pg-jall { gap: 9px; padding: 0 15px; color: var(--pg-primary); font-size: 11px; font-weight: 900; }
    .pg-jall svg { width: 16px; height: 16px; transition: transform .2s ease; }
    .pg-jall:hover svg { transform: translateX(-3px); }

    .pg-filter-bar {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 10px;
      padding-bottom: 1px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .pg-filter-bar::-webkit-scrollbar { display: none; }
    .pg-filter {
      min-height: 31px;
      flex: 0 0 auto;
      padding: 5px 12px;
      color: var(--pg-muted);
      background: transparent;
      border: 1px solid var(--pg-border);
      border-radius: 999px;
      cursor: pointer;
      font-size: 9px;
      font-weight: 800;
      transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
    }
    .pg-filter:hover { color: var(--pg-text); transform: translateY(-1px); }
    .pg-filter.is-active { color: #fff; background: var(--pg-primary); border-color: var(--pg-primary); }

    .pg-layout {
      display: grid;
      grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
      grid-template-rows: repeat(3, minmax(0, 1fr));
      gap: 8px 10px;
    }
    .pg-layout.is-filtered { grid-template-columns: 1fr; grid-template-rows: auto; }
    .pg-layout.is-filtered .pg-jcard:not([hidden]) {
      display: grid;
      min-height: 170px;
      grid-column: 1;
      grid-row: auto;
      grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
    }
    .pg-layout.is-filtered .pg-jcard:not([hidden]) .pg-cover { min-height: 170px; }

    .pg-jcard {
      --accent: var(--pg-primary);
      position: relative;
      overflow: hidden;
      color: var(--pg-text);
      background: var(--pg-surface);
      border: 1px solid var(--pg-border);
      border-radius: 16px;
      box-shadow: var(--pg-shadow);
      transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s ease, border-color .26s ease;
    }
    .pg-jcard::after { position: absolute; inset: 0 0 auto; height: 3px; content: ""; background: var(--accent); transform: scaleX(.18); transform-origin: right; transition: transform .3s ease; }

    @media (hover: hover) and (pointer: fine) {
      .pg-jcard:hover { z-index: 2; border-color: color-mix(in srgb, var(--accent) 42%, var(--pg-border)); box-shadow: var(--pg-shadow-hover); transform: translateY(-4px); }
      .pg-jcard:hover::after { transform: scaleX(1); }
    }

    .pg-jcard--featured {
      display: flex;
      min-height: 380px;
      grid-column: 2;
      grid-row: 1 / 4;
      flex-direction: column;
      --accent: var(--pg-primary);
    }
    .pg-jcard--compact {
      display: grid;
      min-height: 100px;
      grid-column: 1;
      grid-template-columns: 126px minmax(0, 1fr);
      --accent: var(--pg-cyan);
    }
    .pg-jcard--compact[data-category="design"] { --accent: var(--pg-cyan); }
    .pg-jcard--compact[data-category="ai"] { --accent: var(--pg-amber); }
    .pg-jcard--compact[data-category="career"] { --accent: var(--pg-green); }

    .pg-cover { position: relative; overflow: hidden; isolation: isolate; }
    .pg-cover-image {
      position: absolute;
      z-index: 1;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      max-width: none;
      object-fit: cover;
      object-position: var(--pg-image-position, center);
    }
    /* وقتی عکسِ واقعی هست، آرتِ SVG مخفی شود تا پشتِ عکس دیده نشود */
    .pg-cover.has-image .pg-cover-art { display: none; }
    /* قانونِ سراسریِ موبایلِ قالب (.pg-home img{height:auto !important} در v3-mobile.css)
       ارتفاعِ عکسِ کاور را خودکار می‌کرد و عکس فقط نیمهٔ بالای کاور را پر می‌کرد.
       این‌جا فقط برای عکسِ کاورِ همین بخش خنثی می‌شود تا کل کاور را پر کند. */
    .pg-journal .pg-cover .pg-cover-image { width: 100% !important; height: 100% !important; max-width: none !important; }
    .pg-jcard--featured .pg-cover { min-height: 240px; }
    .pg-jcard--compact .pg-cover { min-height: 100%; }
    .pg-cover--indigo { background: #5058df; }
    .pg-cover--cyan { background: #148eb8; }
    .pg-cover--amber { background: #c48318; }
    .pg-cover--green { background: #14785d; }
    [data-theme="light"] .pg-cover--indigo { background: #6267f0; }
    [data-theme="light"] .pg-cover--cyan { background: #23a9d4; }
    [data-theme="light"] .pg-cover--amber { background: #e5a02a; }
    [data-theme="light"] .pg-cover--green { background: #24916f; }

    .pg-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255,255,255,.92); }
    .pg-cover-art .soft { opacity: .16; }
    .pg-cover-art .line { opacity: .72; }
    .pg-cover-badge {
      position: absolute;
      z-index: 2;
      inset: 12px 12px auto auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 25px;
      padding: 4px 9px;
      color: #fff;
      background: rgba(10, 19, 34, .72);
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 999px;
      font-size: 8px;
      font-weight: 900;
      backdrop-filter: blur(8px);
    }
    .pg-cover-badge::before { width: 5px; height: 5px; content: ""; background: var(--pg-amber); border-radius: 50%; }

    .pg-content { min-width: 0; }
    .pg-jcard--featured .pg-content { display: flex; flex: 1; flex-direction: column; padding: 13px 15px; }
    .pg-jcard--compact .pg-content { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 9px 12px; }

    .pg-category { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 5px; color: var(--accent); font-size: 8.5px; font-weight: 900; }
    .pg-category::before { width: 5px; height: 5px; content: ""; background: currentColor; border-radius: 50%; }
    .pg-jcard-title { margin: 0; font-weight: 900; line-height: 1.65; letter-spacing: -.02em; }
    .pg-jcard--featured .pg-jcard-title { font-size: 18px; }
    .pg-jcard--compact .pg-jcard-title { font-size: 13px; }
    .pg-excerpt { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: var(--pg-muted); font-size: 10px; font-weight: 500; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

    .pg-meta { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 7px; color: var(--pg-muted); font-size: 7.5px; font-weight: 700; }
    .pg-meta-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
    .pg-meta-item svg { width: 14px; height: 14px; color: var(--accent); }
    .pg-author { display: flex; align-items: center; gap: 7px; margin-inline-start: auto; color: var(--pg-text); }
    .pg-avatar { display: grid; width: 25px; height: 25px; place-items: center; color: #fff; background: var(--accent); border-radius: 8px; font-size: 8px; font-weight: 900; }

    .pg-jcard[hidden] { display: none !important; }

    .pg-slider-nav { display: none; }

    .pg-motion-ready .pg-jcard.pg-await {
      opacity: 0;
      filter: blur(4px);
      transform: translateY(16px) scale(.987);
      transition: opacity .58s cubic-bezier(.22,1,.36,1), filter .58s ease, transform .58s cubic-bezier(.22,1,.36,1);
      transition-delay: var(--delay, 0ms);
    }
    .pg-motion-ready .pg-jcard.pg-await.pg-show { opacity: 1; filter: none; transform: none; }

    /* ============================================================
       ۳.۷.۲۴ — ستونِ کارت‌های باریک (اسکرولِ خودکارِ عمودی) + کارتِ شاخص به شکلِ «خبرِ اصلی»
       قاب‌های pg-jfeed فقط در دسکتاپ (≥۱۰۲۵) جعبه‌اند؛ در تبلت/موبایل و حالتِ فیلتر display:contents
       هستند تا چیدمان و اسلایدرِ قبلی دقیقاً همان بماند.
       ============================================================ */
    .pg-jfeed, .pg-jfeed-track { display: contents; }
    .pg-jclone { display: none !important; }
    .pg-jfeed-toggle { display: none; }
    .pg-jread { display: none; }
    .pg-cover-badge--feat svg { width: 11px; height: 11px; }
    .pg-cover-badge--feat::before { display: none; }
    .pg-jcard--featured .pg-jcard-title a::after { position: absolute; z-index: 4; inset: 0; content: ""; }

    @media (min-width: 1025px) {
      /* ستونِ کارت‌های باریک: ۳ کارت در دید، بقیه با حرکتِ خودکار از پایین به بالا */
      .pg-journal .pg-layout:not(.is-filtered) .pg-jfeed {
        position: relative;
        display: block;
        min-height: 0;
        margin-inline: -14px;
        overflow: hidden;
        grid-column: 1;
        grid-row: 1 / 4;
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jfeed-track {
        position: absolute;
        inset: 0 14px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jfeed-track.is-moving { transition: transform .75s cubic-bezier(.65, 0, .35, 1); }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jfeed .pg-jcard--compact { flex: 0 0 calc((100% - 16px) / 3); min-height: 0; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jclone { display: grid !important; }
      @media (hover: hover) and (pointer: fine) {
        .pg-journal .pg-jfeed .pg-jcard:hover { transform: none; }
      }
      .pg-journal.has-ticker .pg-jactions .pg-jfeed-toggle {
        display: inline-grid;
        width: 40px;
        min-height: 40px;
        padding: 0;
        place-items: center;
        color: var(--pg-muted);
        background: var(--pg-surface);
        border: 1px solid var(--pg-border);
        border-radius: 13px;
        box-shadow: var(--pg-shadow);
        cursor: pointer;
      }
      .pg-jfeed-toggle svg { width: 15px; height: 15px; }
      .pg-jfeed-toggle .pg-i-play,
      .pg-jfeed-toggle[aria-pressed="true"] .pg-i-pause { display: none; }
      .pg-jfeed-toggle[aria-pressed="true"] .pg-i-play { display: block; }
      .pg-jfeed-toggle:hover { color: var(--pg-primary); }
      .pg-jfeed-toggle:focus-visible { outline: 2px solid var(--pg-primary); outline-offset: 2px; }

      /* کارتِ شاخص = خبرِ اصلی: کاورِ تمام‌قد، متن روی تصویر، نشانِ طلایی و دکمهٔ «خواندن مقاله» */
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured {
        min-height: 400px;
        color: #fff;
        border-color: transparent;
        box-shadow: 0 26px 60px -26px color-mix(in srgb, var(--pg-primary) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--pg-primary) 28%, transparent);
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-cover { position: absolute; inset: 0; min-height: 0; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-cover::after {
        position: absolute;
        z-index: 1;
        inset: 0;
        content: "";
        background: linear-gradient(to top, rgba(7, 9, 28, .94) 0%, rgba(7, 9, 28, .7) 34%, rgba(7, 9, 28, .12) 62%, rgba(7, 9, 28, 0) 78%);
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-cover-art { inset: 0 0 auto; height: 68%; overflow: visible; }
      .pg-journal .pg-jcard--featured .pg-cover-image,
      .pg-journal .pg-jcard--featured .pg-cover-art { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
      @media (hover: hover) and (pointer: fine) {
        .pg-journal .pg-jcard--featured:hover .pg-cover-image,
        .pg-journal .pg-jcard--featured:hover .pg-cover-art { transform: scale(1.05); }
        .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured:hover { border-color: transparent; }
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-content {
        position: relative;
        z-index: 3;
        flex: 0 0 auto;
        margin-top: auto;
        padding: 22px 24px 20px;
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-category { color: #c7d2fe; font-size: 10px; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-jcard-title { color: #fff; font-size: 23px; line-height: 1.55; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-excerpt { color: rgba(255, 255, 255, .8); font-size: 12px; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-meta { color: rgba(255, 255, 255, .72); font-size: 9px; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-meta-item svg { color: #c7d2fe; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-author { color: #fff; }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jcard--featured .pg-avatar { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
      .pg-journal .pg-layout:not(.is-filtered) .pg-jread {
        display: inline-flex;
        align-self: flex-start;
        align-items: center;
        gap: 7px;
        margin-top: 14px;
        padding: 8px 14px;
        color: var(--pg-primary);
        background: #fff;
        border-radius: 999px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
        font-size: 11.5px;
        font-weight: 900;
      }
      .pg-jread svg { width: 15px; height: 15px; transition: transform .2s ease; }
      .pg-jcard--featured:hover .pg-jread svg { transform: translateX(-3px); }
      .pg-journal .pg-layout:not(.is-filtered) .pg-cover-badge--feat {
        inset: 16px 16px auto auto;
        min-height: 28px;
        padding: 5px 11px;
        color: #fff;
        background: linear-gradient(135deg, #f59e0b, #f97316);
        border-color: rgba(255, 255, 255, .35);
        box-shadow: 0 8px 20px rgba(249, 115, 22, .35);
        font-size: 10px;
        animation: pg-feat-glow 2.8s ease-in-out infinite;
      }
      .pg-journal .pg-layout:not(.is-filtered) .pg-cover-badge--feat svg { width: 13px; height: 13px; }
      @keyframes pg-feat-glow { 0%, 100% { box-shadow: 0 8px 20px rgba(249, 115, 22, .35), 0 0 0 0 rgba(249, 115, 22, .4); } 50% { box-shadow: 0 8px 20px rgba(249, 115, 22, .35), 0 0 0 7px rgba(249, 115, 22, 0); } }
      .pg-journal.is-offscreen .pg-cover-badge--feat { animation-play-state: paused; }
    }

    @media (max-width: 1024px) and (min-width: 761px) {
      .pg-journal { padding-block: 44px; }
      .pg-layout { grid-template-columns: 1fr; grid-template-rows: auto; }
      .pg-jcard--featured {
        display: grid;
        min-height: 220px;
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
      }
      .pg-jcard--featured .pg-cover { min-height: 220px; }
      .pg-jcard--featured .pg-content { padding: 20px; }
      .pg-jcard--compact {
        min-height: 112px;
        grid-column: 1;
        grid-template-columns: 145px minmax(0, 1fr);
      }
    }

    @media (max-width: 760px) {
      .pg-journal { padding: 32px 0 27px; }
      .pg-jcont { width: 100%; }
      .pg-head { align-items: start; gap: 9px; margin-bottom: 13px; padding-inline: 14px; }
      .pg-head-copy { min-width: 0; }
      .pg-jeyebrow { min-height: 26px; margin-bottom: 6px; padding-inline: 9px; font-size: 8.5px; }
      .pg-jtitle { font-size: clamp(20px, 6vw, 26px); }
      .pg-jlead { max-width: 470px; margin-top: 4px; font-size: 10px; line-height: 1.7; }
      .pg-jactions { gap: 5px; }
      .pg-jall span { display: none; }
      .pg-theme, .pg-jall { width: 36px; min-height: 36px; padding: 0; border-radius: 11px; box-shadow: none; }
      .pg-theme svg { width: 16px; height: 16px; }

      .pg-filter-bar { gap: 5px; margin: 0 0 11px; padding-inline: 14px; }
      .pg-filter { min-height: 29px; padding: 4px 10px; font-size: 8.5px; }

      .pg-layout,
      .pg-layout.is-filtered {
        display: flex;
        grid-template: none;
        gap: 9px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 14px 4px;
        direction: rtl;
        scroll-behavior: smooth;
        scroll-padding-inline: 14px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
      }
      .pg-layout::-webkit-scrollbar { display: none; }

      .pg-jcard--featured,
      .pg-jcard--compact,
      .pg-layout.is-filtered .pg-jcard:not([hidden]) {
        display: grid;
        height: 156px;
        min-height: 156px;
        flex: 0 0 calc(100vw - 28px);
        grid-column: auto;
        grid-row: auto;
        grid-template-columns: 116px minmax(0, 1fr);
        border-radius: 17px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
      }
      .pg-layout.is-filtered .pg-jcard:not([hidden]) { flex-basis: calc(100vw - 28px); }
      .pg-jcard--featured .pg-cover,
      .pg-jcard--compact .pg-cover,
      .pg-layout.is-filtered .pg-jcard:not([hidden]) .pg-cover { min-height: 100%; }
      .pg-jcard--featured .pg-cover-art { transform: scale(1.18); }
      .pg-jcard--featured .pg-content,
      .pg-jcard--compact .pg-content { justify-content: center; padding: 12px 13px; }
      .pg-category,
      .pg-jcard--featured .pg-category { margin-bottom: 4px; font-size: 8px; }
      .pg-jcard--featured .pg-jcard-title,
      .pg-jcard--compact .pg-jcard-title { font-size: 14.5px; line-height: 1.6; }
      .pg-jcard--featured .pg-excerpt,
      .pg-jcard--compact .pg-excerpt { margin-top: 4px; font-size: 10px; line-height: 1.7; -webkit-line-clamp: 1; }
      .pg-meta,
      .pg-jcard--featured .pg-meta,
      .pg-jcard--compact .pg-meta { gap: 6px; padding-top: 7px; font-size: 7.5px; }
      .pg-author { display: none; }
      .pg-cover-badge { inset: 9px 9px auto auto; min-height: 22px; padding-inline: 7px; font-size: 7.5px; }

      .pg-slider-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 31px;
        margin-top: 7px;
        padding-inline: 14px;
      }
      .pg-slider-nav.is-single { display: none; }
      .pg-slider-button {
        display: grid;
        width: 29px;
        height: 29px;
        flex: 0 0 auto;
        padding: 0;
        place-items: center;
        color: var(--pg-muted);
        background: transparent;
        border: 1px solid var(--pg-border);
        border-radius: 50%;
        cursor: pointer;
      }
      .pg-slider-button:disabled { opacity: .32; cursor: default; }
      .pg-slider-button svg { width: 14px; height: 14px; }
      .pg-slider-dots { display: flex; align-items: center; gap: 5px; direction: rtl; }
      .pg-slider-dot {
        width: 5px;
        height: 5px;
        padding: 0;
        background: var(--pg-border);
        border: 0;
        border-radius: 99px;
        cursor: pointer;
        transition: width .2s ease, background-color .2s ease;
      }
      .pg-slider-dot.is-active { width: 18px; background: var(--pg-primary); }
      .pg-slider-count { min-width: 30px; color: var(--pg-muted); font-size: 8px; font-weight: 800; direction: rtl; }
    }

    @media (max-width: 430px) {
      .pg-journal { padding-top: 27px; }
      .pg-head { padding-inline: 10px; }
      .pg-jlead { max-width: 285px; }
      .pg-filter-bar { padding-inline: 10px; }
      .pg-layout,
      .pg-layout.is-filtered { padding-inline: 10px; scroll-padding-inline: 10px; }
      .pg-jcard--featured,
      .pg-jcard--compact,
      .pg-layout.is-filtered .pg-jcard:not([hidden]) {
        height: 146px;
        min-height: 146px;
        flex-basis: calc(100vw - 20px);
        grid-template-columns: 96px minmax(0, 1fr);
      }
      .pg-layout.is-filtered .pg-jcard:not([hidden]) { flex-basis: calc(100vw - 20px); }
      .pg-jcard--featured .pg-content,
      .pg-jcard--compact .pg-content { padding: 10px 11px; }
      .pg-jcard--featured .pg-jcard-title,
      .pg-jcard--compact .pg-jcard-title { font-size: 13.5px; }
      .pg-jcard--featured .pg-excerpt,
      .pg-jcard--compact .pg-excerpt { font-size: 9.8px; }
      .pg-slider-nav { margin-top: 5px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .pg-journal *, .pg-journal *::before, .pg-journal *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    }
