/* Phase 32: unified CMS category listings, direct detail view, and site polish.
   Loaded after earlier theme files to avoid additive layout overrides. */
:root { --nj-soft-lilac: #faf5ff; --nj-ink: #281449; --nj-purple: #642cc8; }

/* Use the same 3-column visual vocabulary as /news, for all four CMS sections. */
body:not(.panel-body) .public-content-list { max-width: 1350px; margin-inline: auto; }
body:not(.panel-body) .public-content-heading { display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
body:not(.panel-body) .public-content-heading h1 { font-weight:900; margin:10px 0 4px; color:#27124a; }
body:not(.panel-body) .public-content-heading p { color:#806f98; margin:0; }
body:not(.panel-body) .public-content-count { font-size:.84rem; font-weight:800; padding:9px 15px; border-radius:999px; background:#f0e7fd; color:#6732b4; }
body:not(.panel-body) .public-content-breadcrumb { display:inline-flex; font-size:.83rem; font-weight:800; color:#7541c0; margin-bottom:5px; }
body:not(.panel-body) .public-content-filters { background:#f8f3ff; padding:14px; border:1px solid #eee2ff; border-radius:15px; }
body:not(.panel-body) .public-content-filters label { display:flex; flex-direction:column; gap:6px; min-width:185px; font-size:.83rem; font-weight:800; color:#554572; }
body:not(.panel-body) .public-content-filters input,
body:not(.panel-body) .public-content-filters select { height:44px; border:1px solid #dcd0f1; border-radius:11px; background:#fff; padding:9px 12px; color:var(--nj-ink); min-width:0; }
body:not(.panel-body) .public-content-list .news-public-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; margin-top:22px; }
body:not(.panel-body) .public-content-list .news-public-card { overflow:hidden; min-width:0; border:1px solid #ece1fa; border-radius:17px; background:#fff; box-shadow:0 5px 16px rgba(70,30,122,.05); transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease; }
body:not(.panel-body) .public-content-list .news-public-card:hover { transform:translateY(-5px); box-shadow:0 14px 28px rgba(70,30,122,.14); border-color:#d2b8f6; }
body:not(.panel-body) .public-content-list .news-public-card a { display:block; color:var(--nj-ink); height:100%; }
body:not(.panel-body) .public-content-list .news-public-card img,
body:not(.panel-body) .public-content-image-placeholder { display:block; width:100%; height:190px; object-fit:cover; }
body:not(.panel-body) .public-content-image-placeholder { display:grid; place-items:center; color:#7f56cb; font-size:1.5rem; font-weight:900; background:linear-gradient(135deg,#efe2ff,#faf7ff); }
body:not(.panel-body) .public-content-list .public-content-card-body { padding:15px 18px 17px; text-align:right; }
body:not(.panel-body) .public-content-list .news-public-card h2 { font-size:1.08rem; margin:8px 0 5px; line-height:1.7; font-weight:900; }
body:not(.panel-body) .public-content-list .news-public-card p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; min-height:3.8em; margin:0 0 10px; color:#756889; line-height:1.85; font-size:.87rem; }
body:not(.panel-body) .public-content-list .news-public-card small { display:block; font-size:.76rem; color:#9082a9; }
body:not(.panel-body) .public-content-open { display:inline-flex; align-items:center; gap:6px; color:#6832bd; font-size:.8rem; font-weight:900; margin-top:11px; }
body:not(.panel-body) .public-content-empty { grid-column:1/-1; background:#faf6ff; border:1px dashed #d9c8f4; border-radius:14px; padding:30px; text-align:center; color:#7d6b99; }
body:not(.panel-body) .public-content-paging { justify-content:center; flex-wrap:wrap; padding-top:24px; }

/* Shared dimensions for the original news list and the four CMS content lists. */
body:not(.panel-body) .public-news .news-public-card { border-color:#ece1fa; box-shadow:0 5px 16px rgba(70,30,122,.05); transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease; }
body:not(.panel-body) .public-news .news-public-card:hover { transform:translateY(-5px); box-shadow:0 14px 28px rgba(70,30,122,.14); border-color:#d2b8f6; }
body:not(.panel-body) .public-news .news-public-card>a { display:flex; flex-direction:column; height:100%; min-height:100%; }
body:not(.panel-body) .public-news .news-public-card>a>div:last-child { flex:1; display:flex; flex-direction:column; align-items:flex-start; width:100%; }
body:not(.panel-body) .public-news .news-public-card>a>div:last-child small { margin-top:auto; padding-top:8px; }
body:not(.panel-body) .public-news .news-public-card img { width:100%; height:190px; object-fit:cover; }
body:not(.panel-body) .public-news .news-public-card h2 { font-weight:900; font-size:1.08rem; line-height:1.7; }
body:not(.panel-body) .public-news .news-public-card p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; line-height:1.85; font-size:.87rem; }

/* Detail pages open directly from category cards, with the same hierarchy as news detail. */
body:not(.panel-body) .public-content-detail { max-width:960px; margin-inline:auto; }
body:not(.panel-body) .public-content-detail h1 { font-size:clamp(1.6rem,2.8vw,2.2rem); line-height:1.65; }
body:not(.panel-body) .public-content-detail .news-cover { object-fit:contain; max-height:490px; height:auto; background:#f7f3fd; }
body:not(.panel-body) .public-content-detail .news-body { white-space:normal; line-height:2.2; overflow-wrap:anywhere; margin-top:22px; }
body:not(.panel-body) .public-content-detail .news-lead { font-weight:700; color:#5b4d6b; }
body:not(.panel-body) .public-content-register { padding:18px 20px; margin-top:26px; border-radius:16px; background:#f7f1ff; border:1px solid #ebddfa; }
body:not(.panel-body) .public-content-register p { margin:0 0 12px; color:#655679; }
body:not(.panel-body) .public-content-detail-footer { border-top:1px solid #eee4fa; margin-top:28px; padding-top:18px; font-weight:800; }

/* Softer backdrops, keeping approved content and responsive structure intact. */
body:not(.panel-body) .nojavonim-home .p31-newsletter { background:linear-gradient(115deg,#f7edff 0%,#fdfaff 48%,#f9f0ff 100%); border-color:#e6d6fb; }
body:not(.panel-body) .nojavonim-home .sample-ecosystem-strip { background:linear-gradient(130deg,#f9f2ff 0%,#f2efff 55%,#edf5ff 100%); border-color:#e7ddfa; box-shadow:0 9px 22px rgba(68,38,121,.06); }

/* Floating feedback for interactive controls on public pages only. */
body:not(.panel-body) .main-btn,
body:not(.panel-body) .ghost-btn,
body:not(.panel-body) .p31-heading a,
body:not(.panel-body) .p31-newsletter-submit,
body:not(.panel-body) .p31-campaign-cta,
body:not(.panel-body) .paging a,
body:not(.panel-body) .account-nav>a,
body:not(.panel-body) .sample-ecosystem-strip .ecosystem-links a,
body:not(.panel-body) button:not(:disabled) {
  transition:transform .22s ease,box-shadow .22s ease,filter .22s ease,background .22s ease;
  will-change:transform;
}
body:not(.panel-body) .main-btn:hover,
body:not(.panel-body) .ghost-btn:hover,
body:not(.panel-body) .p31-heading a:hover,
body:not(.panel-body) .p31-newsletter-submit:hover,
body:not(.panel-body) .p31-campaign-cta:hover,
body:not(.panel-body) .paging a:hover,
body:not(.panel-body) .account-nav>a:hover,
body:not(.panel-body) .sample-ecosystem-strip .ecosystem-links a:hover,
body:not(.panel-body) button:not(:disabled):hover { transform:translateY(-3px); box-shadow:0 10px 19px rgba(72,33,141,.19); filter:saturate(1.06); }
body:not(.panel-body) a:focus-visible,
body:not(.panel-body) button:focus-visible { outline:3px solid #ad88ec; outline-offset:3px; }

/* An independent tasteful signature underneath the site's existing footer. */
body:not(.panel-body) .site-foot { padding-bottom:13px; }
body:not(.panel-body) .corevia-footer { max-width:1300px; margin:0 auto 18px; padding:15px 20px; border-top:1px solid #e4d6fa; display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px 17px; text-align:center; font-size:.82rem; color:#7b6c93; }
body:not(.panel-body) .corevia-divider { display:block; width:1px; height:20px; background:#cdbbe6; }
body:not(.panel-body) .corevia-credit { position:relative; display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:999px; text-decoration:none; font-weight:800; color:#6635ac; background:linear-gradient(120deg,#f4e9ff,#f2efff); border:1px solid #e5d3fa; box-shadow:0 2px 10px #6e46b30c; transition:transform .25s ease,box-shadow .25s ease,color .25s ease,background .25s ease; }
body:not(.panel-body) .corevia-credit strong { direction:ltr; unicode-bidi:isolate; font-weight:900; letter-spacing:.15px; background:linear-gradient(90deg,#7538d1,#3d70cb,#8a42ca); background-clip:text; -webkit-background-clip:text; color:transparent; }
body:not(.panel-body) .corevia-arrow { display:inline-block; transition:transform .25s ease; font-size:1rem; }
body:not(.panel-body) .corevia-credit:hover { transform:translateY(-3px); box-shadow:0 10px 22px #6e46b326; background:#fff; }
body:not(.panel-body) .corevia-credit:hover .corevia-arrow { transform:translate(2px,-2px) rotate(8deg); }

@media (max-width:850px) {
  body:not(.panel-body) .news-public-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.panel-body) .public-content-list .news-public-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body:not(.panel-body) .public-content-list { padding:20px; }
  body:not(.panel-body) .public-content-list .news-public-card img,
  body:not(.panel-body) .public-content-image-placeholder { height:170px; }
}
@media (max-width:540px) {
  body:not(.panel-body) .news-public-grid { grid-template-columns:1fr; }
  body:not(.panel-body) .public-content-list .news-public-grid { grid-template-columns:1fr; }
  body:not(.panel-body) .public-content-list { padding:15px; }
  body:not(.panel-body) .public-content-filters { padding:11px; }
  body:not(.panel-body) .public-content-list .news-public-card img,
  body:not(.panel-body) .public-content-image-placeholder { height:190px; }
  body:not(.panel-body) .corevia-footer { padding:13px 10px; font-size:.75rem; gap:8px; }
  body:not(.panel-body) .corevia-divider { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  body:not(.panel-body) .main-btn,body:not(.panel-body) .ghost-btn,body:not(.panel-body) .p31-heading a,
  body:not(.panel-body) .p31-newsletter-submit,body:not(.panel-body) .p31-campaign-cta,body:not(.panel-body) .paging a,
  body:not(.panel-body) .account-nav>a,body:not(.panel-body) .sample-ecosystem-strip .ecosystem-links a,
  body:not(.panel-body) button,body:not(.panel-body) .corevia-credit,body:not(.panel-body) .corevia-arrow,
  body:not(.panel-body) .public-content-list .news-public-card { transition:none; animation:none; transform:none!important; }
}
