.archives-layout { max-width: 860px; }
.archive-front {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 5vw, 29px);
  border-left: 3px solid var(--gilt);
  border-radius: 4px;
  background: var(--wine);
  color: var(--vellum);
}
.archive-heading .page-subtitle { margin-top: 6px; color: #f3e5d4; }
.archive-search label { display: block; margin-bottom: 5px; font-weight: 650; }
.archive-search-line { display: flex; flex-wrap: wrap; gap: 7px; }
.archive-search-line .archive-input { flex: 7 1 152px; }
.archive-search-line .primary-button { background: var(--paper); color: var(--wine-deep); flex: 1 0 auto; padding-inline: 12px; }
.archive-front :focus-visible { outline-color: #eed3a5; }
.archive-input {
  width: 100%; min-width: 0; min-height: 46px; padding: 8px 11px;
  border: 1px solid var(--strong-rule); border-radius: 4px;
  background: var(--vellum); color: var(--ink); font: inherit;
}
.archive-hub { display: grid; gap: 12px; margin-top: 20px; }
.archive-hub h2, .article-section h2, .atlas-selection h2 {
  font-size: clamp(1.95rem, 7vw, 2.45rem);
}
.archive-links, .archive-list { margin: 0; padding: 0; list-style: none; }
.archive-entry-link {
  display: grid; grid-template-columns: 35px minmax(0, 1fr) 18px; align-items: center; gap: 9px;
  min-height: 62px; padding: 8px 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.archive-entry-link > .icon { width: 17px; color: var(--wine); }
.archive-entry-copy { display: grid; line-height: 1.25; overflow-wrap: anywhere; }
.archive-entry-copy strong { font-size: 1.065rem; line-height: 1.25; }
.archive-entry-copy small { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.archive-entry-symbol {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--rule); background: var(--paper); border-radius: 50%; color: var(--wine);
}
.archive-entry-symbol .icon { width: 17px; height: 17px; }
.archive-result-count, .archive-status {
  color: var(--wine); font-weight: 650; overflow-wrap: anywhere;
}
.archive-status:not(:empty), .archive-result-count:not(:empty) { margin-top: 10px; }
.archive-results .secondary-button { margin-top: 9px; }
.archive-history-panel { margin-top: 16px; }
.archive-history { list-style: none; padding: 0; }
.archive-history-button, .text-button, .atlas-place, .atlas-place-link {
  min-height: var(--tap); min-width: var(--tap); padding: 5px 8px;
  color: var(--wine); border: 0; background: transparent; text-align: left;
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.archive-aliases { color: var(--muted); margin-top: 6px; }
.archive-aliases:empty { display: none; }
.archive-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.archive-actions .secondary-button, .archive-actions .primary-button { padding-inline: 9px; font-size: .99rem; }
.archive-favorite[aria-pressed="true"] { background: var(--wine-tint); }
.article-section { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.article-section > p, .article-section > ul, .article-section > ol { margin-top: 6px; font-size: 1.04rem; line-height: 1.5; }
.article-section ul, .article-section ol { padding-left: 23px; margin-bottom: 0; }
.article-section li + li { margin-top: 5px; }
.article-related-link { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); gap: 7px; color: var(--wine); border-bottom: 1px solid var(--rule); text-decoration: none; }
.article-related-link > .icon { width: 17px; height: 17px; }
.provenance-server { color: var(--forest); }
.provenance-local { color: var(--wine-deep); }
.atlas-maps, .atlas-commands, .atlas-zoom, .atlas-pan { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.atlas-maps [aria-current="page"] { background: var(--wine); color: var(--vellum); }
.atlas-commands { margin-top: 9px; justify-content: space-between; }
.atlas-commands .icon-button { font-size: 1.15rem; }
.atlas-commands .icon-button:disabled { opacity: .46; cursor: default; }
.atlas-zoom-label { min-width: 49px; text-align: center; color: var(--muted); font-weight: 650; }
.atlas-viewport {
  overflow: auto; height: min(60vw, 385px); min-height: 182px; border: 1px solid var(--strong-rule);
  background: var(--aged-paper); border-radius: 4px; overscroll-behavior: contain;
}
.atlas-canvas { position: relative; width: 100%; }
.atlas-canvas img { width: 100%; height: auto; }
.atlas-pin {
  position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center;
  width: var(--tap); height: var(--tap); border: 0; padding: 0; background: transparent;
}
.atlas-pin:focus-visible { z-index: 1; border-radius: 50%; }
.atlas-dot { width: 13px; height: 13px; border: 2px solid var(--vellum); border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 1px var(--wine-deep); }
.atlas-pin[aria-pressed="true"] { z-index: 1; }
.atlas-pin[aria-pressed="true"] .atlas-dot { width: 18px; height: 18px; outline: 2px solid var(--wine); }
.atlas-selection { display: grid; gap: 7px; padding: 12px; background: var(--paper); border-left: 2px solid var(--gilt); margin-bottom: 9px; }
.atlas-selection .secondary-button { justify-self: start; }
.atlas-place-list { padding: 0; list-style: none; }
.atlas-place-list li { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); }
.atlas-place-link { display: inline-flex; align-items: center; }
@media (min-width: 760px) {
  .archive-hub .archive-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; }
  .archive-front .archive-search-line { max-width: 620px; }
}
