#page-bolivia .country-photo-hero {
  min-height: clamp(440px, 50vw, 1080px);
  background-position: center;
}

@media (max-width: 900px) {
  #page-bolivia .country-photo-hero {
    display: block;
    min-height: 0;
    padding-top: 0;
    background: var(--cream);
  }

  #page-bolivia .country-photo-hero::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
    margin-bottom: clamp(1.75rem, 6vw, 3.25rem);
    background: var(--country-photo) center / contain no-repeat;
  }
}

:is(.guide-panel, .external-sources, .external-source-country, .guide-source-list > li, .works-cited > li),
#works-cited {
  scroll-margin-top: 7.5rem;
}

.guide-panel > h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.guide-panel h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 .45rem;
}

.guide-panel p {
  margin: 0;
}

.guide-route {
  margin: 0 0 1.25rem;
  border-left: 3px solid var(--accent);
  padding: .8rem .95rem;
  background: #f3ebdc;
}

.guide-places {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}

.guide-place {
  padding: .9rem .98rem;
  border: 1px solid #dcd1bd;
  background: #f7f1e5;
}

.guide-notes > :not(:first-child) {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}

.guide-references {
  color: var(--forest);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.external-sources .pill-row {
  margin: 1rem 0 1.5rem;
}

.external-source-country + .external-source-country {
  border-top: 1px solid var(--line);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
}

.external-source-country h3 {
  font-size: 1.4rem;
  margin: 0 0 .7rem;
}

.guide-source-list {
  padding-inline-start: 1.5rem;
  margin: 0;
}

.guide-source-list li + li {
  margin-top: .65rem;
}

.guide-source-list a {
  overflow-wrap: anywhere;
}

.works-cited li::marker {
  color: var(--forest);
  font-weight: 700;
}

:is(.guide-source-list, .works-cited) li:target {
  background: #f3ebdc;
  outline: 2px solid var(--accent);
  outline-offset: .2rem;
}

.guide-summary h2 {
  font-size: 1.4rem;
  margin-bottom: .65rem;
}

.guide-summary dl,
.guide-summary dd {
  margin: 0;
}

.guide-summary dt {
  color: var(--forest);
  font: 700 .825rem/1.4 "Courier New", monospace;
  text-transform: uppercase;
}

.guide-summary dd {
  color: #344940;
}

.guide-summary .quick-row:last-child {
  padding-bottom: 0;
}

@media (max-width: 1050px) {
  .guide-sidebar { grid-row: 1; }
  .guide-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .guide-summary .quick-row { border-bottom: 1px solid var(--line); padding: .65rem 0; }
}

@media (max-width: 900px) {
  :is(.guide-panel, .external-sources, .external-source-country, .guide-source-list > li, .works-cited > li),
  #works-cited {
    scroll-margin-top: 10rem;
  }
}

@media (max-width: 560px) {
  .guide-panel,
  .guide-summary { padding: 1.05rem; }
  .guide-places { grid-template-columns: minmax(0, 1fr); }
  .guide-references { white-space: normal; }
  .works-cited li { padding-inline-start: 1.25rem; text-indent: -1.25rem; }
}
