/* =====================================================================
   Baloot rule pages (theqeed.com/baloot-*, written by
   scripts/build-rule-pages.mjs) — load after landing.css and reuse its
   tokens, buttons, navbar and footer. One article column, the site's card
   language (bg-3 cards with the thin top/left light edge) and gold titles.
   Not drawn in Figma: the owner gave the word to build it (SEO wave
   2026-11-18) and reviews the 375 / 800 / 1440 shots before any deploy.
   ===================================================================== */

.article {
  display: flex;
  justify-content: center;
  padding: 48px 24px 96px;
  background: linear-gradient(
    180deg,
    rgba(220, 159, 70, 0.3) 0%,
    rgba(19, 21, 20, 0) 480px
  );
}
.article__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 800px;
}

/* ---------- Breadcrumb ---------- */
.article__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey-200);
}
.article__crumbs li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: var(--bg-5);
}
.article__crumbs a {
  color: var(--primary-700);
}

/* ---------- Title + lead ---------- */
.article__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.3;
  color: var(--primary-700);
}
.article__lead {
  font-size: 18px;
  line-height: 1.9;
  color: var(--grey-200);
}

/* ---------- Section cards ---------- */
.article__section,
.article__note {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg-3);
  border-top: 0.5px solid var(--white);
  border-left: 0.5px solid var(--white);
  border-radius: 16px;
}
.article__note {
  border-inline-start: 4px solid var(--primary-700);
}
.article__h2 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--primary-500);
}
.article__p,
.article__list li,
.article__steps li {
  font-size: 18px;
  line-height: 1.9;
  color: var(--primary-50);
}

/* ---------- Bullets and numbered steps ---------- */
.article__list,
.article__steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article__list li {
  position: relative;
  padding-inline-start: 24px;
}
.article__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 0.8em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
}
.article__steps {
  counter-reset: step;
}
.article__steps li {
  position: relative;
  padding-inline-start: 48px;
  counter-increment: step;
}
.article__steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-grad);
  color: var(--primary-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

/* ---------- Suits and cards (the app's suit colours: هاص / ديمن red) ---------- */
.article__suits,
.article__card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article__suits {
  gap: 24px;
}
.article__suit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.article__suit-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--white);
  color: var(--primary-ink);
  font-size: 28px;
  line-height: 1;
}
.article__suit-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-50);
}
.article__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.article__cards-caption {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-400);
}
.article__card-row {
  gap: 8px;
}
.article__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 48px;
}
.article__card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 44px;
  height: 60px;
  border-radius: 8px;
  background: var(--white);
  color: var(--primary-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  direction: ltr;
}
.article__card-face::after {
  content: attr(data-suit);
  font-size: 18px;
}
.article__suit-glyph.is-red,
.article__card-face.is-red {
  color: #ec2d30;
}
.article__card-caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--grey-200);
  text-align: center;
}

/* ---------- Tables (scroll sideways on narrow phones) ---------- */
.article__table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 0.5px solid var(--bg-5);
}
.article__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}
.article__table th {
  padding: 10px 12px;
  background: rgba(239, 176, 84, 0.15);
  color: var(--primary-500);
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.article__table td {
  padding: 10px 12px;
  border-top: 1px solid var(--bg-4);
  color: var(--primary-50);
  text-align: right;
  vertical-align: top;
}

/* ---------- Lesson links (hub list + "more lessons") ---------- */
.article__more {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.article__more-list,
.article__lessons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article__more-list a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 16px;
  border-radius: 12px;
  border-inline-start: 4px solid var(--bg-5);
  background: var(--bg-3);
  color: var(--primary-50);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.article__more-list a[aria-current="page"] {
  border-inline-start-color: var(--primary-700);
  color: var(--primary-700);
}
.article__lesson {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px;
  border-radius: 12px;
  border-inline-start: 4px solid var(--primary-700);
  background: var(--bg-2);
}
.article__lesson-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-500);
}
.article__lesson-topics {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-200);
}

/* ---------- Closing call to action ---------- */
.article__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 48px 24px;
  border-radius: 24px;
  background: rgba(220, 159, 70, 0.1);
  text-align: center;
}
.article__cta-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.3;
  color: var(--primary-700);
}
.article__cta-btn {
  min-width: 200px;
  padding: 16px 24px;
}

/* =====================================================================
   Tablet
   ===================================================================== */
@media (max-width: 1023px) {
  .article {
    padding: 40px 24px 80px;
  }
  .article__title {
    font-size: 36px;
  }
  .article__cta-title {
    font-size: 28px;
  }
}

/* =====================================================================
   Phone
   ===================================================================== */
@media (max-width: 600px) {
  .article {
    padding: 32px 16px 64px;
  }
  .article__inner {
    gap: 16px;
  }
  .article__title {
    font-size: 28px;
  }
  .article__lead {
    font-size: 16px;
  }
  .article__section,
  .article__note {
    padding: 24px 16px;
  }
  .article__h2 {
    font-size: 20px;
  }
  .article__p,
  .article__list li,
  .article__steps li {
    font-size: 16px;
  }
  .article__steps li {
    padding-inline-start: 44px;
  }
  .article__suits {
    gap: 16px;
  }
  .article__table {
    font-size: 14px;
  }
  .article__more-list,
  .article__lessons {
    grid-template-columns: minmax(0, 1fr);
  }
  .article__cta {
    padding: 32px 16px;
  }
  .article__cta-title {
    font-size: 24px;
  }
  .article__cta-btn {
    width: 100%;
  }
}
