/* سياسات نايوش هوب */

/* سياسات: خلفية بنية مقصودة فوق القاعدة الزرقاء لـ .info-hero */
body.homepage .pol-page .info-hero,
.pol-page .info-hero {
  background: linear-gradient(135deg, #3b2418 0%, #5c3a28 55%, #6e4630 100%);
}

.pol-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pol-add-btn {
  flex: 0 0 auto;
  min-width: 200px;
  box-shadow: 0 6px 16px rgba(215, 0, 0, 0.22);
}

.pol-admin-tabs,
.pol-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin: 10px 0 14px;
  padding-bottom: 4px;
}

.pol-admin-tabs button,
.pol-cats button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pol-admin-tabs button.is-on,
.pol-cats button.is-on {
  border-color: #d70000;
  background: #fff7f7;
  color: #b80000;
}

.pol-toolbar input[type='search'] {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  font: inherit;
  font-weight: 650;
}

.pol-list {
  display: grid;
  gap: 12px;
}

.pol-card {
  border: 1px solid #e8eaee;
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.pol-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.4;
}

.pol-card > p {
  margin: 0;
  color: #667085;
  font-weight: 650;
  line-height: 1.55;
}

.pol-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pol-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  color: #475467;
}

.pol-chip.is-pub {
  border-color: #12b76a;
  color: #027a48;
  background: #ecfdf3;
}

.pol-chip.is-draft {
  border-color: #98a2b3;
  color: #475467;
}

.pol-chip.is-pending {
  border-color: #f79009;
  color: #b54708;
  background: #fffaeb;
}

.pol-chip.is-warn {
  border-color: #f04438;
  color: #b42318;
  background: #fef3f2;
}

.pol-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  font-weight: 750;
  color: #98a2b3;
}

.pol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pol-empty {
  text-align: center;
  padding: 36px 12px;
  color: #667085;
  font-weight: 700;
}

.pol-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.pol-modal {
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid #e8eaee;
}

.pol-modal.wide {
  width: min(720px, 100%);
}

.pol-modal h3 {
  margin: 0 0 12px;
  font-weight: 900;
}

.pol-modal label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin: 12px 0 6px;
}

.pol-modal input,
.pol-modal select,
.pol-modal textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  font: inherit;
}

.pol-modal textarea {
  min-height: 96px;
  resize: vertical;
}

.pol-body {
  line-height: 1.75;
  font-weight: 650;
  color: #344054;
  background: #fafafa;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #eef0f3;
}

@media (max-width: 640px) {
  .pol-actions .info-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
