.atlas-intro {
  padding-block: 18px 35px;
  border-bottom: 1px solid var(--archive-line);
  background: var(--archive-paper);
}

.atlas-intro .breadcrumbs { margin-block-end: 20px; }
.atlas-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  line-height: 1.04;
}

.atlas-intro-copy { max-width: 62ch; margin: 0; color: var(--muted); }
.atlas-interests { margin-block-start: 25px; }
.atlas-interests p { margin: 0 0 8px; font-size: .89rem; font-weight: 650; }
.atlas-interests ul, .atlas-grid { margin: 0; padding: 0; list-style: none; }
.atlas-interests ul { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-interests li, .atlas-grid li { margin: 0; }

.atlas-interests a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  height: 100%;
  padding: 8px 14px;
  border: 1px solid #b8af9d;
  background: #fffdf7;
  font-size: .9rem;
  font-weight: 580;
  line-height: 1.3;
}

.atlas-interests a:hover { border-color: var(--gold-dark); }
.atlas-interests a[aria-current="page"] { border-color: var(--archive-dark); background: var(--archive-dark); color: #fffaf0; }
.atlas-interests a[aria-current="page"] span { color: var(--archive-gold); }

.atlas-results {
  padding-block: clamp(27px, 5vw, 62px) clamp(42px, 7vw, 86px);
}

.atlas-results-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px 26px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--archive-line);
}

.atlas-results-bar h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 3rem); }
.atlas-results-bar p { margin: 0; color: var(--muted); font-size: .9rem; }
.atlas-share { background: #fffdf7; border: 1px solid var(--archive-line); }
.atlas-share > summary, .atlas-ecosystem > summary {
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 600;
}

.atlas-share-panel { padding: 8px 14px 14px; max-width: min(455px, 100%); }
.atlas-share-panel label { display: block; margin-bottom: 6px; font-size: .83rem; }
.atlas-share-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.atlas-share-field input, .atlas-share-field button {
  border: 1px solid #a69d8a;
  padding: 9px 11px;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: white;
}

.atlas-share-field input { flex: 1 1 220px; min-width: 0; width: 100%; font-size: .88rem; }
.atlas-share-field button { background: var(--archive-dark); border-color: var(--archive-dark); color: #fffaf0; font-size: .83rem; }
.atlas-share-field button:hover { background: #414338; }
.atlas-share-status { padding-block-start: 7px; }
.atlas-share-panel input:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }

.atlas-result-group { margin-block: 27px 0; }
.atlas-result-group + .atlas-result-group { margin-block-start: clamp(32px, 6vw, 66px); }
.atlas-result-group > h3 { margin: 0 0 13px; font: 400 clamp(1.35rem, 3vw, 2rem)/1.2 var(--heading); }

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.atlas-entry {
  min-width: 0;
  border: 1px solid var(--archive-line);
  border-top: 2px solid #ac9465;
  background: #fffefa;
}

.atlas-entry:target { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold-dark); }
.atlas-entry article { display: flex; flex-direction: column; align-items: start; height: 100%; padding: clamp(14px, 2vw, 24px); }
.atlas-entry-heading { display: flex; align-items: center; gap: 11px; min-width: 0; width: 100%; }
.atlas-entry-heading h3, .atlas-entry-heading h4 {
  margin: 0;
  font: 400 clamp(1.28rem, 2.15vw, 1.75rem)/1.2 var(--heading);
  overflow-wrap: anywhere;
}

.atlas-entry-heading p, .atlas-entry-summary { color: var(--muted); }
.atlas-entry-heading p { margin: 3px 0 0; font-size: .8rem; line-height: 1.35; }
.atlas-entry-heading > div { min-width: 0; }
.atlas-entry-mark {
  width: 56px;
  height: 48px;
  flex: 0 0 56px;
  background: #fff;
}

.atlas-entry-mark img { width: 100%; height: 100%; object-fit: contain; }
.atlas-entry-summary { margin: 10px 0 12px; font-size: .91rem; line-height: 1.58; }
.atlas-entry-links { display: grid; justify-items: start; align-items: start; margin-block-start: auto; width: 100%; }
.atlas-entry-site, .atlas-domain-status { width: 100%; background: #f2efe5; margin: 0 0 5px; padding: 7px 11px 2px; }
.atlas-entry-site > span, .atlas-domain-status > span { display: block; font-size: .73rem; line-height: 1.32; color: #5f542f; font-weight: 650; }
.atlas-domain-status > bdi { display: block; margin-block: 4px 6px; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }

.atlas-domain, .atlas-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding-block: 4px;
  font-size: .88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.atlas-domain { font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.atlas-profile { padding-inline: 4px; }
.atlas-domain span, .atlas-profile span { flex-shrink: 0; color: var(--gold-dark); }
.atlas-profile:hover { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.atlas-more { display: flex; gap: 14px 32px; flex-wrap: wrap; margin-block-start: 26px; }
.atlas-ecosystem { margin-top: 25px; border: 1px solid var(--archive-line); padding: 0 14px; background: var(--archive-paper); }
.atlas-ecosystem > summary { padding-inline: 0; }

@media (max-width: 1050px) {
  .atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .atlas-intro { padding-block: 12px 23px; }
  .atlas-intro .breadcrumbs { margin-block-end: 10px; }
  .atlas-intro h1 { font-size: clamp(2.45rem, 9vw, 3.7rem); }
  .atlas-interests { margin-block-start: 16px; }
  .atlas-interests ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-interests a { padding-inline: 9px; font-size: .84rem; }
  .atlas-grid { grid-template-columns: minmax(0, 1fr); }
  .atlas-results-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .atlas-results-bar > div { display: contents; }
  .atlas-results-bar h2 { grid-column: 1 / -1; margin: 0; }
  .atlas-share { justify-self: end; }
  .atlas-share[open] { grid-column: 1 / -1; justify-self: stretch; }
  .atlas-entry-mark { height: 44px; }
  .atlas-share-field input { font-size: 1rem; }
}
