.hero-directory-art {
  overflow: hidden;
  background: transparent;
}

.hero-directory-art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.hero,
.page-hero {
  background-color: #f3eddf;
}

/* Keep the identity area on the same vertical rhythm as the Listed directory. */
.hero {
  position: relative;
  display: block;
  padding: 30px clamp(22px, 8vw, 120px) 28px;
}
.hero-title-row {
  --title-size: clamp(2.55rem, 5.25vw, 5.1rem);
  position: relative;
  z-index: 2;
  gap: clamp(14px, 2.2vw, 34px);
  width: max-content;
  max-width: 100%;
}
.hero-title-row h1,
.hero .hero-title-row h1 {
  font-size: var(--title-size);
  font-weight: 600;
  line-height: .9;
}
.hero-directory-art {
  flex: 0 0 clamp(130px, 14vw, 210px);
  width: clamp(130px, 14vw, 210px);
  height: calc(var(--title-size) * 1.55);
}
.hero .intro { margin: 18px 0 16px; }

/* Match the shared public header used by the Open, Listed and Multiplex sites. */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  height: 82px;
  min-height: 82px;
  padding: 0 clamp(22px, 5vw, 72px);
}

.masthead .brand { gap: 10px; min-width: 0; }
.masthead .brand-logo-link { flex: 0 0 60px; width: 60px; height: 60px; }
.masthead .brand-icon { width: 60px; height: 60px; }
.masthead .brand-copy {
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
}
.masthead .brand-title { font-size: .95rem; line-height: 1; }
.masthead .brand-credit {
  margin: 0;
  padding-left: 14px;
  font-size: .62rem;
  line-height: 1.15;
}
.masthead .site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 4px;
}
.masthead .site-nav > a,
.masthead .site-nav > a.active {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.masthead .site-nav > a:hover,
.masthead .site-nav > a.active { color: var(--ink); }
.masthead .site-nav > a.active { border-bottom-color: var(--red); }
.masthead .site-nav-stack {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 480px;
}
.masthead .site-nav-row { display: contents; }
.masthead .site-nav a[hidden] { display: none; }
.map-panel-head button{min-height:42px;padding:0 16px;border:1px solid rgba(255,255,255,.65);border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}.map-panel-head button:hover,.map-panel-head button:focus-visible{border-color:#fff;background:rgba(255,255,255,.1)}.map-panel-head button:disabled{cursor:wait;opacity:.65}.map-status{display:flex;justify-content:space-between;gap:16px}.map-status p{margin:7px 0 0;color:#c6d2d9;font-size:.7rem}.map-status #location-status{text-align:right}.record-distance{margin:8px 0 0!important;color:var(--red)!important;font-size:.75rem!important;font-weight:700}
.masthead .site-nav-row > a,
.masthead .site-nav-row > a.active {
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
}
.masthead .site-nav-row:first-child > a { font-weight: 700; }

/* Match the Listed directory search and filter geometry. */
.search-filter-layout {
  grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  max-width: 1200px;
}
.search-shell { height: 58px; }
.search-shell svg { width: 23px; margin: 0 18px 0 23px; }
.search-shell input { height: 100%; }
.search-shell button {
  margin: 0 14px 0 0;
  padding: 0;
  background: transparent;
  color: var(--red);
  font-size: .7rem;
  text-transform: uppercase;
}
.search-hint { margin: 11px 0 0 2px; }
.hero-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px 8px;
}
.nation-filters { display: contents; }
.nation-filter {
  width: 100%;
  min-height: 35px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .28);
  font-size: .68rem;
  font-weight: 700;
}
.nation-filter.active { border-color: var(--red); background: var(--red); color: #fff; }
.nation-filter:first-child { grid-column: 1; grid-row: 1; }
.nation-filter:nth-child(2) { grid-column: 1; grid-row: 2; }
.nation-filter:nth-child(3) { grid-column: 2; grid-row: 2; }
.nation-filter:nth-child(4) { grid-column: 3; grid-row: 2; }
.nation-filter:nth-child(5) { grid-column: 4; grid-row: 2; }
.hero-grade-filter {
  display: flex !important;
  grid-column: 2 / 5;
  grid-row: 1;
  align-items: center;
  gap: 10px !important;
  white-space: nowrap;
}
.hero-grade-filter select {
  min-width: 0;
  flex: 1;
  height: auto;
  padding: 8px 28px 8px 10px;
  border-radius: 0;
}

.stats .stat {
  border-right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.stats .stat:first-child {
  grid-column: 1 / -1;
}

.stats .stat:nth-child(2),
.stats .stat:nth-child(4) {
  border-right: 1px solid rgba(255, 255, 255, .24);
}

.stats .stat:nth-child(4),
.stats .stat:nth-child(5) {
  border-bottom: 0;
}

.record {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
}

.record-thumbnail {
  display: block;
  width: 112px;
  height: 84px;
  overflow: hidden;
  background: var(--cream);
}

.record-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease;
}

.record-thumbnail:hover img {
  transform: scale(1.04);
}

.map-popup-thumbnail { display: block; margin: -2px -2px 10px; }
.map-popup-thumbnail img { display: block; width: 220px; max-width: 100%; height: 120px; object-fit: cover; }

.detail-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  align-items: stretch;
  gap: 24px;
}

.detail-layout > .detail-visuals { height: 100%; }

.detail-map {
  height: 420px;
  min-height: 0;
}

.detail-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-image img { display: block; width: 100%; }

.more-information { margin: 28px 0; text-align: right; }
.more-information summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.more-information summary::marker { content: ""; }
.more-information summary::before {
  content: "›";
  display: inline-block;
  font-size: 1.35em;
  line-height: 1;
  transform-origin: center;
  transition: transform .16s ease;
}
.more-information[open] summary::before { transform: rotate(90deg); }
.more-information > div { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 14px; }
.more-information a { color: var(--red); font-weight: 700; }
.more-information-direct a { display: inline-flex; padding: 14px 20px; border: 1px solid var(--red); text-decoration: none; letter-spacing: .06em; text-transform: uppercase; }

.detail-actions { display: flex; align-items: center; gap: 12px; }
.detail-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.detail-actions a:hover,
.detail-actions a:focus-visible { background: var(--red); color: #fff; }

.image-lightbox {
  width: min(94vw, 1280px);
  max-width: none;
  max-height: 94vh;
  padding: 18px;
  border: 0;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
}
.image-lightbox::backdrop { background: rgba(12,28,39,.82); }
.image-lightbox figure { margin: 0; text-align: center; }
.image-lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; }
.image-lightbox figcaption { margin-top: 10px; color: #555; }
.image-lightbox > .lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.image-lightbox > .lightbox-navigation {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 2.8rem;
  line-height: .8;
  cursor: pointer;
}
.image-lightbox > .lightbox-previous { left: 28px; }
.image-lightbox > .lightbox-next { right: 28px; }
.image-lightbox > .lightbox-navigation:hover,
.image-lightbox > .lightbox-navigation:focus-visible,
.image-lightbox > .lightbox-close:hover,
.image-lightbox > .lightbox-close:focus-visible { background: var(--red); }
.image-lightbox > .lightbox-navigation[hidden] { display: none; }

@media (max-width: 1000px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-map {
    grid-row: 1;
    height: 350px;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .masthead { height: auto; min-height: 82px; align-items: flex-start; padding-top: 22px; padding-bottom: 18px; }
  .search-filter-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .masthead { height: 86px; min-height: 86px; padding: 12px 18px; }
  .masthead .brand { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px; width: 100%; }
  .masthead .brand-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
  .masthead .brand-title { font-size: .82rem; letter-spacing: .065em; }
  .masthead .brand-credit { padding-left: 0; border-left: 0; font-size: .52rem; letter-spacing: .055em; }
  .masthead .site-nav { position: absolute; top: 86px; right: 0; left: 0; z-index: 90; justify-content: center; overflow-x: auto; padding: 8px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .masthead .site-nav-stack { width: min(480px, 100%); margin: 0 auto; }
  .masthead .site-nav-row > a,
  .masthead .site-nav-row > a.active { padding: 0 5px; font-size: .72rem; }
  .hero { margin-top: 84px !important; padding: 26px 20px 25px; }
  .hero-title-row { --title-size: clamp(2rem, 8.4vw, 3.2rem); gap: 12px; }
  .hero-directory-art { flex-basis: clamp(76px, 21vw, 96px); width: clamp(76px, 21vw, 96px); height: calc(var(--title-size) * 1.45); }
  .hero-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nation-filter:nth-child(n),
  .hero-grade-filter { grid-column: auto; grid-row: auto; }
  .hero-grade-filter { grid-column: 1 / -1; }
  .detail-facts { grid-template-columns: 1fr; }
  .more-information > div { flex-direction: column; align-items: flex-end; }
  .detail-actions { flex-wrap: wrap; }
  .record {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
  }

  .record-thumbnail {
    width: 92px;
    height: 72px;
  }

  .record-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}
