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

.page-shell.world-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.85rem 1.5rem 2.1rem;
  background-color: var(--forest-deep);
  background-image: url("/img/world-trailhead.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.world-welcome {
  position: absolute;
  top: 0.85rem;
  left: max(1.5rem, calc((100% - 1200px) / 2 + 1.5rem));
  z-index: 2;
  max-width: 22rem;
  padding: 1.05rem 1.2rem 1.15rem;
  background: rgba(248, 245, 240, 0.90);
  border: 2px solid var(--sage);
  outline: 2px solid var(--sage);
  outline-offset: 6px;
  color: var(--journal);
  text-align: left;
}

.world-welcome p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

.world-welcome p + p {
  margin-top: 0.85rem;
}

.world-welcome-close {
  font-weight: 800;
}

.world-welcome a {
  color: var(--forest);
  text-decoration: underline;
}

.world-welcome a:hover {
  color: var(--canyon);
}

.world-pad {
  position: relative;
  margin: 0;
  width: min(20rem, 30vw, calc((100vh - 24rem) * 0.6));
  transform: rotate(-7deg);
  filter: drop-shadow(0 1.15rem 1.85rem rgba(31, 42, 42, 0.42));
}

.world-pad > img {
  width: 100%;
  height: auto;
  display: block;
}

.world-pad-open {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.world-pad-open:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}

.world-pad-home {
  position: absolute;
  top: 13.6%;
  right: 11.2%;
  width: 12%;
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 4;
}

.world-pad-inner .world-pad-home {
  top: 10.2%;
  right: 12%;
  width: 11%;
}

.world-pad-home img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

.world-pad-home:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.world-sheet {
  position: absolute;
  top: 21%;
  left: 11%;
  right: 14.5%;
  bottom: 10.5%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  color: var(--journal);
  pointer-events: none;
}

.world-sheet a,
.world-sheet .world-go {
  pointer-events: auto;
}

.world-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.world-sheet h1 {
  margin: 0 0 0.28rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
}

.world-contents-title {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.world-sheet h1.world-site-name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  word-break: normal;
  overflow: hidden;
}

.world-toc {
  margin: 0.08rem 0 0;
  padding-left: 1.75rem;
  color: var(--forest-deep);
  font-weight: 800;
}

.world-toc li {
  margin: 0 0 0.16rem;
  padding-bottom: 0.08rem;
  border-bottom: 1px solid rgba(70, 58, 58, 0.16);
}

.world-toc li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.world-toc a {
  color: var(--forest-deep);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.world-toc a:hover {
  color: var(--canyon);
}

.world-status {
  display: block;
  margin-top: 0.02rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--sage-on-light);
  white-space: nowrap;
}

.world-status.is-ahead {
  color: var(--forest-deep);
  opacity: 1;
}

.world-site-line {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--forest-deep);
}

.world-logo-area {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  margin: 0 0 0.4rem;
  border: 2px solid var(--sage);
  background: rgba(248, 245, 240, 0.42);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-logo-area.is-empty {
  aspect-ratio: auto;
  height: 3.2rem;
}

.world-logo-area a {
  display: block;
  width: 100%;
  height: 100%;
}

.world-logo-area:has(a:hover),
.world-logo-area:has(a:focus-visible) {
  border-color: var(--canyon);
}

.world-logo-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.world-site-copy {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.world-go {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.22rem 0.55rem;
  border: 2px solid var(--canyon);
  color: var(--forest-deep);
  font-size: 0.68rem;
  font-weight: 800;
  background: transparent;
}

.world-go:hover {
  background: var(--canyon);
  color: var(--white);
}

.world-pad-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.3rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
}

.world-pad-nav a {
  color: var(--forest-deep);
}

.world-pad-nav a:hover {
  color: var(--canyon);
}

@media (max-width: 700px) {
  .page-shell.world-photo {
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 1.25rem 1rem 2.75rem;
  }

  .world-welcome {
    position: static;
    align-self: flex-start;
    width: fit-content;
    max-width: calc(100% - 1rem);
    margin: 0.2rem 0 1.1rem;
    padding: 0.75rem 0.9rem 0.85rem;
  }

  .world-welcome p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .world-welcome p + p {
    margin-top: 0.65rem;
  }

  .world-pad {
    width: min(13.5rem, 56vw);
    margin: 0 auto;
    transform: none;
    filter: drop-shadow(0 0.85rem 1.35rem rgba(31, 42, 42, 0.38));
  }

  .world-photo-inner .world-pad {
    width: min(20.5rem, 88vw);
  }

  .world-sheet h1 {
    font-size: 0.95rem;
  }

  .world-sheet h1.world-site-name {
    font-size: 0.82rem;
  }

  .world-toc {
    padding-left: 1.85rem;
  }

  .world-toc a {
    font-size: 0.74rem;
  }

  .world-site-copy {
    font-size: 0.66rem;
  }
}
