/* ============================================================
   خبرنا — صفحة الخبر والصفحات الثابتة
   ============================================================ */

/* ---------- الخبر ---------- */
.article {
  padding-block: var(--sp-5) var(--sp-7);
}

.article__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: var(--sp-7);
  align-items: start;
}

@media (max-width: 1024px) {
  .article__wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--sp-6);
  }
}

.article__head {
  display: grid;
  gap: var(--sp-3);
  margin-block-end: var(--sp-5);
}

.article__title {
  font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.24;
}

/* تحت العنوان سطرا الشعار: القضيب الطويل ثم الأقصر. */
.article__head::after {
  content: "";
  display: block;
  width: 100%;
  height: calc(var(--bar) * 2 + 5px);
  margin-block-start: var(--sp-2);
  background:
    linear-gradient(var(--c-bar), var(--c-bar)) top left / 100% var(--bar) no-repeat,
    linear-gradient(var(--c-bar), var(--c-bar)) bottom left / var(--bar-short) var(--bar) no-repeat;
  border-radius: var(--bar);
}

[dir="rtl"] .article__head::after {
  background:
    linear-gradient(var(--c-bar), var(--c-bar)) top right / 100% var(--bar) no-repeat,
    linear-gradient(var(--c-bar), var(--c-bar)) bottom right / var(--bar-short) var(--bar) no-repeat;
}

.article__byline a {
  font-weight: 800;
  color: var(--c-ink);
}

.article__cover {
  margin-block-end: var(--sp-5);
  background: var(--c-sunk);
}

.article__cover img {
  width: 100%;
  height: auto;
  /* صورة مربّعة بعرض العمود كانت أطول من الشاشة: الصورة تُقصّ ولا تُمدّ
     الصفحة بشاشة كاملة قبل أول سطر. */
  max-height: min(72vh, 640px);
  object-fit: cover;
}

.article__caption {
  padding: var(--sp-2) 0 0;
  background: var(--c-paper);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-3);
}

.article--wide .article__cover {
  margin-block: var(--sp-2) var(--sp-6);
}

.article--wide .article__cover img {
  max-height: 620px;
  object-fit: cover;
}

.article__lede {
  margin-block-end: var(--sp-5);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.7;
}

/* ---------- المتن ---------- */
.prose {
  font-family: var(--f-text);
  font-size: var(--fs-text);
  font-weight: 400;
  line-height: 2.05;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-block-start: 1em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-block-start: 1.4em;
  font-family: var(--f-sans);
  line-height: 1.35;
}

.prose h2 {
  font-size: 26px;
}

.prose h3 {
  font-size: 22px;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.prose img,
.prose iframe,
.prose video {
  max-width: 100%;
  height: auto;
}

.prose figure figcaption {
  font-family: var(--f-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-3);
}

.prose blockquote {
  padding-inline-start: var(--sp-5);
  border-inline-start: var(--bar) solid var(--c-bar);
  font-weight: 700;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.4em;
}

.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-family: var(--f-sans);
  font-size: 16px;
}

.prose th,
.prose td {
  padding: 8px 10px;
  border: 1px solid var(--c-line);
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-block-start: var(--sp-5);
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-block-start: var(--sp-6);
  padding-block-start: var(--sp-4);
  border-block-start: 2px solid var(--c-line);
}

.article .related {
  margin-block-start: var(--sp-2);
}

.aside {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
}

@media (max-width: 1024px) {
  .aside {
    position: static;
  }
}

/* ---------- الصفحات الثابتة ---------- */
.static {
  padding-block: var(--sp-5) var(--sp-7);
}

.static__wrap {
  max-width: 860px;
}

.static__head {
  padding-block: var(--sp-3) var(--sp-5);
}

.static__head::after {
  content: "";
  display: block;
  height: var(--bar-rule);
  margin-block-start: var(--sp-4);
  border-radius: var(--bar-rule);
  background: var(--c-bar);
}

.static__actions {
  margin-block-start: var(--sp-6);
}

.contact-intro,
.contact-sent {
  margin-block-end: var(--sp-5);
}

.contact-card {
  margin-block-end: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-panel);
  border-inline-start: var(--bar) solid var(--c-bar);
  font-weight: 700;
}

.contact-card__in {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}

.contact-form {
  display: grid;
  gap: var(--sp-4);
}

.writer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.writer-head img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
}
