
:host {
  display: block;
  direction: rtl;
}

.page-014-sources {
  --p014-blue: #1e3a5f;
  --p014-gold: #d4af37;
  --p014-light: #f8fafc;
  --p014-gray: #f1f5f9;
  --p014-dot: #e2e8f0;
  position: relative;
  width: 297mm;
  min-height: 210mm;
  height: 210mm;
  overflow: hidden;
  background-color: #ffffff;
  background-image: radial-gradient(var(--p014-dot) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--p014-blue);
  display: flex;
  flex-direction: column;
  isolation: isolate;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-sizing: border-box;
  font-family: var(--font-sans);
}

.page-014-sources *,
.page-014-sources *::before,
.page-014-sources *::after {
  box-sizing: border-box;
}

.page-014-sources::before,
.page-014-sources::after {
  content: "";
  position: absolute;
  background: rgba(241, 245, 249, .58);
  z-index: -1;
  pointer-events: none;
}

.page-014-sources::before {
  top: 0;
  left: 0;
  width: 288px;
  height: 288px;
  border-bottom-right-radius: 150px;
}

.page-014-sources::after {
  right: 0;
  bottom: 0;
  width: 384px;
  height: 384px;
  border-top-left-radius: 200px;
  opacity: .62;
}

.p014-header {
  width: 100%;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(229, 231, 235, .86);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.p014-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p014-logo {
  width: 48px;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.p014-brand-title {
  margin: 0;
  color: var(--p014-blue);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.p014-brand-code {
  margin: 3px 0 0;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.p014-ref {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p014-ref-label {
  color: #9ca3af;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

.p014-ref-divider {
  width: 1px;
  height: 16px;
  background: #d1d5db;
}

.p014-page-no {
  color: var(--p014-blue);
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.p014-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px;
}

.p014-title-row {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.p014-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px -18px rgba(0, 0, 0, .25);
}

.p014-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--p014-blue);
  box-shadow: 0 0 0 0 rgba(30, 58, 95, .35);
  animation: p014-pulse 1.8s ease-in-out infinite;
}

@keyframes p014-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 58, 95, .32); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(30, 58, 95, 0); opacity: .78; }
}

.p014-chip-text {
  color: var(--p014-blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.p014-title {
  margin: 0;
  color: var(--p014-blue);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.p014-title-accent {
  position: relative;
  display: inline-block;
  color: var(--p014-gold);
}

.p014-title-accent svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 12px;
  color: rgba(212, 175, 55, .3);
}

.p014-icon-card {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: rgba(241, 245, 249, .58);
  border: 1px solid #e5e7eb;
  color: var(--p014-blue);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 10px 26px -22px rgba(30, 58, 95, .6);
  flex: 0 0 auto;
}

.p014-icon-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, .07), rgba(30, 58, 95, .06));
}

.p014-icon-card svg {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
}

.p014-grid-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.p014-data-bus {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, rgba(30, 58, 95, .10), transparent);
  z-index: 0;
}

.p014-columns {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  gap: 64px;
}

.p014-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-width: 0;
}

.p014-source-card {
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, .08);
  border-radius: 24px;
  box-shadow: 0 4px 15px -10px rgba(0, 0, 0, .05);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.p014-source-card:hover {
  transform: translateX(-5px);
  border-color: rgba(212, 175, 55, .5);
  box-shadow: 0 10px 25px -10px rgba(30, 58, 95, .12);
}

.p014-source-index {
  position: relative;
  width: 80px;
  min-height: 80px;
  flex: 0 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 245, 249, .80);
  border-left: 2px solid var(--p014-gold);
}

.p014-source-index::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--p014-blue);
  transform: translateY(-50%);
  transition: height .3s ease;
}

.p014-source-card:hover .p014-source-index::after {
  height: 100%;
}

.p014-source-index--blue {
  background: rgba(30, 58, 95, .05);
  border-left-color: var(--p014-blue);
}

.p014-source-number {
  color: var(--p014-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.p014-source-index--blue .p014-source-number {
  color: var(--p014-blue);
}

.p014-source-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 12px 20px;
}

.p014-source-text p {
  margin: 0;
  color: var(--p014-blue);
  font-size: 16px;
  line-height: 1.32;
  font-weight: 800;
}

.p014-source-text small {
  color: #6b7280;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 700;
  direction: rtl;
}

.p014-footer-code {
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
  color: #9ca3af;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .page-014-sources {
    width: 100%;
    height: auto;
    min-height: 68vw;
    aspect-ratio: 1.414 / 1;
  }

  .p014-header,
  .p014-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .p014-main {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .p014-title-row {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .p014-columns {
    gap: 24px;
  }

  .p014-data-bus {
    display: none;
  }

  .p014-source-text p {
    font-size: 15px;
  }
}

@media print {
  :host {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .page-014-sources {
    width: 297mm;
    height: 210mm;
    min-height: 210mm;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  .p014-source-card,
  .p014-source-card:hover {
    transform: none !important;
  }

  .p014-chip-dot {
    animation: none !important;
  }
}


/* SCREEN_CENTERING_FIX: توحيد تموضع الصفحات المخصصة داخل عارض المشروع */
@media screen {
  .page-014-sources {
    margin: 18px auto;
    box-shadow: 0 15px 50px rgba(15, 23, 42, .18);
  }
}

@media print {
  .page-014-sources {
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* PRODUCTION_A4_FIT_20260807: reserve footer breathing room inside the fixed A4 canvas. */
.page-014-sources .p014-main { padding: 38px 44px 30px; }
.page-014-sources .p014-title-row { margin-bottom: 30px; }
.page-014-sources .p014-chip { margin-bottom: 10px; padding: 6px 13px; }
.page-014-sources .p014-title { font-size: clamp(42px, 4.3vw, 60px); }
.page-014-sources .p014-icon-card { width: 78px; height: 78px; border-radius: 20px; }
.page-014-sources .p014-icon-card svg { width: 40px; height: 40px; }
.page-014-sources .p014-column { gap: 14px; }
.page-014-sources .p014-source-card { min-height: 72px; }
.page-014-sources .p014-source-index { width: 68px; min-height: 72px; flex-basis: 68px; }
.page-014-sources .p014-source-text { padding: 9px 16px; }
.page-014-sources .p014-source-text p { font-size: 14.5px; }
.page-014-sources .p014-footer-code { padding-top: 12px; }
