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

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

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

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

.page-017-detailed-objectives::before {
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  border-bottom-left-radius: 150px;
}

.page-017-detailed-objectives::after {
  left: 0;
  bottom: 0;
  width: 330px;
  height: 330px;
  border-top-right-radius: 185px;
  opacity: .65;
}

.page-018-detailed-objectives::before {
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  border-bottom-right-radius: 150px;
}

.page-018-detailed-objectives::after {
  right: 0;
  bottom: 0;
  width: 330px;
  height: 330px;
  border-top-left-radius: 185px;
  opacity: .65;
}

.p01718-header {
  width: 100%;
  min-height: 72px;
  padding: 18px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(226, 232, 240, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 5;
}

.p01718-brand,
.p01718-ref {
  display: flex;
  align-items: center;
}

.p01718-brand { gap: 14px; }
.p01718-ref { gap: 12px; }

.p01718-logo {
  width: 44px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

.p01718-brand-title {
  margin: 0;
  color: var(--p01718-blue);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 800;
}

.p01718-brand-code,
.p01718-ref-label,
.p01718-system-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.p01718-brand-code {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 9.5px;
  letter-spacing: .20em;
}

.p01718-ref-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
}

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

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

.p01718-main {
  flex: 1;
  min-height: 0;
  padding: 26px 42px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.p01718-title-row {
  flex: 0 0 auto;
  min-height: 58px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.p01718-title-group { min-width: 0; }

.p01718-title {
  margin: 0;
  color: var(--p01718-blue);
  font-size: 37px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.02em;
}

.p01718-title span { color: var(--p01718-gold); }

.p01718-title-sub {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.p01718-section-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, .40);
  color: var(--p01718-blue);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
}

.p01718-section-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p01718-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .12);
}

.p017-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.p018-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.36fr) minmax(0, .82fr);
  gap: 18px;
  direction: rtl;
}

.p018-grid--ordered > .p01718-card { min-width: 0; min-height: 0; }
.p018-grid--ordered > .p01718-card:nth-child(2) { box-shadow: 0 15px 34px -24px rgba(30, 58, 95, .46); }
.p018-primary { min-width: 0; }
.p018-stack { display: contents; }

.p01718-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(30, 58, 95, .10);
  box-shadow: 0 12px 30px -23px rgba(15, 23, 42, .48);
  transition: transform .25s ease, box-shadow .25s ease;
}

.p01718-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -24px rgba(30, 58, 95, .38);
}

.p01718-card-head {
  flex: 0 0 auto;
  min-height: 68px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  background: linear-gradient(120deg, var(--p01718-blue), var(--p01718-blue-2));
  border-bottom: 3px solid var(--p01718-gold);
}

.p01718-card-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--p01718-gold);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .10);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.p01718-card-title {
  margin: 0;
  color: #fff;
  font-size: 16.5px;
  line-height: 1.48;
  font-weight: 800;
}

.p01718-list {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 15px 18px 15px;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
}

.p01718-list li {
  position: relative;
  margin: 0;
  padding: 7px 18px 7px 0;
  color: #334155;
  font-size: 13.4px;
  line-height: 1.52;
  font-weight: 600;
}

.p01718-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p01718-gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .10);
}

.p01718-list li:not(:last-child) {
  border-bottom: 1px dashed rgba(30, 58, 95, .09);
}

.p01718-card--compact .p01718-card-head {
  min-height: 62px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.p01718-card--compact .p01718-card-title {
  font-size: 15.5px;
  line-height: 1.42;
}

.p01718-card--compact .p01718-list {
  padding-top: 9px;
  padding-bottom: 9px;
}

.p01718-card--compact .p01718-list li {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12.7px;
  line-height: 1.45;
}

.p01718-card--compact .p01718-list li::before { top: 12px; }

.p01718-system-code {
  position: absolute;
  left: 42px;
  bottom: 12px;
  color: #a0aec0;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .22em;
}

@media (max-width: 900px) {
  .p01718-page {
    width: 100%;
    height: auto;
    min-height: 68vw;
    aspect-ratio: 1.414 / 1;
  }
  .p01718-header { padding: 16px 24px; }
  .p01718-main { padding: 22px 24px 24px; }
  .p01718-title { font-size: 31px; }
  .p017-grid,
  .p018-grid { gap: 12px; }
  .p01718-card-head { padding: 11px 13px; }
  .p01718-card-title { font-size: 13px; }
  .p01718-list { padding: 10px 12px; }
  .p01718-list li { font-size: 10.5px; padding-right: 14px; }
}

@media screen {
  .p01718-page {
    margin: 18px auto;
    box-shadow: 0 15px 50px rgba(15, 23, 42, .18);
  }
}

@media print {
  :host {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .p01718-page {
    width: 297mm;
    height: 210mm;
    min-height: 210mm;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
  .p01718-card,
  .p01718-card:hover { transform: none !important; }
}


/* Goal 02 approved summary: compact spacing for the seven revised objectives. */
.p01718-card--dense .p01718-card-head { padding: 12px 14px; }
.p01718-card--dense .p01718-card-title { font-size: 12.5px; line-height: 1.45; }
.p01718-card--dense .p01718-list { padding: 10px 13px 12px; gap: 0; }
.p01718-card--dense .p01718-list li { padding: 6px 16px 6px 0; font-size: 10px; line-height: 1.48; }
.p01718-card--dense .p01718-list li::before { top: 12px; }

/* قائمة الهدف الرابع بعد اعتماد تسعة أهداف تفصيلية. */
.p018-primary--goal4 .p01718-card-head {
  min-height: 64px;
  padding-top: 11px;
  padding-bottom: 11px;
}
.p018-primary--goal4 .p01718-card-title {
  font-size: 14.6px;
  line-height: 1.38;
}
.p018-primary--goal4 .p01718-list {
  padding: 7px 15px 8px;
  justify-content: space-evenly;
}
.p018-primary--goal4 .p01718-list li {
  padding: 3.6px 15px 3.6px 0;
  font-size: 10.35px;
  line-height: 1.32;
}
.p018-primary--goal4 .p01718-list li::before {
  top: 10px;
  width: 5px;
  height: 5px;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .10);
}
