/* Prevent RTL clipping inside article sections */
.article-wrapper,
.article-wrapper section,
main {
  overflow: visible;
}

/* Full-screen cut banner between sections */
.cut-section--fullscreen {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.cut-section--fullscreen img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cut-section__layar {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgb(10 12 13 / 97%) 0%,
    rgb(10 12 13 / 75%) 40%,
    rgb(10 12 13 / 0%) 100%
  );
}

.viz {
  margin: 46px 0;
  padding: 0;
  text-align: right;
  direction: rtl;
  overflow: visible;
}

.viz-head > div {
  text-align: right;
  border-right: 4px solid var(--red, #cb130b);
  padding: 0 14px 0 0;
  box-sizing: border-box;
}

.viz-head::before {
  content: none;
  display: none;
}

.viz-head {
  width: 100%;
  margin-bottom: 14px;
  overflow: visible;
}

.viz-kicker {
  display: block;
  font-family: "Tajawal", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red, #cb130b);
  margin-bottom: 4px;
  text-align: right;
}

.viz-title {
  font-family: "Tajawal", sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.4;
  color: #0f1112;
  margin: 0;
  text-align: right;
}

.viz-head--centered {
  margin-bottom: 20px;
}

.viz-head--centered .viz-title {
  text-align: center;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.viz-sub {
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #555;
  margin: 6px 0 0;
  text-align: right;
}

/* ── Chart panels ── */
.viz-panel {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 22px 20px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.viz-panel + .viz-panel {
  margin-top: 14px;
}

.viz-panel-title {
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f1112;
  margin: 0 0 2px;
  text-align: right;
}

.viz-panel-unit {
  font-family: "Montserrat", "Tajawal", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #777;
  margin: 0 0 14px;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

.viz-canvas-wrap {
  position: relative;
  width: 100%;
  height: 300px;
}

.viz-canvas-wrap.tall {
  height: 380px;
}

.viz-note,
.viz-source {
  font-family: "Tajawal", sans-serif;
  font-size: 12px !important;
  line-height: 1.7;
  color: #777 !important;
  margin: 10px 0 0;
  text-align: right;
}

.viz-source strong {
  color: #555;
  font-weight: 700;
}

/* ── Document / screenshot figures ── */
.gallery-figure {
  margin: 36px 0;
  padding: 0;
  border: none;
}

.gallery-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eeeeee;
  box-shadow: 0 4px 16px rgba(15, 17, 18, 0.07);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.gallery-card:hover {
  box-shadow: 0 12px 28px rgba(15, 17, 18, 0.14);
}

.gallery-card--inline {
  max-width: 520px;
  margin: 0 auto;
}

.gallery-card__frame {
  position: relative;
  overflow: hidden;
  background: #f0efee;
  line-height: 0;
}

.gallery-card__img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card__zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(15, 17, 18, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-card__caption {
  display: block;
  padding: 12px 14px;
  font-family: Tajawal, sans-serif;
  font-size: 14.5px;
  color: #444444;
  line-height: 1.65;
  text-align: center;
}

.viz-doc {
  display: block;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #eee;
}

.viz-doc a {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px 2px rgba(54, 54, 54, 0.17);
  position: relative;
}

.viz-doc img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.viz-doc a:hover img {
  transform: scale(1.015);
}

.viz-zoom {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(15, 17, 18, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.viz-doc a:hover .viz-zoom {
  opacity: 1;
}

.viz figcaption {
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  line-height: 1.75;
  color: #555;
  margin-top: 12px;
  text-align: right;
}

.viz figcaption .credit {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 3px;
}

/* ── Pledge vs reality timeline ── */
.pledge-block {
  margin: 56px 0;
  background: #0f1112;
  border-radius: 14px;
  padding: 34px 28px 30px;
  color: #fff;
}

.pledge-block .viz-title {
  color: #fff;
}

.pledge-block .viz-sub {
  color: rgba(255, 255, 255, 0.62);
}

.pledge-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
  font-family: "Tajawal", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.pledge-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.75);
}

.pledge-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.pledge-legend i.p {
  background: #fff;
}

.pledge-legend i.r {
  background: #cb130b;
}

.pledge-list {
  list-style: none;
  margin: 0;
  padding: 0 26px 0 0;
  position: relative;
  border-right: 2px solid rgba(255, 255, 255, 0.14);
}

.pledge-item {
  position: relative;
  padding-bottom: 26px;
}

.pledge-item:last-child {
  padding-bottom: 0;
}

.pledge-item::before {
  content: "";
  position: absolute;
  right: -33px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f1112;
  box-shadow: 0 0 0 2px #cb130b;
}

.pledge-year {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #cb130b;
  margin-bottom: 6px;
}

.pledge-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pledge-rows > div {
  border-radius: 8px;
  padding: 12px 14px;
  font-family: "Tajawal", sans-serif;
  font-size: 14.5px;
  line-height: 1.7;
}

.pledge-promise {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.pledge-reality {
  background: rgba(203, 19, 11, 0.14);
  border-right: 3px solid #cb130b;
  color: #fff;
}

.pledge-rows b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.6;
  margin-bottom: 3px;
}

.pledge-only {
  grid-template-columns: 1fr;
}

/* X (Twitter) video embeds */
.video-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-container blockquote.twitter-tweet {
  margin: 0 !important;
  width: 100%;
  max-width: 550px;
}

.video-container .twitter-tweet-rendered,
.video-container iframe[id^="twitter-widget"] {
  margin-left: auto !important;
  margin-right: auto !important;
}

.video-container figcaption .credit {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 13px;
  color: #8a8f92;
}
.main-content-embed {
  max-width: 50%;
  margin: 40px auto;
}
.embed-credit {
  font-family: "Tajawal", sans-serif;
  margin: 14px 0 0;
  font-size: 12px;
  color: #6b6b6b;
  text-align: center;
}
.embed-credit a {
  color: #cb130b;
  text-decoration: none;
}

@media (max-width: 768px) {
  .cut-section--fullscreen {
    min-height: 100svh;
    height: 100svh;
  }
  .viz,
  .pledge-block {
    margin-top: 32px;
    margin-bottom: 32px;
  }
  .viz-title {
    font-size: 18px;
  }
  .viz-canvas-wrap {
    height: 260px;
  }
  .viz-canvas-wrap.tall {
    height: 320px;
  }
  .pledge-rows {
    grid-template-columns: 1fr;
  }
  .pledge-block {
    padding: 26px 18px 22px;
  }
}
