/* =========================================================
   PSMR Business Continuity — God-tier Arabic RTL design
   ========================================================= */

@font-face {
  font-family: "DIN Next LT Arabic";
  src: url("../fonts/DINNextLTArabic-Regular.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --psmr-navy: #1B2A4A;
  --psmr-navy-2: #233556;
  --psmr-navy-deep: #0F1A33;
  --psmr-teal: #007B8A;
  --psmr-teal-light: #009BAD;
  --psmr-teal-bg: #E6F5F7;
  --psmr-gold: #C8962E;
  --psmr-gold-soft: #E1B860;
  --psmr-gold-bg: #FAF0D7;
  --psmr-grey-light: #F2F4F6;
  --psmr-grey-50: #F8FAFB;
  --psmr-text-dark: #2D2D2D;
  --psmr-text-mid: #6B7B8D;
  --psmr-border: #D5DBE1;
  --psmr-border-soft: #E5EAF0;
  --psmr-white: #FFFFFF;

  --font-body: "DIN Next LT Arabic", "Tajawal", "Cairo", "Segoe UI", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.04), 0 1px 3px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 4px 6px rgba(27, 42, 74, 0.05), 0 10px 25px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(27, 42, 74, 0.10), 0 10px 10px -5px rgba(27, 42, 74, 0.04);
  --shadow-teal: 0 8px 30px rgba(0, 123, 138, 0.18);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --content-max: 1320px;
  --header-h: 76px;
  --sidebar-w: 280px;

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-med: 320ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--psmr-text-dark);
  background: var(--psmr-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
  text-align: right;
}

a { color: var(--psmr-teal); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--psmr-teal-light); }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* === Reading progress bar === */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(270deg, var(--psmr-teal), var(--psmr-gold));
  z-index: 1000;
  transition: width 80ms linear;
}

/* === Sticky header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(255,255,255,0.80);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--psmr-border-soft);
  height: var(--header-h);
  display: flex; align-items: center;
  transition: box-shadow var(--t-fast);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--content-max); margin: 0 auto;
  padding: 0 28px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-brand {
  display: flex; align-items: center; gap: 12px; color: var(--psmr-navy);
}
.header-brand .logo-mark {
  height: 44px; width: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 700; font-size: 16px; color: var(--psmr-navy); }
.brand-subtitle { font-size: 12px; color: var(--psmr-text-mid); letter-spacing: 0.2px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; color: var(--psmr-text-dark);
  font-size: 15px; font-weight: 500; transition: all var(--t-fast);
}
.nav-link:hover { background: var(--psmr-teal-bg); color: var(--psmr-teal); }

.btn-downloads {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--psmr-navy); color: white;
  padding: 9px 16px; border: none; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
  margin-right: 12px;
}
.btn-downloads:hover { background: var(--psmr-teal); transform: translateY(-1px); box-shadow: var(--shadow-teal); }

.icon-download::before, .icon-download-light::before {
  content: "↓"; font-weight: 700;
}
.icon-download::before { color: white; }

.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: transparent; border: none; padding: 8px;
}
.mobile-menu-toggle span { display: block; width: 22px; height: 2px; background: var(--psmr-navy); transition: all var(--t-fast); }

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 60px) 28px 80px;
  color: white; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-mesh { width: 100%; height: 100%; display: block; animation: meshDrift 22s ease-in-out infinite alternate; }
@keyframes meshDrift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-10px, -10px); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, transparent 0%, rgba(15,26,51,0.4) 100%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--content-max); margin: 0 auto; width: 100%;
}
.hero-emblems {
  display: flex; align-items: center; gap: 20px; margin-bottom: 36px;
  font-size: 13px; letter-spacing: 0.4px; color: rgba(255,255,255,0.85);
}
.emblem {
  height: 96px; width: auto; flex: none;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35));
}
.emblem-line {
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.25);
  line-height: 1.6;
}

.hero-year {
  position: absolute; top: 60px; left: 28px;
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 700; line-height: 1;
  color: var(--psmr-gold); opacity: 0.10;
  letter-spacing: -8px;
  pointer-events: none;
  z-index: 1;
}

.hero-title {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.05; font-weight: 700;
  margin: 0 0 24px; color: white;
  letter-spacing: -1px;
  max-width: 1100px;
}
.hero-subline {
  display: block;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--psmr-gold-soft);
  font-weight: 500;
  margin-top: 12px;
}
.hero-tagline {
  font-size: clamp(17px, 1.4vw, 21px);
  color: rgba(255,255,255,0.85);
  max-width: 760px; margin: 0 0 40px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600;
  border: none; transition: all var(--t-med);
  cursor: pointer; text-decoration: none;
}
.btn-primary {
  background: var(--psmr-gold); color: var(--psmr-navy);
  box-shadow: 0 8px 24px rgba(200, 150, 46, 0.35);
}
.btn-primary:hover { background: var(--psmr-gold-soft); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(200,150,46,0.45); color: var(--psmr-navy); }
.btn-arrow { font-size: 18px; transition: transform var(--t-fast); }
.btn-primary:hover .btn-arrow { transform: translateX(-4px); }

.btn-secondary {
  background: rgba(255,255,255,0.10); color: white;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); color: white; }

.btn-tertiary {
  background: transparent; color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-tertiary:hover { color: white; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-sm.btn-primary { background: var(--psmr-teal); color: white; box-shadow: 0 4px 14px rgba(0,123,138,0.25); }
.btn-sm.btn-primary:hover { background: var(--psmr-teal-light); color: white; }
.btn-sm.btn-secondary { background: var(--psmr-grey-light); color: var(--psmr-navy); border-color: var(--psmr-border); }
.btn-sm.btn-secondary:hover { background: var(--psmr-teal-bg); color: var(--psmr-teal); border-color: var(--psmr-teal); }

.hero-stats {
  display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 24px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 920px;
}
.stat { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.stat-num {
  font-size: 44px; font-weight: 700; color: var(--psmr-gold-soft); line-height: 1;
}
.stat-label { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.7); margin-top: 8px; }
.stat-divider { flex: 0 0 auto; width: 1px; align-self: stretch; min-height: 36px; background: rgba(255,255,255,0.12); }

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.3); border-radius: 14px;
}
.scroll-down span {
  display: block; width: 3px; height: 8px; background: white;
  margin: 6px auto 0; border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }

/* === Lifecycle bar === */
.lifecycle-bar {
  background: var(--psmr-grey-50);
  border-top: 1px solid var(--psmr-border-soft);
  border-bottom: 1px solid var(--psmr-border-soft);
  padding: 32px 28px;
}
.lifecycle-inner { max-width: var(--content-max); margin: 0 auto; }
.lifecycle-title {
  text-align: center; color: var(--psmr-text-mid);
  font-size: 13px; font-weight: 500; margin: 0 0 22px;
  letter-spacing: 1px; text-transform: uppercase;
}
.lifecycle-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.lifecycle-node {
  background: white; border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius); padding: 18px 20px;
  position: relative; transition: all var(--t-med);
  cursor: default;
}
.lifecycle-node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--psmr-teal); }
.lifecycle-node::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--node-color, var(--psmr-teal));
  border-radius: var(--radius) var(--radius) 0 0;
}
.lifecycle-node-num {
  font-size: 12px; color: var(--psmr-text-mid); font-weight: 600;
  letter-spacing: 1px;
}
.lifecycle-node-name {
  font-size: 19px; font-weight: 700; color: var(--psmr-navy); margin: 4px 0 6px;
}
.lifecycle-node-body {
  font-size: 13px; color: var(--psmr-text-mid); line-height: 1.6; margin: 0;
}

/* === Main layout === */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  max-width: var(--content-max);
  margin: 0 auto;
  gap: 56px;
  padding: 60px 28px 100px;
}

/* === Sidebar TOC === */
.sidebar {
  position: relative;
}
.sidebar-inner {
  position: sticky; top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding-left: 12px;
}
.sidebar-inner::-webkit-scrollbar { width: 4px; }
.sidebar-inner::-webkit-scrollbar-thumb { background: var(--psmr-border); border-radius: 2px; }
.sidebar-title {
  margin: 0 0 16px; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--psmr-text-mid);
}
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--psmr-text-dark); font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast);
  border-right: 2px solid transparent;
  cursor: pointer;
}
.toc-item:hover { color: var(--psmr-teal); background: var(--psmr-teal-bg); }
.toc-item.active {
  color: var(--psmr-teal); border-right-color: var(--psmr-teal);
  background: var(--psmr-teal-bg); font-weight: 600;
}
.toc-num { font-size: 11px; color: var(--psmr-text-mid); font-weight: 700; min-width: 16px; }
.toc-item.active .toc-num { color: var(--psmr-teal); }

/* === Content === */
.content { min-width: 0; }

.part {
  padding: 60px 0;
  border-bottom: 1px solid var(--psmr-border-soft);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.part:last-child { border-bottom: none; }
.part-header { margin-bottom: 32px; }
.part-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--psmr-teal);
  padding: 6px 14px; background: var(--psmr-teal-bg);
  border-radius: 999px; margin-bottom: 18px;
}
.part-title {
  font-size: clamp(28px, 3.4vw, 42px); font-weight: 700;
  color: var(--psmr-navy); line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.part-num {
  display: inline-block; color: var(--psmr-gold);
  font-size: 0.85em; font-weight: 700; margin-left: 16px;
}
.part-lead {
  font-size: 18px; color: var(--psmr-text-mid);
  line-height: 1.75; margin: 0; max-width: 800px;
}
.part-body p {
  font-size: 17px; line-height: 1.95; color: var(--psmr-text-dark);
  margin: 0 0 18px;
}
.part-body p:last-child { margin-bottom: 0; }

/* Section banner */
.part-banner {
  display: flex; align-items: baseline; gap: 20px;
  margin: 24px 0 36px;
  padding-bottom: 18px; border-bottom: 2px solid var(--psmr-teal-bg);
}
.part-banner-num {
  font-size: 64px; font-weight: 700;
  color: var(--psmr-gold); line-height: 0.9;
  letter-spacing: -2px;
}
.part-banner-text { flex: 1; }
.part-banner-text h3 {
  font-size: 24px; font-weight: 700;
  color: var(--psmr-navy); margin: 0 0 4px;
}
.part-banner-text p {
  font-size: 15px; color: var(--psmr-text-mid); margin: 0;
}

/* Subsection */
.subsection { margin: 48px 0; }
.subsection-title {
  font-size: 22px; font-weight: 700; color: var(--psmr-navy);
  margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px;
}
.subsection-code {
  font-size: 14px; color: var(--psmr-teal); font-weight: 700;
  padding: 3px 9px; background: var(--psmr-teal-bg); border-radius: 6px;
}
.subsection-intro {
  font-size: 16px; color: var(--psmr-text-mid);
  margin: 0 0 24px; max-width: 780px; line-height: 1.8;
}

/* Pillars grid (foundations) */
.pillars-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 24px;
}
.pillar-card {
  background: white;
  border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--t-med);
  position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: 3px; background: var(--psmr-teal);
  transition: width var(--t-med);
}
.pillar-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--psmr-teal);
}
.pillar-card:hover::before { width: 6px; }
.pillar-num {
  font-size: 12px; color: var(--psmr-gold); font-weight: 700;
  letter-spacing: 1.5px;
}
.pillar-name {
  font-size: 17px; font-weight: 700;
  color: var(--psmr-navy); margin: 4px 0 10px;
}
.pillar-body {
  font-size: 14px; color: var(--psmr-text-mid); margin: 0; line-height: 1.7;
}

/* Principles list */
.principles-list {
  display: flex; flex-direction: column; gap: 16px;
  counter-reset: principle;
}
.principle-item {
  display: grid; grid-template-columns: 72px 1fr; gap: 22px;
  padding: 20px 22px;
  background: var(--psmr-grey-50);
  border-radius: var(--radius);
  border: 1px solid var(--psmr-border-soft);
  transition: all var(--t-med);
}
.principle-item:hover {
  background: white; border-color: var(--psmr-teal-light);
  box-shadow: var(--shadow-sm);
}
.principle-num {
  font-size: 38px; font-weight: 700; color: var(--psmr-gold);
  line-height: 1; counter-increment: principle;
}
.principle-num::before { content: counter(principle, decimal-arabic) ""; }
.principle-name {
  font-size: 18px; font-weight: 700; color: var(--psmr-navy); margin: 0 0 6px;
}
.principle-body {
  font-size: 15px; color: var(--psmr-text-mid); margin: 0; line-height: 1.75;
}

/* Actor cards */
.actors-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.actor-card {
  background: white;
  border: 1px solid var(--psmr-border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}
.actor-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--psmr-teal), var(--psmr-teal-light));
  border-radius: var(--radius) var(--radius) 0 0;
}
.actor-name {
  font-size: 16px; font-weight: 700; color: var(--psmr-navy); margin: 4px 0 8px;
}
.actor-body {
  font-size: 14px; color: var(--psmr-text-mid); line-height: 1.75; margin: 0;
}

/* Decisions strip */
.decisions-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0;
}
.decision-card {
  padding: 24px; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.decision-card.teal { background: var(--psmr-teal-bg); border-right: 4px solid var(--psmr-teal); }
.decision-card.navy { background: #EEF1F7; border-right: 4px solid var(--psmr-navy); }
.decision-card.gold { background: var(--psmr-gold-bg); border-right: 4px solid var(--psmr-gold); }
.decision-name {
  font-size: 17px; font-weight: 700; color: var(--psmr-navy); margin: 0 0 8px;
}
.decision-body {
  font-size: 14px; color: var(--psmr-text-dark); line-height: 1.7; margin: 0;
}

/* Levels (escalation) */
.levels-flow { display: grid; gap: 16px; margin-top: 16px; }
.level-item {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  padding: 24px;
  background: linear-gradient(90deg, var(--psmr-navy) 0%, var(--psmr-navy-2) 100%);
  color: white; border-radius: var(--radius);
  position: relative;
  transition: transform var(--t-med);
}
.level-item:hover { transform: translateX(-4px); }
.level-item:nth-child(2) { background: linear-gradient(90deg, var(--psmr-teal) 0%, var(--psmr-teal-light) 100%); }
.level-item:nth-child(3) { background: linear-gradient(90deg, #9A6F1E 0%, var(--psmr-gold) 100%); }
.level-num {
  font-size: 56px; font-weight: 700; line-height: 0.9;
  color: rgba(255,255,255,0.85);
}
.level-name {
  font-size: 18px; font-weight: 700; margin: 0 0 6px;
}
.level-body {
  font-size: 14px; line-height: 1.7; margin: 0;
  color: rgba(255,255,255,0.9);
}

/* Generic items list (for various subsections) */
.items-list {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.item-card {
  background: white; border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius); padding: 18px 20px;
  transition: all var(--t-med);
}
.item-card:hover { border-color: var(--psmr-teal-light); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.item-name { font-size: 15px; font-weight: 700; color: var(--psmr-navy); margin: 0 0 6px; }
.item-body { font-size: 14px; color: var(--psmr-text-mid); line-height: 1.7; margin: 0; }

/* Pillars list bullet inline (executive) */
.exec-pillars { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 18px; }
.exec-pillar-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; background: var(--psmr-grey-50);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--psmr-teal);
  font-size: 14px; color: var(--psmr-text-dark);
}
.exec-pillar-item::before {
  content: "◆"; color: var(--psmr-teal); font-size: 10px; margin-top: 4px;
}

/* PDF CTA */
.pdf-cta {
  margin-top: 40px; padding: 22px 26px;
  background: linear-gradient(135deg, var(--psmr-navy) 0%, var(--psmr-navy-2) 100%);
  color: white; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; transition: all var(--t-med);
  position: relative; overflow: hidden;
}
.pdf-cta::before {
  content: ""; position: absolute; top: -50%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,150,46,0.22) 0%, transparent 70%);
}
.pdf-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pdf-cta-text strong { display: block; font-size: 17px; margin-bottom: 4px; }
.pdf-cta-text span { font-size: 14px; color: rgba(255,255,255,0.75); }

/* === Scenario Explorer === */
.scenario-section { background: var(--psmr-grey-50); margin: 0 -28px; padding: 80px 28px; border-radius: var(--radius-lg); }
.scenario-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px;
}
.scenario-tab {
  background: white; border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius); padding: 20px 22px;
  text-align: right; cursor: pointer;
  transition: all var(--t-med);
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
}
.scenario-tab:hover {
  border-color: var(--psmr-teal);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.scenario-tab.active {
  border-color: var(--psmr-teal); background: var(--psmr-teal);
  color: white; box-shadow: var(--shadow-teal);
}
.scenario-tab.active .scenario-tab-name { color: white; }
.scenario-tab.active .scenario-tab-num { color: rgba(255,255,255,0.7); }
.scenario-tab-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--psmr-teal-bg); color: var(--psmr-teal);
  border-radius: 12px;
  transition: all var(--t-med);
}
.scenario-tab-icon svg { width: 24px; height: 24px; display: block; }
.scenario-tab.active .scenario-tab-icon {
  background: rgba(255,255,255,0.18); color: white;
}
.scenario-tab-num { font-size: 12px; color: var(--psmr-text-mid); font-weight: 600; letter-spacing: 1px; }
.scenario-tab-name { font-size: 16px; font-weight: 700; color: var(--psmr-navy); margin-top: 2px; }

.scenario-panel {
  background: white; border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--psmr-border-soft);
  animation: fadeUp 380ms cubic-bezier(.4,0,.2,1);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.scenario-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-bottom: 24px;
}
.scenario-block h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
  color: var(--psmr-teal); margin: 0 0 10px; text-transform: uppercase;
}
.scenario-block p { font-size: 15px; line-height: 1.75; color: var(--psmr-text-dark); margin: 0; }
.scenario-templates {
  border-top: 1px solid var(--psmr-border-soft); padding-top: 22px;
}
.scenario-templates strong { font-size: 14px; color: var(--psmr-navy); display: block; margin-bottom: 10px; }
.scenario-template-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scenario-template-chip {
  padding: 6px 12px; background: var(--psmr-teal-bg); color: var(--psmr-teal);
  border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--t-fast);
}
.scenario-template-chip:hover { background: var(--psmr-teal); color: white; }

/* === Templates Library === */
.templates-toolbar {
  margin: 24px 0 28px; display: flex; flex-direction: column; gap: 16px;
}
.search-box {
  position: relative; max-width: 540px;
}
.search-box input {
  width: 100%; padding: 14px 48px 14px 18px;
  border: 1px solid var(--psmr-border);
  border-radius: 999px; font-family: inherit; font-size: 15px;
  background: var(--psmr-grey-50);
  transition: all var(--t-fast);
}
.search-box input:focus {
  outline: none; border-color: var(--psmr-teal);
  background: white; box-shadow: 0 0 0 4px rgba(0,123,138,0.10);
}
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7B8D' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.filter-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.filter-chip {
  padding: 8px 16px; background: white;
  border: 1px solid var(--psmr-border);
  border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--psmr-text-dark); cursor: pointer;
  transition: all var(--t-fast);
}
.filter-chip:hover { border-color: var(--psmr-teal); color: var(--psmr-teal); }
.filter-chip.active {
  background: var(--psmr-navy); color: white; border-color: var(--psmr-navy);
}
.filter-chip-count {
  display: inline-block; padding: 1px 7px; margin-right: 6px;
  background: rgba(255,255,255,0.15); border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.filter-chip:not(.active) .filter-chip-count { background: var(--psmr-grey-light); color: var(--psmr-text-mid); }

.templates-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.template-card {
  background: white;
  border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  transition: all var(--t-med);
  position: relative; overflow: hidden;
}
.template-card::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0;
  width: 3px; background: var(--psmr-teal);
  transition: width var(--t-med);
}
.template-card:hover {
  transform: translateY(-4px); border-color: var(--psmr-teal);
  box-shadow: var(--shadow-md);
}
.template-card:hover::before { width: 6px; }
.template-card[data-group="A"]::before { background: var(--psmr-teal); }
.template-card[data-group="B"]::before { background: var(--psmr-navy); }
.template-card[data-group="C"]::before { background: var(--psmr-gold); }
.template-card[data-group="D"]::before { background: var(--psmr-teal-light); }
.template-card[data-group="E"]::before { background: var(--psmr-navy); }
.template-card[data-group="F"]::before { background: var(--psmr-teal); }
.template-card[data-group="G"]::before { background: var(--psmr-gold); }
.template-card[data-group="H"]::before { background: var(--psmr-teal-light); }
.template-card[data-group="I"]::before { background: var(--psmr-teal); }

.template-code {
  display: inline-block; padding: 3px 10px;
  background: var(--psmr-teal-bg); color: var(--psmr-teal);
  border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
}
.template-title {
  font-size: 16px; font-weight: 700; color: var(--psmr-navy);
  margin: 12px 0 8px; line-height: 1.45;
}
.template-purpose {
  font-size: 14px; color: var(--psmr-text-mid);
  line-height: 1.7; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.template-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--psmr-border-soft);
  font-size: 13px; color: var(--psmr-text-mid);
}
.template-group-tag {
  font-weight: 600; color: var(--psmr-teal);
}
.template-arrow { color: var(--psmr-teal); }

.templates-empty {
  text-align: center; padding: 60px 20px;
  color: var(--psmr-text-mid); font-size: 16px;
}

/* === Template modal === */
.template-modal {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 26, 51, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 220ms ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.template-modal-inner {
  background: white; border-radius: var(--radius-lg);
  max-width: 720px; width: 100%; max-height: 90vh;
  overflow-y: auto; position: relative;
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 280ms cubic-bezier(.4,0,.2,1);
}
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
.close-btn {
  position: absolute; top: 16px; left: 16px;
  width: 36px; height: 36px;
  border-radius: 50%; border: none;
  background: var(--psmr-grey-light); color: var(--psmr-navy);
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.close-btn:hover { background: var(--psmr-navy); color: white; transform: rotate(90deg); }

.template-modal-body .modal-code {
  display: inline-block; padding: 4px 12px;
  background: var(--psmr-teal); color: white;
  border-radius: 6px; font-size: 13px; font-weight: 700;
}
.template-modal-body .modal-title {
  font-size: 26px; font-weight: 700; color: var(--psmr-navy);
  margin: 14px 0 20px; line-height: 1.3;
}
.template-modal-body .modal-section {
  margin: 22px 0; padding: 18px 20px;
  background: var(--psmr-grey-50); border-radius: var(--radius);
  border-right: 3px solid var(--psmr-teal);
}
.template-modal-body .modal-section h5 {
  font-size: 12px; font-weight: 700; color: var(--psmr-teal);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin: 0 0 8px;
}
.template-modal-body .modal-section p { margin: 0; font-size: 15px; line-height: 1.75; }
.template-modal-body .modal-sections-list,
.template-modal-body .modal-fields-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.template-modal-body .modal-sections-list span,
.template-modal-body .modal-field-chip {
  padding: 7px 13px; background: white;
  border: 1px solid var(--psmr-border); border-radius: 6px;
  font-size: 13px; color: var(--psmr-text-dark);
  line-height: 1.4;
}
.template-modal-body .modal-field-chip {
  background: white;
  border-right: 3px solid var(--psmr-teal);
}
.template-modal-body .modal-section-notes {
  background: var(--psmr-gold-bg);
  border-right-color: var(--psmr-gold);
}
.template-modal-body .modal-section-notes h5 { color: #8C6A1F; }
.template-modal-body .modal-notes-list {
  margin: 8px 0 0; padding: 0; list-style: none;
}
.template-modal-body .modal-notes-list li {
  padding: 6px 18px 6px 0;
  position: relative;
  font-size: 14px; line-height: 1.7; color: var(--psmr-text-dark);
}
.template-modal-body .modal-notes-list li::before {
  content: "◆"; position: absolute; right: 0; top: 9px;
  color: var(--psmr-gold); font-size: 9px;
}

/* === Glossary === */
.glossary-toolbar { margin: 24px 0 28px; }
.glossary-list {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.glossary-item {
  background: white;
  border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: all var(--t-fast);
}
.glossary-item:hover {
  border-color: var(--psmr-teal-light);
  background: var(--psmr-teal-bg);
  transform: translateX(-2px);
}
.glossary-term {
  font-size: 16px; font-weight: 700; color: var(--psmr-navy); margin: 0 0 6px;
}
.glossary-def {
  font-size: 14px; color: var(--psmr-text-mid); line-height: 1.7; margin: 0;
}

/* Closing */
.closing-section { text-align: center; }
.closing-section .part-body p {
  font-size: 18px; max-width: 760px; margin: 0 auto 20px;
  color: var(--psmr-text-dark);
}
.closing-section .part-body p:last-child {
  font-style: italic; color: var(--psmr-teal);
  font-size: 17px; line-height: 1.9;
}

/* === Downloads panel === */
.downloads-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 26, 51, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: stretch; justify-content: flex-start;
  animation: fadeIn 220ms ease-out;
}
.downloads-panel {
  width: min(440px, 100%); background: white;
  height: 100%; overflow-y: auto;
  animation: slideInLeft 320ms cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
@keyframes slideInLeft { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.downloads-header {
  padding: 24px 26px; border-bottom: 1px solid var(--psmr-border-soft);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--psmr-navy); color: white;
}
.downloads-header h3 { margin: 0; font-size: 18px; }
.downloads-header .close-btn { position: static; background: rgba(255,255,255,0.12); color: white; }
.downloads-header .close-btn:hover { background: rgba(255,255,255,0.25); }
.downloads-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.download-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 18px; border: 1px solid var(--psmr-border-soft);
  border-radius: var(--radius); transition: all var(--t-fast);
}
.download-item:hover { border-color: var(--psmr-teal); box-shadow: var(--shadow-sm); }
.dl-icon { font-size: 32px; }
.dl-info h4 { margin: 0 0 4px; font-size: 16px; color: var(--psmr-navy); }
.dl-info p { margin: 0 0 6px; font-size: 14px; color: var(--psmr-text-mid); line-height: 1.6; }
.dl-meta { font-size: 12px; color: var(--psmr-text-mid); display: block; }
.dl-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 8px; }
.dl-actions .btn { flex: 1; justify-content: center; }

/* === PDF Modal === */
.pdf-modal {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(15, 26, 51, 0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  animation: fadeIn 220ms ease-out;
}
.pdf-modal-inner {
  background: white; border-radius: var(--radius);
  width: 100%; max-width: 1100px; height: 92vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pdf-modal-header {
  padding: 14px 20px; border-bottom: 1px solid var(--psmr-border-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--psmr-grey-50);
}
.pdf-modal-header h3 { margin: 0; font-size: 16px; color: var(--psmr-navy); flex: 1; }
.pdf-modal-actions { display: flex; gap: 8px; align-items: center; }
.pdf-modal-header .close-btn { position: static; }
#pdfFrame { flex: 1; width: 100%; border: none; background: var(--psmr-grey-light); }

/* === Footer === */
.site-footer {
  background: var(--psmr-navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 28px 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-emblem { height: 64px; width: auto; margin-bottom: 16px; }
.footer-col p { margin: 4px 0; font-size: 14px; line-height: 1.7; }
.footer-col h5 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--psmr-gold-soft); margin: 0 0 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-links .link-btn {
  color: rgba(255,255,255,0.7); font-size: 14px; transition: color var(--t-fast);
  background: none; border: none; padding: 0; text-align: right; font-family: inherit; cursor: pointer;
}
.footer-links a:hover, .footer-links .link-btn:hover { color: var(--psmr-gold-soft); }
.footer-bottom {
  max-width: var(--content-max); margin: 0 auto; padding-top: 24px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.55);
}

/* === Reveal animations === */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms, transform 600ms; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 1100px) {
  .main-layout { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { display: none; }
  .lifecycle-flow { grid-template-columns: repeat(2, 1fr); }
  .scenario-tabs { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .decisions-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-nav.open {
    display: flex; position: absolute; top: var(--header-h); right: 0; left: 0;
    background: white; border-bottom: 1px solid var(--psmr-border-soft);
    padding: 16px 28px; flex-direction: column; gap: 4px; box-shadow: var(--shadow-md);
  }
  .header-nav.open .btn-downloads { margin: 8px 0 0; align-self: stretch; justify-content: center; }
  .mobile-menu-toggle { display: flex; }
  .brand-subtitle { display: none; }
  .header-inner { padding: 0 18px; }
  .hero { padding: calc(var(--header-h) + 32px) 18px 60px; }
  .main-layout { padding: 40px 18px 60px; }
  .part { padding: 40px 0; }
  .hero-stats { gap: 14px 18px; flex-wrap: wrap; }
  .stat { flex: 1 1 40%; }
  .hero-stats .stat-divider { display: none; }
  .stat-num { font-size: 32px; }
  .scenario-section { padding: 48px 18px; margin: 0 -18px; }
  .scenario-panel { padding: 24px 20px; }
  .levels-flow .level-item { grid-template-columns: 56px 1fr; gap: 14px; padding: 18px; }
  .level-num { font-size: 38px; }
  .template-modal-inner { padding: 30px 24px; }
  .pillars-grid, .actors-grid, .items-list { grid-template-columns: 1fr; }
}

/* === Print styles === */
@media print {
  .site-header, .sidebar, .scroll-down, .lifecycle-bar,
  .downloads-overlay, .pdf-modal, .template-modal,
  .pdf-cta, .mobile-menu-toggle, .progress-bar, .site-footer { display: none !important; }
  body { color: black; background: white; font-size: 11pt; }
  .hero { min-height: auto; padding: 30pt 0; background: white; color: black; }
  .hero-bg { display: none; }
  .hero-title, .hero-subline { color: var(--psmr-navy); }
  .hero-tagline { color: var(--psmr-text-dark); }
  .main-layout { display: block; padding: 0; }
  .part { page-break-inside: avoid; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
:focus-visible { outline: 3px solid var(--psmr-teal); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Accordions (مرتكزات / مبادئ) + Phases (مراحل) — clickable
   ========================================================= */
.accordion-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }

.acc-item {
  --acc: var(--psmr-teal);
  background: var(--psmr-white);
  border: 1px solid var(--psmr-border-soft);
  border-right: 4px solid var(--acc);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.acc-item:hover { box-shadow: var(--shadow-md); }
.acc-item.open { box-shadow: var(--shadow-md); }
.acc-item.accent-navy { --acc: var(--psmr-navy); }
.acc-item.accent-gold { --acc: var(--psmr-gold); }
.acc-item.accent-teal-light { --acc: var(--psmr-teal-light); }
.acc-item.accent-teal { --acc: var(--psmr-teal); }

.acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: transparent; border: 0; cursor: pointer;
  text-align: right; font-family: var(--font-body); color: var(--psmr-navy);
  transition: background var(--t-fast);
}
.acc-head:hover { background: var(--psmr-grey-50); }
.acc-badge {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--acc); color: #fff;
}
.acc-title { flex: 1; font-weight: 700; font-size: 17px; line-height: 1.5; }
.acc-chevron { flex-shrink: 0; margin-inline-start: auto; width: 16px; height: 16px; position: relative; }
.acc-chevron::before {
  content: ""; position: absolute; top: 2px; right: 3px; width: 8px; height: 8px;
  border-right: 2px solid var(--psmr-text-mid); border-bottom: 2px solid var(--psmr-text-mid);
  transform: rotate(45deg); transition: transform var(--t-med, .3s);
}
.acc-item.open .acc-chevron::before { transform: rotate(-135deg); top: 5px; }

.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel-inner { padding: 4px 20px 20px 18px; }
.acc-body { color: var(--psmr-text-mid); line-height: 1.85; margin-bottom: 12px; font-size: 15.5px; }
.acc-includes-label {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--acc);
  letter-spacing: .3px; margin-bottom: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--psmr-gold);
}
.acc-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.acc-bullets li {
  position: relative; padding-right: 22px; color: var(--psmr-text-dark);
  line-height: 1.8; font-size: 15px;
}
.acc-bullets li::before {
  content: ""; position: absolute; right: 2px; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--acc);
}

/* ---- Phases accordion (namaathej section) ---- */
.phases-accordion { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.phase-item .acc-head { padding: 18px 20px; gap: 16px; }
.phase-letter {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: var(--acc); color: #fff; box-shadow: var(--shadow-sm);
}
.phase-head-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.phase-title { font-weight: 700; font-size: 18px; color: var(--psmr-navy); line-height: 1.4; }
.phase-sub { font-size: 13px; color: var(--psmr-text-mid); font-weight: 600; }
.phase-desc {
  color: var(--psmr-text-mid); line-height: 1.9; font-size: 15.5px;
  background: var(--psmr-grey-50); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px;
}

.namaathej-list { display: flex; flex-direction: column; gap: 10px; }
.nam-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--psmr-white); border: 1px solid var(--psmr-border-soft);
  border-radius: 10px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.nam-row:hover { border-color: var(--acc); box-shadow: var(--shadow-sm); }
.nam-code {
  flex-shrink: 0; align-self: flex-start; margin-top: 2px; font-weight: 800; font-size: 13px;
  color: var(--acc); background: var(--psmr-grey-light); border-radius: 7px; padding: 5px 9px;
}
.nam-text { flex: 1; min-width: 0; }
.nam-title { font-weight: 700; font-size: 15.5px; color: var(--psmr-navy); margin: 0 0 4px; line-height: 1.5; }
.nam-purpose { font-size: 13.5px; color: var(--psmr-text-mid); line-height: 1.75; margin: 0; }
.nam-actions { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.nam-actions .btn-sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; text-align: center; }
.nam-dl .icon-download-light { margin-left: 4px; }

@media (max-width: 640px) {
  .nam-row { flex-wrap: wrap; }
  .nam-actions { flex-direction: row; width: 100%; }
  .nam-actions .btn-sm { flex: 1; }
}

/* ============ FAQ (الأسئلة الشائعة) ============ */
.faq-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-cat {
  font-family: var(--font-display, inherit); font-weight: 800; font-size: 17px;
  color: var(--psmr-navy); margin: 26px 0 6px; padding-bottom: 8px;
  border-bottom: 2px solid var(--psmr-teal-bg);
}
.faq-cat:first-child { margin-top: 4px; }
.faq-item {
  background: #fff; border: 1px solid var(--psmr-border-soft); border-right: 4px solid var(--psmr-teal);
  border-radius: 12px; overflow: hidden; transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-q {
  list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 15.5px;
  color: var(--psmr-navy); display: flex; align-items: center; gap: 12px; line-height: 1.6;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--psmr-teal);
  border-bottom: 2px solid var(--psmr-teal); transform: rotate(45deg); transition: transform var(--t-fast);
}
.faq-item[open] .faq-q::before { transform: rotate(-135deg); }
.faq-q:hover { background: var(--psmr-grey-50); }
.faq-a { padding: 0 39px 16px; color: var(--psmr-text-mid); line-height: 1.95; font-size: 15px; }
.faq-a p { margin: 0; }

/* ── Summary presentation section ─────────────────────────────────────────── */
.presentation-section{background:linear-gradient(180deg,#F5F8FA 0%,#fff 100%);padding:48px 24px;border-bottom:1px solid #e7edf1}
.presentation-inner{max-width:1000px;margin:0 auto}
.presentation-head{text-align:center;margin-bottom:24px}
.presentation-head .part-lead{max-width:680px;margin:10px auto 0}
.presentation-viewer{position:relative;width:100%;aspect-ratio:16/10;border-radius:16px;overflow:hidden;box-shadow:0 14px 40px rgba(27,42,74,.16);border:1px solid #e0e7ec;background:#fff}
.presentation-viewer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.presentation-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:20px}
@media(max-width:720px){.presentation-viewer{aspect-ratio:4/5}}

/* support email in footer */
.footer-support{margin-top:10px;font-size:13px;line-height:1.8}
.footer-support a{color:var(--psmr-gold,#E1B860);font-weight:700;text-decoration:none}
.footer-support a:hover{text-decoration:underline}

/* ── SPAC co-brand logo chip (rounded light background to avoid clash) ─────── */
.logo-chip { display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border-radius:12px; padding:5px 9px; box-shadow:0 2px 8px rgba(27,42,74,.14); }
.logo-chip .logo-spac { height:34px; width:auto; display:block; }
@media (max-width:720px){ .logo-chip .logo-spac{ height:28px; } .header-brand .logo-mark{ height:38px; } }
