.method-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 820px;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.method-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.5);
  object-position: center 42%;
}

.method-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.62) 38%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

.method-home {
  position: absolute;
  top: 22px;
  inset-inline-start: 22px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #b80018;
  color: #fff;
}

.method-home svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.method-home:hover,
.method-home:focus-visible {
  background: #8e0013;
  color: #fff;
}

.method-hero-copy {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 128px 0 56px;
  text-align: center;
}

.method-kicker {
  margin: 0 0 12px;
  color: #ffd0d0;
  font-size: 16px;
  font-weight: 700;
}

.method-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.45;
}

.method-byline {
  margin: 22px 0 0;
  color: #f2f2f2;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.method-prose {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.method-prose h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 16px;
  color: #1a1a1a;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.45;
}

.method-prose h2::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 32px;
  border-radius: 3px;
  background: #b80018;
}

.method-prose h3 {
  margin: 36px 0 12px;
  scroll-margin-top: 16px;
  color: #1a1a1a;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}
.method-trips h3{
  font-size: 22px !important;
  font-weight: 600; 
  text-align: center !important;
}

.method-prose h4 {
  margin: 28px 0 10px;
  color: #b80018;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.55;
}
.width-half{
    display: flex;
    justify-content: center;
    align-items: center;

}
.width-half img{
  width: 50%;
}
.method-prose p,
.method-findings li {
  margin: 0 0 25px;
  color: #000000;
  font-size: 19px;
  font-weight: 400;
  line-height: 36px;
}

.method-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.method-breakdown li {
  position: relative;
  margin: 0;
  padding: 18px 18px 22px;
  overflow: hidden;
  border: 1px solid #eadfe2;
  border-radius: 12px;
  background: #fff;
}

.method-breakdown li::after,
.method-breakdown li::before {
  content: "";
  position: absolute;
  bottom: 0;
  height: 4px;
}

.method-breakdown li::after {
  inset-inline: 0;
  background: #f3e8ea;
}

.method-breakdown li::before {
  z-index: 1;
  inset-inline-start: 0;
  width: calc(var(--n) / 270 * 100%);
  background: #b80018;
}

.method-breakdown b {
  display: block;
  color: #b80018;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.method-breakdown span {
  display: block;
  margin-top: 8px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.method-findings {
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.method-findings li {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #eadfe2;
  border-inline-start: 4px solid #b80018;
  border-radius: 12px;
  background: #fff;
}

.method-sources-table {
  margin: 8px 0 28px;
  overflow-x: auto;
}

.method-sources-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

.method-sources-table th,
.method-sources-table td {
  padding: 14px 16px;
  border: 1px solid #1a1a1a;
  vertical-align: middle;
  text-align: center;
}

.method-sources-table thead th {
  font-size: 18px;
  font-weight: 800;
}

.method-sources-table tbody th {
  width: 34%;
  font-weight: 700;
}

.method-sources-table tbody td {
  width: 66%;
}

.method-embed,
.method-table-wrap {
  margin: 50px 0 50px;
  overflow: hidden;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: #fff;
}

.method-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  background: #ffffff;
}

.method-embed--map iframe {
  height: 480px;
}

.method-embed figcaption,
.method-table-wrap caption {
  padding: 12px 16px 14px;
  color: #5c686b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  text-align: right;
  caption-side: bottom;
}

.method-table-wrap {
  overflow-x: auto;
}

.method-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: 500;
}

.method-table-wrap th,
.method-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0e6e8;
  text-align: right;
  white-space: nowrap;
}

.method-table-wrap thead th {
  background: #1a1a1a;
  color: #fff;
  font-weight: 700;
}

.method-table-wrap tbody th {
  font-weight: 800;
}

.method-compare thead th {
  background: #fff;
  color: #1a1a1a;
  border-bottom: 1px solid #e6e6e6;
  font-weight: 500;
  vertical-align: bottom;
}

.method-compare thead th:first-child,
.method-compare tbody th {
  width: 34%;
  font-weight: 400;
  text-align: right;
}

.method-compare th,
.method-compare td {
  white-space: normal;
}

.method-compare td {
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.method-compare thead th:not(:first-child) {
  text-align: center;
}

.method-compare td.heat {
  background: rgba(184, 0, 24, var(--heat, 1));
  border: 2px solid #fff;
  color: #ffffff;
  font-weight: 700;
}

.method-compare td.heat-strong {
  color: #fff;
}
.charts-st h3{
  text-align: center;
}
.charts-st p{
  text-align: center;
  margin-top: -8px;
}
.source-charts{
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  margin-top: 9px !important;
  text-align: left !important;
}
.images-container-methodology{
  margin-top: 50px;
  margin-bottom: 50px;
}
.method-trips {
  margin: 50px 0 50px;
  padding: 8px 4px 4px;
}

.method-trips h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.35;
}

.method-trips p {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.7;
}

.method-trips strong {
  color: #b80018;
  font-weight: 800;
}

.method-trips table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  font-weight: 500;
}

.method-trips th,
.method-trips td {
  padding: 16px 12px;
  border-bottom: 1px solid #e6e6e6;
  vertical-align: middle;
}

.method-trips thead th {
  border-bottom-color: #cfcfcf;
  color: #1a1a1a;
  font-weight: 400;
  text-align: center;
}

.method-trips tbody th {
  font-weight: 500;
  text-align: center;
}

.method-trips td {
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.method-trips .is-total th,
.method-trips .is-total td {
  border-bottom-color: #cfcfcf;
  font-weight: 800;
}

.method-ramallah-note {
  color: #3a3a3a;
  font-size: 16px !important;
  text-align: left;
}

.method-ramallah-scroll {
  overflow-x: auto;
}

.method-ramallah table {
  min-width: 0;
  font-size: 14px;
}

.method-ramallah th,
.method-ramallah td {
  padding: 12px 8px;
}

.method-ramallah thead th {
  font-size: 15px;
  line-height: 1.45;
}

.method-ramallah tbody th {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.method-ramallah .heat {
  background: rgba(184, 0, 24, var(--heat, 1));
  color: #fff;
  font-weight: 700;
}

@media (max-width: 700px) {
  .width-half img{
    width: 100%;
  }
  .method-hero {
    min-height: 440px;
  }

  .method-hero-copy {
    width: calc(100% - 32px);
    padding: 108px 0 64px;
  }

  .method-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 4vw, 34px);
    font-weight: 800;
    line-height: 1.45;
  }

  .method-home {
    top: 16px;
    inset-inline-start: 14px;
  }

  .method-prose {
    width: calc(100% - 32px);
  }

  .method-prose h2 {
    font-size: 24px;
  }

  .method-prose p,
  .method-findings li {
    font-size: 18px;
  }

  .method-sources-table table {
    min-width: 640px;
    font-size: 15px;
  }

  .method-compare table {
    font-size: 14px;
  }

  .method-compare th,
  .method-compare td {
    padding: 10px 6px;
  }

  .method-compare caption {
    font-size: 18px;
  }

  .method-ramallah {
    position: relative;
  }

  .method-ramallah-scroll {
    overflow: visible;
  }

  .method-ramallah table {
    min-width: 0;
    font-size: 16px;
  }

  .method-ramallah thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .method-ramallah table,
  .method-ramallah tbody,
  .method-ramallah tr {
    display: block;
    width: 100%;
  }

  .method-ramallah tbody tr {
    padding: 16px 0 8px;
    border-bottom: 1px solid #e6e6e6;
  }

  .method-ramallah th,
  .method-ramallah td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    padding: 7px 0;
    border: 0;
    text-align: start;
    white-space: normal;
  }

  .method-ramallah tbody th {
    display: block;
    padding: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    white-space: normal;
  }

  .method-ramallah td::before {
    content: "";
    flex: 1 1 0;
    min-width: 0;
    color: #3a3a3a;
    font-weight: 500;
    line-height: 1.45;
    text-align: start;
  }

  .method-ramallah td:nth-child(2)::before {
    content: "الزمن المرجعي (بالدقائق)";
  }

  .method-ramallah td:nth-child(3)::before {
    content: "وسيط زمن الرحلة (بالدقائق)";
  }

  .method-ramallah td:nth-child(4)::before {
    content: "متوسط الزمن الإضافي (بالدقائق)";
  }

  .method-ramallah td:nth-child(5)::before {
    content: "نسبة الزمن الإضافي من إجمالي الزمن المرجعي";
  }

  .method-ramallah td:nth-child(6)::before {
    content: "إجمالي الزمن الإضافي خلال ثمان رحلات";
  }

  html[lang="en"] .method-ramallah td:nth-child(2)::before {
    content: "Reference time (min)";
  }

  html[lang="en"] .method-ramallah td:nth-child(3)::before {
    content: "Median journey time (min)";
  }

  html[lang="en"] .method-ramallah td:nth-child(4)::before {
    content: "Average excess time (min)";
  }

  html[lang="en"] .method-ramallah td:nth-child(5)::before {
    content: "Extra time as % of reference";
  }

  html[lang="en"] .method-ramallah td:nth-child(6)::before {
    content: "Extra time over eight journeys";
  }

  .method-ramallah td.heat {
    background: transparent;
    color: #1a1a1a;
    font-weight: 500;
  }

  .method-ramallah td.heat span {
    flex: 0 0 auto;
    min-width: 64px;
    padding: 3px 8px;
    background: rgba(184, 0, 24, var(--heat, 1));
    color: #fff;
    font-weight: 700;
    text-align: center;
  }

  .method-trips:not(.method-ramallah) {
    overflow-x: auto;
  }

  .method-trips:not(.method-ramallah) table {
    font-size: 15px;
  }

  .method-trips:not(.method-ramallah) th,
  .method-trips:not(.method-ramallah) td {
    padding: 12px 6px;
  }

  .method-trips:not(.method-ramallah) thead th {
    font-size: 14px;
    line-height: 1.4;
    vertical-align: bottom;
  }

  .method-trips:not(.method-ramallah) thead th:first-child,
  .method-trips:not(.method-ramallah) tbody th {
    width: 58%;
    text-align: start;
  }

  .method-breakdown {
    grid-template-columns: 1fr;
  }

  .method-embed iframe,
  .method-embed--map iframe {
    height: 420px;
  }
}
