.profile-link {
  display: inline-flex;
  width: 100%;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

@media (min-width: 901px) {
  .hero {
    grid-template-columns: 38% 62%;
  }

  .hero-visual.map-console {
    height: 650px;
    display: grid;
    grid-template-columns: minmax(330px, 1fr) 245px;
    gap: 12px;
    align-items: center;
    padding: 72px 0 82px 20px;
  }

  .pakistan-map.exact-map {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    height: 490px;
    margin: 0;
  }

  .map-inspector {
    position: relative;
    grid-column: 2;
    right: auto;
    top: auto;
    width: 100%;
    align-self: center;
  }

  .map-toolbar,
  .map-select-wrap,
  .map-source,
  .map-legend {
    right: 265px;
  }
}

.census-profile {
  padding: 110px 7vw;
  background: #edf2ec;
  border-bottom: 1px solid var(--line);
}

.census-heading {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 7vw;
  align-items: end;
  margin-bottom: 42px;
}

.census-heading h2 {
  font: 700 clamp(40px, 5vw, 68px)/1 Manrope;
  letter-spacing: -.055em;
  margin: 0 0 12px;
}

.census-heading > div > p:last-child {
  font-size: 16px;
  line-height: 1.55;
  color: #5f716a;
  margin: 0;
}

.district-explainer {
  background: var(--deep);
  color: white;
  padding: 24px;
  border-left: 5px solid var(--lime);
}

.district-explainer b {
  font: 700 18px Manrope;
}

.district-explainer p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  margin: 10px 0 0;
}

.district-explainer strong {
  color: var(--lime);
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: white;
  margin-bottom: 18px;
}

.profile-stat-grid article {
  padding: 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.profile-stat-grid article:last-child {
  border-right: 0;
}

.profile-stat-grid span {
  display: block;
  font-size: 12px;
  color: #66766f;
}

.profile-stat-grid b {
  display: block;
  font: 800 clamp(27px, 3vw, 42px)/1 Manrope;
  letter-spacing: -.04em;
  color: var(--green);
  margin: 11px 0 7px;
}

.profile-stat-grid small {
  font-size: 12px;
  color: #829089;
}

.profile-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-panel {
  background: white;
  border: 1px solid var(--line);
  padding: 26px;
  min-width: 0;
}

.profile-panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.profile-panel-head span {
  font-size: 11px;
  color: var(--green);
}

.profile-panel-head h3 {
  font: 700 23px Manrope;
  margin: 0;
}

.profile-panel h4 {
  font: 700 12px 'DM Sans';
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64756e;
  margin: 26px 0 14px;
}

.housing-panel,
.district-panel {
  grid-column: span 2;
}

.housing-panel .meter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 34px;
}

.meter-list {
  display: grid;
  gap: 13px;
}

.empty-profile {
  min-height: 72px;
  align-content: center;
  font-size: 14px;
  color: #7b8984;
}

.profile-meter > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
  font-size: 13px;
}

.profile-meter b {
  font: 700 13px Manrope;
  color: var(--green);
  white-space: nowrap;
}

.profile-meter i {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 10px;
  background: #e6ece7;
}

.profile-meter u {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--green), #7bbd87);
}

.mini-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 22px;
}

.mini-facts > div {
  background: #f7f8f5;
  padding: 13px;
}

.mini-facts span {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  color: #77867f;
}

.mini-facts b {
  font: 700 13px Manrope;
}

.seat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--deep);
  color: white;
}

.seat-line span {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.seat-line b {
  font: 700 21px Manrope;
  color: var(--lime);
}

.capital-explainer {
  max-width: 620px;
  margin: 14px 0 0;
  color: #6a7973;
  font-size: 12px;
  line-height: 1.55;
}

.district-label {
  margin: 24px 0 12px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6a7973;
}

.district-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.district-chips span {
  padding: 9px 12px;
  background: var(--mint);
  font-size: 13px;
  font-weight: 600;
}

.census-method {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: #63726c;
}

.census-method a {
  color: var(--green);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  .census-heading {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-stat-grid article {
    border-bottom: 1px solid var(--line);
  }

  .profile-panels {
    grid-template-columns: 1fr;
  }

  .housing-panel,
  .district-panel {
    grid-column: auto;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  .hero-visual.map-console {
    height: 650px;
    display: grid;
    grid-template-columns: minmax(330px, 1fr) 245px;
    gap: 12px;
    align-items: center;
    padding: 82px 0 84px;
  }

  .pakistan-map.exact-map {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    height: 490px;
    margin: 0;
  }

  .map-inspector {
    position: relative;
    grid-column: 2;
    right: auto;
    top: auto;
    width: 100%;
  }

  .map-toolbar,
  .map-select-wrap,
  .map-source,
  .map-legend {
    right: 265px;
  }
}

@media (max-width: 560px) {
  .hero-visual.map-console {
    height: 900px;
  }

  .census-profile {
    padding: 80px 22px;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid article {
    border-right: 0;
  }

  .housing-panel .meter-list,
  .mini-facts {
    grid-template-columns: 1fr;
  }

  .census-heading h2 {
    font-size: 40px;
  }
}
