body.il-public-body {
  line-height: 1.6;
}

body.il-public-body [dir="rtl"] {
  line-height: 1.72;
}

.il-entity-page {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 48px 80px;
}

.il-entity-article {
  margin: 0;
}

.il-entity-hero {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--il-line);
  border-radius: 18px;
  background: var(--il-surface);
}

.il-entity-hero-copy {
  min-width: 0;
  max-width: 940px;
  padding: clamp(48px, 6vw, 72px);
}

.il-entity-eyebrow {
  margin: 0 0 16px;
  color: var(--il-teal-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.il-entity-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--il-ink);
  font-size: clamp(40px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

[dir="rtl"] .il-entity-eyebrow,
[dir="rtl"] .il-entity-hero h1,
[dir="rtl"] .il-payload-section > h2 {
  letter-spacing: 0;
}

.il-entity-summary {
  max-width: 68ch;
  margin: 24px 0 0;
  color: var(--il-muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.7;
  text-wrap: pretty;
}

.il-entity-hero--media {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
  box-shadow: 0 8px 24px rgb(18 50 56 / 8%);
}

.il-entity-hero-media {
  min-width: 0;
  min-height: 390px;
  margin: 0;
  overflow: hidden;
  border-inline-start: 1px solid var(--il-line);
  background: #e9efeb;
}

.il-entity-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
}

.il-entity-overview {
  margin-block-start: 48px;
  padding-block-start: 32px;
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  border-top: 1px solid var(--il-line);
}

.il-entity-section-label h2 {
  margin: 0;
  color: var(--il-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.il-entity-lede {
  max-width: 68ch;
  color: #40555a;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.78;
}

.il-entity-lede > :first-child {
  margin-block-start: 0;
}

.il-entity-lede > :last-child {
  margin-block-end: 0;
}

.il-entity-lede a {
  color: var(--il-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.il-public-payload {
  margin-block-start: 0;
}

.il-payload-section {
  min-width: 0;
  margin-block-start: 56px;
  padding-block-start: 48px;
  border-top: 1px solid var(--il-line);
}

.il-payload-section > h2 {
  margin: 0 0 28px;
  color: var(--il-ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.il-map-figure {
  margin: 0;
}

.il-compact-map {
  width: 100%;
  height: auto;
  min-height: 280px;
  display: block;
  border: 1px solid var(--il-line);
  border-radius: 16px;
  background: #edf2ee;
}

.il-map-surface {
  fill: #edf2ee;
  stroke: #c9d5cf;
  stroke-width: 2;
}

.il-map-current-geometry {
  fill: rgb(223 107 77 / 29%);
  stroke: var(--il-coral);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

polyline.il-map-current-geometry {
  fill: none;
}

.il-map-current-halo {
  fill: rgb(223 107 77 / 16%);
}

.il-map-current-point {
  fill: var(--il-coral);
  stroke: var(--il-surface);
  stroke-width: 3;
}

.il-map-related circle {
  fill: var(--il-teal);
  stroke: var(--il-surface);
  stroke-width: 3;
}

.il-map-legend {
  margin-block-start: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--il-muted);
  font-size: 13px;
}

.il-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.il-map-legend-current {
  background: var(--il-coral);
}

.il-map-legend-related {
  background: var(--il-teal);
}

.il-fact-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.il-fact-card {
  min-width: 0;
  min-height: 112px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--il-line);
  border-radius: 12px;
  background: #f8faf8;
}

.il-fact-card dt {
  margin: 0;
  color: var(--il-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.il-fact-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--il-ink);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 800;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.il-relation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--il-line);
}

.il-relation-card {
  min-width: 0;
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-inline-end: 1px solid var(--il-line);
  background: var(--il-surface);
  color: var(--il-ink);
  text-decoration: none;
}

.il-relation-card:last-child {
  border-inline-end: 0;
}

.il-relation-card:hover {
  background: #f4f8f5;
  transform: translateY(-1px);
}

.il-relation-card:focus-visible,
.il-source-card:focus-visible {
  position: relative;
  z-index: 1;
}

.il-relation-type {
  margin-block-end: 14px;
  color: var(--il-teal-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.il-relation-card strong {
  overflow-wrap: anywhere;
  font-size: 19px;
  line-height: 1.4;
}

.il-relation-context {
  margin-block-start: 9px;
  color: var(--il-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.il-relation-link {
  margin-block-start: auto;
  padding-block-start: 22px;
  color: var(--il-teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.il-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--il-line);
}

.il-source-card {
  min-width: 0;
  min-height: 112px;
  padding: 20px 0;
  display: grid;
  gap: 7px;
  border-bottom: 1px solid var(--il-line);
  color: var(--il-ink);
  text-decoration: none;
}

.il-source-card:nth-child(odd) {
  padding-inline-end: 24px;
}

.il-source-card:nth-child(even) {
  padding-inline-start: 24px;
}

.il-source-card:hover {
  color: var(--il-teal-dark);
}

.il-source-card strong,
.il-source-card span {
  overflow-wrap: anywhere;
}

.il-source-card strong {
  font-size: 16px;
  line-height: 1.45;
}

.il-source-card > span:not(.il-source-link) {
  color: var(--il-muted);
  font-size: 13px;
}

.il-source-link {
  margin-block-start: 8px;
  color: var(--il-teal-dark);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 880px) {
  .il-entity-hero--media {
    grid-template-columns: 1fr;
  }

  .il-entity-hero-media {
    min-height: 280px;
    border-inline-start: 0;
    border-top: 1px solid var(--il-line);
  }

  .il-entity-hero-media img {
    min-height: 280px;
    max-height: 520px;
  }

  .il-entity-overview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .il-fact-grid,
  .il-relation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .il-relation-card:nth-child(2n) {
    border-inline-end: 0;
  }

  .il-relation-card:nth-child(n + 3) {
    border-top: 1px solid var(--il-line);
  }
}

@media (max-width: 760px) {
  .il-entity-page {
    width: min(100% - 32px, 1180px);
    padding-block: 24px 64px;
  }

  .il-breadcrumbs {
    margin-block-end: 16px;
  }

  .il-entity-hero {
    border-radius: 16px;
  }

  .il-entity-hero-copy {
    padding: 30px 24px 32px;
  }

  .il-entity-hero h1 {
    font-size: clamp(34px, 10.8vw, 48px);
    line-height: 1.06;
  }

  .il-entity-summary {
    margin-block-start: 18px;
    font-size: 16px;
  }

  .il-entity-overview {
    margin-block-start: 32px;
    padding-block-start: 24px;
  }

  .il-entity-lede {
    font-size: 17px;
    line-height: 1.75;
  }

  .il-payload-section {
    margin-block-start: 48px;
    padding-block-start: 40px;
  }

  .il-compact-map {
    min-height: 210px;
  }

  .il-fact-grid,
  .il-relation-grid,
  .il-source-list {
    grid-template-columns: 1fr;
  }

  .il-relation-card,
  .il-relation-card:nth-child(2n),
  .il-relation-card:last-child {
    min-height: 150px;
    border-inline-end: 0;
  }

  .il-relation-card:nth-child(n + 2) {
    border-top: 1px solid var(--il-line);
  }

  .il-source-card:nth-child(odd),
  .il-source-card:nth-child(even) {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .il-relation-card:hover {
    transform: none;
  }
}
