.tp-atlas {
  --atlas-gold: #ebc887;
  --atlas-paper: #ecebdc;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--atlas-paper);
  background: #132921;
  border: 1px solid rgba(191,192,157,.34);
  border-radius: 2px;
  isolation: isolate;
  text-align: left;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}
.tp-atlas__plate {
  position: relative;
  overflow: hidden;
  aspect-ratio: 780/476;
  background: #192e29;
}
.tp-atlas__drawing { display: block; width: 100%; height: 100%; max-width: none; }
.tp-atlas__plate::after {
  position: absolute;
  inset: 9px;
  content: "";
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 0 0/10px 1px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 0 0/1px 10px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 100% 0/10px 1px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 100% 0/1px 10px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 0 100%/10px 1px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 0 100%/1px 10px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 100% 100%/10px 1px,
    linear-gradient(var(--atlas-gold),var(--atlas-gold)) 100% 100%/1px 10px;
  background-repeat: no-repeat;
  opacity: .65;
}
.tp-atlas__origin {
  position: absolute;
  transform: translateY(-50%);
  max-width: 36%;
  padding: .31em .64em .37em;
  color: #f7e3b5;
  background: rgba(18,40,32,.96);
  border: 1px solid #a79160;
  border-radius: 2px;
  font-size: clamp(.78rem,1vw,.92rem);
  font-weight: 600;
  line-height: 1.12;
}
.tp-atlas__compass {
  position: absolute;
  bottom: 19px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  color: #e5dcbe;
  font: 500 .79rem/1 "Source Sans 3",sans-serif;
}
.tp-atlas__compass svg { width: 15px; height: 24px; }
.tp-atlas__home { opacity: 0; transition: opacity .5s ease; }
.tp-atlas__home.is-lit { opacity: .98; }
.tp-atlas__caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem .85rem;
  min-height: 55px;
  margin: 0;
  padding: .5rem clamp(.8rem,2.3vw,1.5rem);
  background: #182b24;
  border-top: 1px solid #49574b;
  color: #eee9da;
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: 0;
}
.tp-atlas__key { display: inline-flex; align-items: center; gap: .48rem; font-weight: 600; }
.tp-atlas__key i {
  display: block;
  width: .48rem; height: .48rem;
  background: var(--atlas-gold);
  transform: rotate(-14deg);
}
.tp-atlas__controls { display: inline-flex; align-items: center; gap: .16rem; }
.tp-atlas__controls[hidden] { display: none; }
.tp-atlas__controls button {
  min-width: 37px;
  min-height: 38px;
  padding: .3rem .55rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: #d6d8c9;
  font: 600 .92rem/1 "Source Sans 3","Helvetica Neue",Arial,sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.tp-atlas__controls button[aria-pressed="true"] { color: #ffdea4; border-color: #a58e5f; background: #344232; }
.tp-atlas__controls button:hover { color: #fff5dd; background: #2f4034; }
.tp-atlas__controls button:focus-visible { outline: 2px solid #f1d391; outline-offset: 2px; }
.tp-atlas__example { margin-left: auto; color: #c1c6b7; font-size: .82rem; }
.tp-atlas__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 550px) {
  .tp-atlas__caption { gap: .1rem .4rem; }
  .tp-atlas__controls button { min-height: 44px; min-width: 39px; }
  .tp-atlas__example { flex-basis: 100%; margin: 0 0 .25rem; }
  .tp-atlas__controls { margin-left: auto; }
  .tp-atlas__compass { right: 13px; bottom: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-atlas__home { transition: none; }
}
