/* Homepage layout. The artwork, guide links and editorial order are in index.html. */
.atlas-home .atlas-hero {
  padding-top: clamp(var(--space-6), 4vw, 60px);
}
.atlas-home .atlas-hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 4px 18px 4px 4px;
  background: var(--wash-peach);
}
.atlas-hero-copy::before {
  content: "";
  display: block;
  width: 74px;
  height: 5px;
  margin-bottom: var(--space-4);
  background: repeating-linear-gradient(115deg, var(--terracotta) 0 8px, transparent 8px 12px,
    var(--moss) 12px 20px, transparent 20px 24px);
}
.atlas-home .atlas-hero-copy > .eyebrow { margin: 0; }
.atlas-home .atlas-hero-copy h1 {
  margin-block: var(--space-3);
  font-size: clamp(2.25rem, 3.75vw, 3.75rem);
  line-height: 1.08;
}
.atlas-home .atlas-hero-copy h1 em {
  margin-top: var(--space-2);
  text-wrap: balance;
}
.atlas-home .atlas-hero-copy .atlas-lede { margin-block: var(--space-4); }
.atlas-home .atlas-hero-copy .destination-search { margin-top: var(--space-4); }
.atlas-home .atlas-hero-art {
  max-width: none;
  margin: auto 0 0;
  padding-top: var(--space-4);
  color: var(--soft-ink);
  background: transparent;
}
.atlas-home .atlas-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.atlas-home .atlas-hero-art figcaption { padding: var(--space-2) 0 0; }
.atlas-credentials {
  justify-content: flex-start;
  column-gap: clamp(20px, 5vw, 64px);
}
.atlas-credentials,
.destination-card .edition-label,
.park-country,
.park-summary,
.page-shell .small-note {
  font-size: var(--type-small);
  line-height: 1.5;
}
.site-header nav a { line-height: 1.35; }

.atlas-home > .atlas-day-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 4vw, 54px);
  align-items: center;
  margin-top: clamp(24px, 4vw, 48px);
  padding: clamp(20px, 3vw, 40px);
  background: var(--wash-sage);
  border-block: 1px solid var(--line);
}
.atlas-day-plan h2 {
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  margin-block: var(--space-2) var(--space-3);
  line-height: 1.12;
  max-width: 21ch;
}
.atlas-day-plan .button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
}
.atlas-day-plan .small-note { color: var(--soft-ink); }

@media (max-width: 760px) {
  .atlas-home .atlas-hero { padding-top: var(--space-4); }
  .atlas-home .atlas-hero-copy h1 { font-size: clamp(1.55rem, 7.2vw, 2.85rem); }
  .atlas-home .atlas-hero-copy .atlas-lede { margin-block: var(--space-2); }
  .atlas-home .atlas-hero-copy .destination-search { margin-block: 10px var(--space-2); }
  .atlas-home .atlas-hero-copy .scheme-home-link { margin-top: 0; }
  .atlas-hero-copy::before { margin-bottom: var(--space-2); }
}

/* Featured destinations: a useful preview first, the rest in native HTML disclosure.
   Every park/profile link remains in the document, including without JavaScript. */
.destination-more {
  margin-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.destination-more > summary {
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 18px 14px;
  font-size: 1rem;
  font-weight: 650;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  list-style-position: inside;
}
.destination-more > summary:hover {
  border-color: var(--moss);
}
.destination-more > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.destination-more > .destination-collection {
  padding-top: clamp(22px, 3vw, 34px);
}

/* Homepage park finder */
.destination-search input { min-height: 44px; color: var(--ink); }
.destination-search button { min-height: 44px; }
.destination-search :is(input, button, a):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.destination-status { margin: var(--space-2) 0 0; }
.destination-status:empty { margin: 0; }
.destination-results {
  list-style: none;
  padding: 4px;
  margin: 4px 0 0;
  max-height: 16rem;
  overflow: auto;
  scroll-padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.destination-results li + li { border-top: 1px solid var(--line); }
.destination-results a, .destination-fallback a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  overflow-wrap: anywhere;
}
.destination-result-place { color: var(--soft-ink); font-size: var(--type-small); }
.destination-fallback { margin: 0; }
.destination-fallback a { width: fit-content; }
.destination-more[open] > summary > span { transform: rotate(180deg); }

.atlas-home .scheme-home-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  margin-top: 4px;
}
.atlas-home .atlas-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  align-items: baseline;
}
.atlas-home .atlas-map-jump { display: none; }
@media (max-width: 760px) {
  .atlas-home .atlas-map-jump { display: inline-flex; }
  .atlas-home .atlas-hero-links .scheme-home-link span { display: none; }
}
.atlas-home .atlas-brief-link { margin-block-end: 0; }
.atlas-home .atlas-trip-planning > div { grid-column: 1 / -1; }
.atlas-home .atlas-trip-planning a,
.atlas-home .atlas-brief-link a {
  display: inline-block;
  min-height: 44px;
  padding-block: 10px;
}
.atlas-home .home-access-guides { padding-block: clamp(24px, 5vw, 52px); }

/* Give the featured guides an editorial lead, then a compact set of places to browse. */
.atlas-home .atlas-trip-planning {
  gap: var(--space-6);
  margin: clamp(24px, 4vw, 48px) 0 0;
  border: 0;
  padding: 0;
}
.atlas-home .atlas-trip-planning h2,
.atlas-home .atlas-trip-planning h3 { margin-block: 0 var(--space-2); }
.atlas-home .atlas-trip-planning article { padding-top: var(--space-3); }
.atlas-home .atlas-trip-planning article:nth-of-type(2) { border-color: var(--olive); }
.atlas-home .atlas-trip-planning article:nth-of-type(3) { border-color: var(--moss); }
.atlas-home .home-access-guides .park-guide-disclosure {
  border-block: 1px solid var(--line);
  padding: var(--space-2) var(--space-4);
  background: var(--wash-peach);
}
.atlas-home .home-access-guides + .atlas-section {
  border-top: 1px solid var(--line);
  padding-top: clamp(26px, 5vw, 60px);
}
.atlas-home .destination-card h3 a {
  min-height: 44px;
  align-items: center;
  gap: var(--space-2);
}
.atlas-home .destination-card h3 a span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  font-size: 0;
  color: var(--moss);
}
.atlas-home .destination-card h3 a span[aria-hidden="true"]::before,
.atlas-home .destination-card h3 a span[aria-hidden="true"]::after {
  content: "";
  grid-area: 1 / 1;
}
.atlas-home .destination-card h3 a span[aria-hidden="true"]::before {
  width: 14px;
  border-top: 2px solid currentColor;
}
.atlas-home .destination-card h3 a span[aria-hidden="true"]::after {
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(3px) rotate(45deg);
}
.atlas-home .destination-card:focus-within { border-bottom-color: var(--moss); }
.atlas-home .destination-card .eyebrow { overflow-wrap: anywhere; }
.atlas-home .destination-card .destination-drawing { background: var(--cream); }
.atlas-home .destination-card .destination-drawing img { transition: none; }
.atlas-home .destination-card:hover img { transform: none; }
.atlas-home .destination-card-copy > p:not(.eyebrow) {
  min-height: 0;
  margin-block: var(--space-2) 0;
}
@media (min-width: 1024px) {
  [aria-labelledby="destinations-title"] > .destination-collection {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(-n+2) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    padding: var(--space-2);
    gap: var(--space-4);
    border: 1px solid var(--line);
    background: var(--wash-sage);
  }
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(2) {
    background: var(--wash-peach);
  }
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(-n+2) .destination-card-copy {
    padding: var(--space-2);
  }
}
@media (min-width: 761px) {
  .atlas-home .atlas-trip-planning { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1051px) {
  .atlas-home .atlas-trip-planning { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(n+3) {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
  }
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(n+3) .destination-drawing {
    flex: 1 1 76px;
    min-width: 0;
  }
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(n+3) .destination-card-copy {
    flex: 3 1 10rem;
    min-width: 0;
    padding: 0;
  }
  [aria-labelledby="destinations-title"] > .destination-collection > .destination-card:nth-child(n+3) h3 {
    font-size: 1.35rem;
  }
}

/* Homepage trip-planning cards and access-need links (16 November 2026). */
.atlas-home .atlas-trip-planning { gap: var(--space-4); }
.atlas-home .atlas-trip-planning > div { margin-bottom: var(--space-2); }
.atlas-home .atlas-trip-planning article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--terracotta);
  padding: var(--space-4);
  background: var(--surface);
}
.atlas-home .atlas-trip-planning article:nth-of-type(2) { border-color: var(--line); border-top-color: var(--olive); }
.atlas-home .atlas-trip-planning article:nth-of-type(3) { border-color: var(--line); border-top-color: var(--moss); }
.atlas-home .atlas-trip-planning article:nth-of-type(4) { border-top-color: var(--ink); }
.atlas-home .atlas-trip-planning article p { flex: 1; }
.atlas-home .atlas-trip-planning .trip-icon {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--moss);
}
.atlas-home .home-needs { padding-block: clamp(24px, 5vw, 52px) var(--space-4); }
.atlas-home .home-needs-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}
.atlas-home .home-needs-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px var(--space-4);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.atlas-home .home-needs-list a:hover,
.atlas-home .home-needs-list a:focus-visible {
  border-color: var(--ink);
  text-decoration: underline;
}
.atlas-home .home-needs-more { line-height: 2.75; }
