.search{
  width:100%;
  padding:12px;
  font-size:16px;
  margin-bottom:18px;
}

.layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:18px;
}

.results{
  max-height:70vh;
  overflow:auto;
  border-right:1px solid #ddd;
}

.person{
  padding:10px;
  cursor:pointer;
  border-radius:8px;
}

.person:hover{
  background:#f3f3f3;
}

.name{
  font-weight:600;
}

.years{
  color:#666;
  font-size:13px;
}

.card{
  margin-top:14px;
  padding:12px;
  background:#fafafa;
  border-radius:8px;
}

.link{
  color:#0b63c7;
  cursor:pointer;
}

.link:hover{
  text-decoration:underline;
}

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

  .results{
    max-height:220px;
    border-right:none;
    border-bottom:1px solid #ddd;
  }
}

.person {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.person:hover {
  background: #f1efe9;
}

.person .name {
  display: block;
  font-weight: 600;
}

.person .years {
  display: block;
  margin-top: 2px;
  color: #777;
  font-size: 12px;
}

.person-link {
  display: block;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #185ea8;
  text-align: left;
  cursor: pointer;
}

.person-link:hover {
  text-decoration: underline;
}

.link-years {
  margin-left: 6px;
  color: #777;
  font-size: 12px;
}

.relation-list {
  margin-top: 5px;
}

.detail-heading h2 {
  margin-bottom: 2px;
}

.empty {
  color: #777;
  padding: 10px;
}
