/* ==========================================================================
   PRISM PUBLICATION — Sovereign Scholarly Design System
   Oxford Navy · Citation Gold · Royal Sapphire · Pristine Canvas
   Strict compliance with CSIR-NISCPR India & ISSN International
   ========================================================================== */

:root {
  /* Scholarly Royal Sapphire (Interactive Brand) */
  --p-50:  #eff6ff;
  --p-100: #dbeafe;
  --p-200: #bfdbfe;
  --p-300: #93c5fd;
  --p-400: #60a5fa;
  --p-500: #3b82f6;
  --p-600: #2563eb;
  --p-700: #1d4ed8;
  --p-800: #1e40af;
  --p-900: #1e3a8a;
  --p-950: #0a152d;

  --p-tint-1: #eff6ff;
  --p-tint-2: #dbeafe;
  --p-tint-3: #bfdbfe;

  /* Sovereign Oxford Navy */
  --navy-950: #070e1e;
  --navy-900: #0a152d;
  --navy-850: #0e1d3e;
  --navy-800: #142852;
  --navy-700: #1c366e;

  /* Citation Gold & Bronze */
  --gold: #c59b27;
  --gold-hover: #d4af37;
  --gold-soft: #fef7e6;
  --gold-border: rgba(197, 155, 39, 0.35);
  --gold-glow: rgba(197, 155, 39, 0.2);

  /* Pristine Canvas & Surfaces */
  --bg: #f8fafc;
  --bg-sunken: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;

  /* Ink & Typography */
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  /* Accent mappings */
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-ink: #ffffff;
  --accent-soft: #eff6ff;
  --focus: 0 0 0 3px rgba(37, 99, 235, 0.3);

  /* Refined Academic Gold-Sapphire Signature rule */
  --spectrum: linear-gradient(90deg, #c59b27 0%, #d4af37 25%, #1d4ed8 50%, #2563eb 75%, #c59b27 100%);
  --hero-ink: linear-gradient(150deg, #070e1e 0%, #0c1836 50%, #09132b 100%);

  --font-display: "Fraunces", Georgia, Cambria, serif;
  --font-ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -12px rgba(10, 21, 45, 0.16);
  --container: 1280px;
  color-scheme: light;
}

:is(html[data-theme="dark"], html.dark-mode) {
  --p-tint-1: #0f1d38;
  --p-tint-2: #142548;
  --p-tint-3: #1c3566;
  --bg: #070e1c;
  --bg-sunken: #050a14;
  --surface: #0b152d;
  --surface-2: #0f1d3e;
  --surface-3: #142852;
  --ink: #f8fafc;
  --ink-2: #e2e8f0;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --line: #1e293b;
  --line-strong: #334155;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-ink: #ffffff;
  --accent-soft: #0f1d38;
  --gold: #f59e0b;
  --gold-soft: #271c08;
  --shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
html, body { background: var(--bg) !important; color: var(--ink) !important; }
body.pp-body {
  font-family: var(--font-ui) !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}
body.pp-body h1, body.pp-body h2, body.pp-body h3,
.pp-display { font-family: var(--font-display); letter-spacing: -0.015em; color: inherit; }
body.pp-body h1 { font-weight: 600; }
body.pp-body h2 { font-weight: 600; }
body.pp-body h3 { font-weight: 600; }
body.pp-body .font-sans { font-family: var(--font-ui) !important; }
body.pp-body .font-serif { font-family: var(--font-display) !important; }
::selection { background: var(--p-200); color: var(--p-950); }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus) !important; border-radius: 6px; }
img { max-width: 100%; }
.pp-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .pp-container { padding: 0 32px; } }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-skip { position: absolute; left: 12px; top: -60px; z-index: 10050; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.pp-skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.pp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
  line-height: 1; text-decoration: none !important; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; cursor: pointer;
}
.pp-btn:hover { transform: translateY(-1px); }
.pp-btn:active { transform: translateY(0); }
.pp-btn--primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px -6px rgba(29, 78, 216, 0.45);
}
.pp-btn--primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 12px 24px -6px rgba(29, 78, 216, 0.6);
  color: #ffffff !important;
}

/* Dedicated Sovereign Archive Button (always prominent beside Submit) */
.pp-btn--archive {
  background: #ffffff;
  color: #0a152d !important;
  border: 1.5px solid #c59b27 !important;
  box-shadow: 0 2px 8px rgba(10, 21, 45, 0.08);
}
.pp-btn--archive i { color: #b45309; }
.pp-btn--archive:hover {
  background: #fef7e6;
  border-color: #b45309 !important;
  color: #78350f !important;
  box-shadow: 0 6px 16px rgba(197, 155, 39, 0.28);
}

.pp-btn--ghost {
  background: #ffffff;
  color: var(--ink) !important;
  border-color: var(--line-strong);
}
.pp-btn--ghost:hover {
  border-color: #1d4ed8;
  color: #1d4ed8 !important;
  background: var(--p-50);
}
.pp-btn--light {
  background: #ffffff;
  color: #0a152d !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.pp-btn--light:hover {
  background: #f8fafc;
  color: #1d4ed8 !important;
}
.pp-btn--outline-light {
  background: rgba(255,255,255,0.06);
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.3);
}
.pp-btn--outline-light:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.7);
  color: #ffffff !important;
}
.pp-btn--sm { padding: .52rem .95rem; font-size: .82rem; }

/* legacy button classes used across templates */
.btn-theme-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .5) !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .2s ease !important;
}
.btn-theme-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 12px 24px -6px rgba(29, 78, 216, 0.6) !important;
  transform: translateY(-1px) !important;
}
.btn-theme-secondary {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1.5px solid #c59b27 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: all .2s ease !important;
}
.btn-theme-secondary:hover {
  background: #fef7e6 !important;
  border-color: #b45309 !important;
  color: #78350f !important;
}
.theme-unified-card {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.theme-unified-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow) !important;
  border-color: #93c5fd !important;
}
.theme-unified-icon-box, .theme-unified-pill {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
  border: 1px solid var(--line) !important;
}

/* ---------- spectrum signature ---------- */
.pp-spectrum { height: 3px; background: var(--spectrum); }

/* ---------- utility bar ---------- */
.pp-utility { background: #070e1e; color: #cbd5e1; font-size: .78rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
:is(html[data-theme="dark"], html.dark-mode) .pp-utility { background: #050a14; border-bottom: 1px solid var(--line); }
.pp-utility__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.pp-utility__facts { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.pp-utility__facts span { display: inline-flex; align-items: center; gap: .4rem; }
.pp-utility__facts i { color: #f59e0b; font-size: .72rem; }
.pp-utility__links { display: flex; align-items: center; gap: .3rem; }
.pp-utility__links a { color: #f1f5f9; text-decoration: none; padding: .35rem .7rem; border-radius: 999px; font-weight: 600; transition: background .2s, color .2s; }
.pp-utility__links a:hover { background: rgba(255,255,255,.12); color: #fde68a; }
.pp-utility__social { display: flex; gap: .15rem; margin-left: .5rem; padding-left: .7rem; border-left: 1px solid rgba(255,255,255,.15); }
.pp-utility__social a { width: 28px; height: 28px; padding: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; color: #cbd5e1; }
.pp-utility__social a:hover { color: #ffffff; }
.pp-utility__links a { white-space: nowrap; }
@media (max-width: 1199px) { .pp-utility__facts .pp-hide-md { display: none; } }
@media (max-width: 899px) { .pp-utility__facts { display: none !important; } .pp-utility__inner { justify-content: flex-end; } }
@media (max-width: 767px) {
  .pp-utility__facts { display: none; }
  .pp-utility__inner { justify-content: center; }
  .pp-utility__social { display: none; }
  .pp-utility__links a { padding: .35rem .55rem; font-size: .74rem; }
}

/* ---------- header / nav ---------- */
.pp-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.pp-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }
.pp-brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none !important; color: var(--ink) !important; flex-shrink: 0; }
.pp-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(23, 15, 64, .6); }
.pp-brand__text { display: flex; flex-direction: column; line-height: 1; }
.pp-brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.pp-brand__sub { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-top: .3rem; }

.pp-nav { display: none; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1100px) { .pp-nav { display: flex; } }
.pp-nav > li { position: relative; }
.pp-nav > li > a, .pp-nav > li > button {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .75rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink-2) !important; text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.pp-nav > li > a:hover, .pp-nav > li > button:hover, .pp-nav > li:focus-within > button { background: var(--surface-3); color: var(--ink) !important; }
.pp-nav > li > a[aria-current="page"] { color: var(--accent) !important; }
.pp-nav .pp-caret { width: 12px; height: 12px; opacity: .6; transition: transform .2s; }
.pp-nav > li:hover .pp-caret, .pp-nav > li:focus-within .pp-caret { transform: rotate(180deg); }

.pp-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  min-width: 300px; padding: .6rem; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 70;
}
.pp-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.pp-nav > li:hover > .pp-menu, .pp-nav > li:focus-within > .pp-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.pp-menu--wide { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .4rem; }
.pp-menu a {
  display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: 12px;
  text-decoration: none !important; color: var(--ink) !important; font-weight: 600; font-size: .88rem;
  transition: background-color .15s;
}
.pp-menu a small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.pp-menu a:hover { background: var(--accent-soft); }
.pp-menu a:hover strong, .pp-menu a:hover > span { color: var(--accent); }
.pp-menu__label { grid-column: 1 / -1; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--muted-2); padding: .5rem .8rem .25rem; }

.pp-actions { display: flex; align-items: center; gap: .5rem; }
.pp-icon-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: all .2s;
}
.pp-icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.pp-desktop-only { display: none !important; }
@media (min-width: 1100px) { .pp-desktop-only { display: inline-flex !important; } .pp-mobile-only { display: none !important; } }

/* mobile drawer */
#mobile-overlay { position: fixed; inset: 0; background: rgba(8, 7, 25, .55); backdrop-filter: blur(3px); z-index: 80; opacity: 0; transition: opacity .25s; }
#mobile-overlay.opacity-100 { opacity: 1; }
#mobile-overlay.hidden { display: none; }
#mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw); z-index: 90;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform .32s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column;
}
#mobile-drawer.is-open { transform: translateX(0); }
.pp-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.pp-drawer__body { flex: 1; overflow-y: auto; padding: .6rem 1.2rem 1.6rem; }
.pp-drawer__body > a, .pp-drawer__group > button {
  display: flex; width: 100%; justify-content: space-between; align-items: center; padding: .9rem .2rem; border: 0; background: none;
  border-bottom: 1px solid var(--line); color: var(--ink) !important; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: var(--font-ui);
}
.pp-drawer__group > div { display: flex; flex-direction: column; padding: .4rem 0 .7rem .6rem; border-bottom: 1px solid var(--line); }
.pp-drawer__group > div.hidden { display: none; }
.pp-drawer__group > div a { padding: .45rem 0; color: var(--muted) !important; text-decoration: none; font-weight: 500; }
.pp-drawer__group > div a:hover { color: var(--accent) !important; }
.pp-drawer__cta { margin-top: 1.4rem; display: grid; gap: .6rem; }

/* ---------- messages ---------- */
.pp-messages { max-width: 760px; margin: 1.5rem auto 0; padding: 0 20px; display: grid; gap: .7rem; }
.pp-message { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 600; }
.pp-message i { width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pp-message--success i { background: #dcfce7; color: #15803d; }
.pp-message--warning i { background: #fef3c7; color: #b45309; }
.pp-message--error i { background: #fee2e2; color: #b91c1c; }
.pp-message--info i { background: var(--p-100); color: var(--p-700); }

/* ---------- footer ---------- */
.pp-footer {
  background: #070e1e;
  color: #cbd5e1;
  margin-top: 4.5rem;
  position: relative;
  border-top: 3px solid #c59b27;
}
.pp-footer a { color: #e2e8f0; text-decoration: none; transition: color 0.18s; }
.pp-footer a:hover { color: #fde68a; text-decoration: underline; text-underline-offset: 3px; }
.pp-footer__cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 3.5rem 0 2.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: radial-gradient(circle at 10% 50%, rgba(29, 78, 216, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 90% 50%, rgba(197, 155, 39, 0.1) 0%, transparent 50%);
}
@media (min-width: 900px) { .pp-footer__cta { grid-template-columns: 1.4fr 1fr; } }
.pp-footer__cta h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: #ffffff; line-height: 1.15; margin: 0; font-weight: 600; }
.pp-footer__cta h2 em { font-style: italic; color: #fde68a; font-family: var(--font-display); }
.pp-footer__cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-start; }
@media (min-width: 900px) { .pp-footer__cta-actions { justify-content: flex-end; } }
.pp-footer__grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pp-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pp-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; } }
.pp-footer h4 { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fde68a; margin: 0 0 1.1rem; font-weight: 800; }
.pp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.pp-footer__brand p { font-size: .92rem; line-height: 1.7; margin: 1rem 0 0; max-width: 36ch; color: #94a3b8; }
.pp-footer .pp-brand { color: #ffffff !important; }
.pp-footer .pp-brand__sub { color: #cbd5e1; }
.pp-footer__contact p { margin: 0 0 .75rem; font-size: .9rem; display: flex; gap: .65rem; align-items: flex-start; color: #cbd5e1; }
.pp-footer__contact i { color: #f59e0b; margin-top: .3rem; width: 14px; flex-shrink: 0; }
.pp-social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.pp-social a {
  width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #f1f5f9; transition: all .2s;
}
.pp-social a:hover { background: #c59b27; color: #070e1e; text-decoration: none; transform: translateY(-2px); border-color: #c59b27; }
.pp-social svg { width: 14px; height: 14px; fill: currentColor; }
.pp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  justify-content: space-between;
  font-size: .82rem;
  color: #94a3b8;
}
.pp-footer__bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.pp-footer__bottom nav a { color: #cbd5e1; font-weight: 500; }
.pp-footer__bottom nav a:hover { color: #fde68a; }

/* ---------- workspace shell (all inner pages) ---------- */
.prism-workspace-shell {
  max-width: var(--container); margin: 0 auto; padding: 2.2rem 20px 1rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start;
}
@media (min-width: 768px) { .prism-workspace-shell { padding: 2.6rem 32px 1rem; } }
@media (min-width: 1100px) { .prism-workspace-shell { grid-template-columns: 260px minmax(0, 1fr); gap: 2.8rem; } }
.prism-workspace-rail {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-sm); overflow: hidden;
}
.prism-workspace-rail::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--spectrum); }
@media (min-width: 1100px) { .prism-workspace-rail { position: sticky; top: 96px; } }
@media (max-width: 1099px) {
  .prism-workspace-rail { order: 2; }
  .prism-workspace-body { order: 1; }
}
.prism-rail-brand { display: block; font-size: .68rem !important; letter-spacing: .24em; text-transform: uppercase; font-weight: 800; color: #1d4ed8 !important; text-decoration: none !important; }
.prism-workspace-rail > p { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: .35rem 0 1rem; color: var(--ink); line-height: 1.2; }
.prism-workspace-rail nav { display: grid; gap: .25rem; }
.prism-workspace-rail nav a {
  display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem; border-radius: 10px;
  color: var(--ink-2) !important; text-decoration: none !important; font-weight: 600; font-size: .88rem; transition: all .15s;
}
.prism-workspace-rail nav a span { color: var(--muted-2); transition: transform .2s; }
.prism-workspace-rail nav a:hover { background: var(--accent-soft); color: var(--accent) !important; }
.prism-workspace-rail nav a:hover span { color: var(--accent); transform: translate(2px, -2px); }
.prism-rail-note {
  margin-top: 1.25rem; padding: 1.1rem; border-radius: 14px;
  background: linear-gradient(145deg, #070e1e 0%, #0c1836 100%);
  color: #e2e8f0; border: 1px solid rgba(197, 155, 39, 0.25);
}
.prism-rail-note span { font-size: .64rem; letter-spacing: .2em; font-weight: 800; color: #fde68a; display: block; }
.prism-rail-note p { margin: .45rem 0 .65rem; font-size: .84rem; line-height: 1.55; color: #cbd5e1; }
.prism-rail-note a { color: #fde68a !important; font-weight: 700; font-size: .84rem; text-decoration: none; }
.prism-rail-note a:hover { text-decoration: underline; color: #ffffff !important; }

.prism-workspace-body { min-width: 0; }
.prism-workspace-heading, .prism-page-heading {
  position: relative; padding: 2.4rem 2.2rem 2.2rem; margin-bottom: 2rem; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #070e1e 0%, #0c1836 60%, #10234a 100%);
  color: #ffffff; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,0.08);
}
.prism-workspace-heading::after, .prism-page-heading::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 280px; height: 280px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.25) 0%, rgba(29, 78, 216, 0.2) 50%, transparent 70%);
  filter: blur(40px); opacity: .7;
}
.prism-workspace-heading span, .prism-page-heading span { font-size: .7rem; letter-spacing: .22em; font-weight: 800; color: #fde68a; text-transform: uppercase; }
.prism-workspace-heading h1, .prism-page-heading h1 { font-size: clamp(2rem, 4.2vw, 3.1rem) !important; line-height: 1.1; margin: .5rem 0 .6rem; color: #ffffff !important; font-weight: 600 !important; }
.prism-workspace-heading p, .prism-page-heading p { color: #cbd5e1 !important; margin: 0; max-width: 65ch; font-size: 1.05rem; }

.prism-page-content { min-width: 0; color: var(--ink-2); }
.prism-page-content > * + * { margin-top: 0; }

.prism-reading-index {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .9rem 1rem; margin-bottom: 1.6rem;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm);
}
.prism-reading-index strong { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: .4rem; }
.prism-reading-index a { padding: .35rem .75rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2) !important; text-decoration: none !important; transition: all 0.18s; }
.prism-reading-index a:hover { background: var(--accent-soft); color: var(--accent) !important; border-color: #93c5fd; }

.prism-legacy-notice {
  max-width: var(--container); margin: 1.4rem auto 0; padding: .85rem 1.25rem; border-radius: 12px;
  border: 1px solid rgba(197, 155, 39, 0.35); background: #fefcf3; color: #78350f; font-size: .86rem;
  width: calc(100% - 40px); display: flex; align-items: center; gap: .8rem;
}
.prism-legacy-notice strong { color: #92400e; display: inline-block; font-weight: 700; white-space: nowrap; }
.prism-legacy-notice p { margin: 0; color: #92400e; }

/* ---------- content surfaces inside inner pages ---------- */
.prism-page-content .bg-white,
.prism-page-content .shadow, .prism-page-content .shadow-md, .prism-page-content .shadow-lg, .prism-page-content .shadow-xl {
  border-color: var(--line);
}
.prism-page-content .shadow, .prism-page-content .shadow-md { box-shadow: var(--shadow-sm) !important; }
.prism-page-content .shadow-lg, .prism-page-content .shadow-xl, .prism-page-content .shadow-2xl { box-shadow: var(--shadow) !important; }
.prism-page-content .rounded-lg, .prism-page-content .rounded-xl { border-radius: var(--radius) !important; }
.prism-page-content .rounded-2xl, .prism-page-content .rounded-3xl { border-radius: var(--radius-lg) !important; }
.prism-page-content h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--ink); }
.prism-page-content h3 { font-size: 1.2rem; color: var(--ink); }
.prism-page-content p, .prism-page-content li { color: var(--ink-2); }
.prism-page-content a:not([class]) { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- forms (global) ---------- */
body.pp-body input[type="text"], body.pp-body input[type="email"], body.pp-body input[type="password"],
body.pp-body input[type="tel"], body.pp-body input[type="number"], body.pp-body input[type="url"],
body.pp-body input[type="search"], body.pp-body input[type="date"], body.pp-body select, body.pp-body textarea {
  background-color: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line-strong) !important;
  border-radius: 12px !important; padding: .7rem .9rem; font-family: var(--font-ui); font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
body.pp-body input:focus, body.pp-body select:focus, body.pp-body textarea:focus {
  border-color: var(--accent) !important; box-shadow: var(--focus) !important; outline: none !important;
}
body.pp-body input::placeholder, body.pp-body textarea::placeholder { color: var(--muted-2) !important; }
body.pp-body input[type="file"] { font-size: .88rem; color: var(--muted); }
body.pp-body input[type="file"]::file-selector-button {
  margin-right: .8rem; border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: .55rem .95rem; border-radius: 999px; cursor: pointer;
}
body.pp-body label { color: var(--ink-2); }
body.pp-body input[type="checkbox"], body.pp-body input[type="radio"] { accent-color: var(--accent); }
body.pp-body button[type="submit"]:not(.pp-btn):not([class*="bg-red"]):not([class*="bg-green"]),
body.pp-body input[type="submit"] {
  background: var(--accent) !important; color: var(--accent-ink) !important; border-color: transparent !important;
}
body.pp-body button[type="submit"]:not(.pp-btn):not([class*="bg-red"]):not([class*="bg-green"]):hover,
body.pp-body input[type="submit"]:hover { background: var(--accent-hover) !important; }

/* ---------- tables ---------- */
.prism-page-content table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prism-page-content thead th, .prism-page-content th { background: var(--surface-2) !important; color: var(--ink) !important; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; border-bottom: 1px solid var(--line) !important; }
.prism-page-content td { border-color: var(--line) !important; color: var(--ink-2); }
.prism-page-content tbody tr:hover td { background: var(--surface-2); }

/* ---------- legacy decorative classes neutralised ---------- */
.issn-pulse-badge { animation: none !important; background: var(--accent-soft) !important; color: var(--accent) !important; border: 1px solid var(--p-200) !important; text-shadow: none !important; }
.icon-pulse, .icon-spin, .icon-bounce { animation: none !important; }
:is(html[data-theme="dark"], html.dark-mode) nav { background-color: transparent; }

/* ---------- chat desk ---------- */
#chatbot-container { position: fixed; bottom: 24px; right: 24px; z-index: 9998; font-family: var(--font-ui); }
#chat-button {
  background: #070e1e; color: #ffffff; padding: 10px 18px; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; box-shadow: 0 10px 25px -5px rgba(7, 14, 30, 0.45); border: 1.5px solid #c59b27; transition: all .2s;
}
:is(html[data-theme="dark"], html.dark-mode) #chat-button { background: #0b152d; border-color: #d97706; }
#chat-button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -5px rgba(7, 14, 30, 0.6); background: #0c1836; border-color: #f59e0b; }
#chat-window {
  display: none; position: fixed; bottom: 76px; right: 24px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 100px);
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); flex-direction: column; z-index: 10001; overflow: hidden; border: 1px solid var(--line);
  animation: ppChatIn .25s ease-out;
}
@keyframes ppChatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.pp-chat__head { background: linear-gradient(135deg, #070e1e 0%, #0c1836 100%); color: #fff; padding: 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #c59b27; }
.pp-chat__head h4 { margin: 0; font-size: 14px; font-weight: 800; color: #fff; font-family: var(--font-ui); }
.pp-chat__head p { margin: 2px 0 0; font-size: 11px; color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.pp-chat__dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
.pp-chat__avatar { width: 38px; height: 38px; border-radius: 12px; background: #25D366; display: flex; align-items: center; justify-content: center; }
#close-chat { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 999px; cursor: pointer; }
#chat-messages { flex: 1; padding: 14px; overflow-y: auto; background: var(--bg); font-size: 13px; }
.pp-chat__greet { background: var(--surface); padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink-2); line-height: 1.5; margin-bottom: 12px; }
.pp-chat__greet span { color: var(--muted); font-size: 12px; }
.chat-query-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); padding: 12px 14px; border-radius: 14px; cursor: pointer; transition: all .2s; margin-bottom: 8px;
}
.chat-query-card:hover { border-color: #93c5fd; background: var(--accent-soft); transform: translateY(-1px); }
.chat-query-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.chat-query-title { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; display: flex; justify-content: space-between; width: 100%; }
.chat-query-desc { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.chat-wa-direct-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff !important; text-decoration: none !important; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pp-chat__foot { padding: 10px 14px; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); gap: .5rem; }
#btn-reset-options { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink-2); padding: 5px 10px; cursor: pointer; }
.pp-chat__resp { background: var(--surface); border: 1px solid #86efac; border-radius: 14px; padding: 14px; }
.pp-chat__resp q { display: block; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; font-size: 11px; color: var(--ink-2); font-style: italic; border-left: 3px solid #25D366; margin: 8px 0 12px; }
#btn-back-queries { background: none; border: 1px solid var(--line); color: var(--muted); padding: 7px; border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; }

#floating-whatsapp-widget { display: none !important; }
.pp-wa-btn { width: 56px; height: 56px; border-radius: 999px; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .7); transition: transform .2s; position: relative; }
.pp-wa-btn:hover { transform: scale(1.06); }
.pp-wa-btn svg { width: 30px; height: 30px; fill: #fff; position: relative; z-index: 1; }
.pp-wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; animation: ppWaPulse 2.4s ease-out infinite; }
@keyframes ppWaPulse { 0% { transform: scale(.95); opacity: .55; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (max-width: 767px) {
  #chatbot-container { display: none; }
  #floating-whatsapp-widget { right: 14px; bottom: 14px; }
  .pp-wa-btn { width: 48px; height: 48px; }
}

/* ---------- reveal motion (always visible by default to guarantee rendering) ---------- */
.pp-reveal { opacity: 1 !important; transform: none !important; }
.pp-reveal.is-visible { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .pp-reveal { opacity: 1; transform: none; transition: none; }
  .pp-wa-btn::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- full-page pdf mode (kept from legacy base) ---------- */
body.full-page-pdf { overflow: hidden !important; height: 100vh !important; width: 100vw !important; margin: 0 !important; padding: 0 !important; position: fixed !important; inset: 0 !important; }
body.full-page-pdf > * { display: none !important; }
body.full-page-pdf > main, body.full-page-pdf > main > * { display: block !important; height: 100vh !important; width: 100vw !important; margin: 0 !important; padding: 0 !important; }

/* legacy utility animations still referenced by a few templates */
@keyframes popIn { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
.popup-animation { animation: popIn .4s cubic-bezier(.68,-.55,.265,1.55) forwards; }
.notification-center { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999; }
.social-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; }
.social-icon-btn .social-icon-inner { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; }
.bg-brand-whatsapp { background-color: #25D366 !important; color: #fff !important; }
.bg-brand-x { background-color: #000 !important; color: #fff !important; }
.bg-brand-linkedin { background-color: #0a66c2 !important; color: #fff !important; }
.bg-brand-facebook { background-color: #1877f2 !important; color: #fff !important; }
.bg-brand-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888) !important; color: #fff !important; }
.dropdown-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 16rem; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); z-index: 50; border: 1px solid var(--line); }
.dropdown-trigger:hover .dropdown-menu, .dropdown-menu:hover { display: block; }
