.kin-explorer {
  margin: 1.6rem 0 2.6rem;
  padding: clamp(1rem, 3.3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: #f5f4ec;
}
.kin-explorer h2 { margin: 0 0 .4rem; font: 400 clamp(1.6rem, 3vw, 2.25rem)/1.14 var(--serif); }
.kin-explorer > p { margin: .45rem 0 1rem; }
.kin-explorer [hidden] { display: none !important; }
.kin-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  margin: 1rem 0 1.15rem;
}
.kin-choices button {
  display: grid;
  gap: .18rem;
  min-height: 48px;
  padding: .65rem .85rem;
  border: 1px solid #788d7d;
  border-radius: .4rem;
  background: var(--paper);
  color: var(--forest);
  font: inherit;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.kin-choices button span { font-size: .875rem; }
.kin-choices button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: white; }
.kin-choices button[aria-pressed="true"] strong { text-decoration: underline; text-underline-offset: .2em; }
.kin-explorer :is(button, a, summary):focus-visible { outline: 3px solid #974510; outline-offset: 3px; }
.kin-panel {
  padding: clamp(.75rem, 2vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--paper);
}
.kin-panel + .kin-panel { margin-top: .7rem; }
.kin-panel h3 { margin: .05rem 0 1rem; font: 500 1.125rem/1.3 var(--sans); }
.kin-diagram {
  --kin-line: #748377;
  --kin-node: #e8ece5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(.8rem, 3vw, 1.6rem);
}
.kin-explorer[data-selected] .kin-diagram { --kin-line: var(--forest); --kin-node: #e1eadc; }
.kin-lineage { display: grid; grid-template-rows: subgrid; grid-row: span 2; position: relative; }
.kin-diagram .kin-lineage:first-child::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 100%;
  width: clamp(.8rem, 3vw, 1.6rem);
  border-top: 2px solid var(--kin-line);
}
.kin-adult, .kin-child {
  display: grid;
  place-content: center;
  padding: .58rem .4rem;
  border-radius: .35rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.35;
}
.kin-adult { border: 1px solid var(--kin-line); background: var(--kin-node); font-weight: 650; }
.kin-child { position: relative; margin-top: 1.15rem; border: 1px solid var(--kin-line); }
.kin-child::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 1.15rem;
  border-left: 2px solid var(--kin-line);
}
.kin-panel .kin-answer { margin: 1rem 0 .05rem; }
.kin-explorer .kin-source { margin: .8rem 0; font-size: .9rem; }
.kin-explorer .kin-compare { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
@media (max-width: 26rem) {
  .kin-choices button { padding: .6rem; }
  .kin-adult, .kin-child { font-size: .93rem; }
}
