.site-entry-paths {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 8px;
  inline-size: min(100%, 39rem);
  margin-block: 12px 8px;
}
body[data-home-dashboard] .site-entry-paths--records {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:has(> .shared-site-header) #main .site-entry-paths > a {
  box-sizing: border-box;
  justify-content: center;
  padding: 6px 8px;
  min-inline-size: 0;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  font-size: 16px !important;
  line-height: 1.25;
}

@layer site-reading {
  body:has(> .shared-site-header) #main .site-entry-paths > a { min-block-size: 52px !important; }

  @media (min-width: 1001px) {
    body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-area { min-block-size: 74px !important; }
    body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-company { min-block-size: 56px !important; }
    body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-report { min-block-size: 68px !important; }
  }

  @media (min-width: 1500px) {
    body[data-map-page="japan"] #main[data-active-tab="regions"]:has(> .site-entry-paths) #panel-regions .dashboard-side {
      padding-block-start: 86px !important;
    }
  }
}

body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-area {
  background: #173759 !important;
  border-color: #87baff !important;
  font-weight: 750 !important;
}

body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-area:hover {
  background: #20466e !important;
}

body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-company {
  border-color: #87baff !important;
  font-weight: 600 !important;
}

body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-report {
  background: #1a70e6 !important;
  font-weight: 700 !important;
}

body:has(> .shared-site-header) #main .site-entry-paths > .site-entry-report:hover {
  background: #1262ce !important;
}

.world-page #main .explorer-heading > .site-entry-paths {
  margin-block: 0;
}

.company-banner > .site-entry-paths {
  margin-block: 0 14px;
}

body[data-map-page="japan"] #main[data-active-tab="public-reports"] > .site-entry-paths {
  display: none;
}

@media (min-width: 1150px) and (max-width: 1499px) {
  body[data-map-page="japan"] #main[data-active-tab="regions"] > .site-entry-paths {
    clear: both;
  }
}

@media (min-width: 1500px) {
  /* The Japan map title is in the left rail. Use the right rail for this
     navigation without taking vertical area from the central map. */
  body[data-map-page="japan"] #main[data-active-tab="regions"] > .site-entry-paths {
    position: absolute;
    z-index: 2;
    inset-block-start: 8px;
    inset-inline-end: 12px;
    inline-size: var(--japan-side-column);
    margin: 0;
  }
}

@media (max-width: 500px) {
  .site-entry-paths { align-items: stretch; gap: 6px; }

  body:has(> .shared-site-header) #main .site-entry-paths > a { padding-inline: 4px; }
}
