.ft-canvas {
  --ft-ink: #273e32;
  --ft-green: #54725a;
  --ft-rust: #ad7056;
  --ft-paper: #f8f8f0;
  background-color: var(--ft-paper);
  background-image: radial-gradient(circle, rgba(92,103,76,.23) .78px, transparent .9px);
  background-position: 7px 7px;
  background-size: 17px 17px;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 365px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  color: var(--ft-ink);
  font-family: var(--sans, "DM Sans", Arial, sans-serif);
  container-type: inline-size;
}
.ft-canvas *, .ft-canvas *::before, .ft-canvas *::after { box-sizing: border-box; }
.ft-canvas:focus-visible { outline: 2px solid #66866f; outline-offset: -3px; }
.ft-canvas.ft-panning, .ft-canvas.ft-panning * { cursor: grabbing !important; }
.ft-paper, .ft-generation-labels { position: absolute; inset: 0; overflow: hidden; }
.ft-paper, .ft-generation-labels { clip-path: inset(48px 0 var(--ft-footer, 50px)); }
.ft-generation-labels { pointer-events: none; }
.ft-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ft-edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.ft-line {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: calc(2px * var(--ft-stroke-scale, 1));
}
.ft-parent { stroke: #587351; }
.ft-adoptive {
  stroke: #795e89;
  stroke-dasharray: calc(7.5px * var(--ft-stroke-scale, 1)) calc(4px * var(--ft-stroke-scale, 1));
}
.ft-spouse { stroke: #9f5d42; stroke-width: calc(3px * var(--ft-stroke-scale, 1)); }
.ft-sibling {
  stroke: #4c6c86;
  stroke-dasharray: calc(.65px * var(--ft-stroke-scale, 1)) calc(4.25px * var(--ft-stroke-scale, 1));
}
.ft-card, .ft-chart-card { width: 232px; height: 102px; }
.ft-card {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 12px 15px;
  font: inherit;
  color: var(--ft-ink);
  background: #fffefa;
  border: 1px solid #d3d5c6;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(46,52,31,.055),0 5px 13px rgba(46,52,31,.045);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease, background-color .15s ease;
}
.ft-card.ft-focus {
  border: 1.5px solid #6b836c;
  background: #fcfdf6;
  box-shadow: 0 0 0 3px rgba(110,132,95,.085),0 4px 10px rgba(46,52,31,.07);
}
.ft-card:hover, .ft-card:focus-visible, .ft-card.ft-selected {
  border-color: #507155;
  box-shadow: 0 0 0 3px rgba(93,120,90,.13), 0 5px 16px rgba(46,52,31,.10);
}
.ft-card:focus-visible { outline: 2px solid #4f6e56; outline-offset: 3px; }
.ft-avatar {
  position: relative;
  flex: 0 0 54px;
  height: 54px;
  width: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #435844;
  background: #e4e8d8;
  border-radius: 50%;
  font: 500 23px/1 var(--serif, Georgia, serif);
  letter-spacing: -.04em;
}
.ft-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ft-card-text { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; }
.ft-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 20px/1.22 var(--serif, Georgia, serif);
  letter-spacing: -.038em;
}
.ft-subtitle {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .002em;
  color: #6b7265;
}
.ft-subtitle[lang="he"], .ft-name[lang="he"] {
  font-family: Arial, sans-serif;
  letter-spacing: normal;
}
.ft-lifespan { font-variant-numeric: tabular-nums; color: #53634f; }
.ft-two-detail-lines { padding-block: 7px; }
.ft-two-detail-lines .ft-subtitle { line-height: 1.23; }
.ft-two-detail-lines .ft-role { margin-top: 4px; }
.ft-role {
  display: inline-block;
  width: fit-content;
  margin-top: 6px;
  padding: 2px 7px;
  background: #f0f0e7;
  border-radius: 5px;
  font: 500 12px/1.18 var(--sans, "DM Sans", Arial, sans-serif);
  color: #5d6654;
}
.ft-mini { fill: #d1dbc8; stroke: #688269; stroke-width: 2px; }
.ft-mini-focus { fill: #719473; stroke: #385e42; stroke-width: 3px; }
.ft-adoptive-role { color: #68546f; background: #f0eaf2; }
.ft-generation {
  position: absolute;
  left: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #858a76;
  font: 500 12px/1.2 var(--sans, "DM Sans", Arial, sans-serif);
  letter-spacing: .065em;
  text-transform: uppercase;
}
.ft-generation::before { content: ""; width: 13px; height: 1px; background: #bac0ab; }
.ft-generation[hidden] { display: none; }
.ft-controls, .ft-legend { position: absolute; z-index: 2; }
.ft-controls { right: 16px; bottom: 15px; display: flex; gap: 7px; align-items: stretch; cursor: default; }
.ft-zoom-group, .ft-control-fit {
  display: inline-flex;
  align-items: center;
  background: #fffef9;
  border: 1px solid #d5d8cb;
  box-shadow: 0 1px 4px rgba(49,58,38,.06);
  border-radius: 8px;
}
.ft-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: transparent;
  color: #435645;
  display: inline-grid;
  place-items: center;
  width: 33px;
  min-width: 0;
  height: 33px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 7px;
}
.ft-control:hover { background: #ecf0e5; }
.ft-control:focus-visible { outline: 2px solid #59765e; outline-offset: 0; }
.ft-control:disabled { opacity: .4; cursor: default; }
.ft-control.ft-control-fit { width: 35px; height: 35px; border: 1px solid #d5d8cb; background: #fffef9; }
.ft-control.ft-control-fit:hover { background: #ecf0e5; }
.ft-zoom-value {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  border-radius: 5px;
  cursor: pointer;
  min-width: 38px;
  text-align: center;
  font: 500 12px/1.3 var(--sans, "DM Sans", Arial, sans-serif);
  font-variant-numeric: tabular-nums;
  color: #51624e;
}
.ft-zoom-value:hover { background: #ecf0e5; }
.ft-zoom-value:focus-visible { outline: 2px solid #59765e; }
.ft-legend {
  left: 16px;
  bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 182px);
  min-height: 35px;
  padding: 5px 10px;
  border: 1px solid #d5d8cb;
  border-radius: 8px;
  background: #fffef9;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #475744;
  cursor: default;
}
.ft-legend[hidden] { display: none; }
.ft-key-heading { color: #53634c; font-weight: 650; }
.ft-key { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ft-key-swatch { display: block; flex: none; width: 24px; height: 12px; }
.ft-compact .ft-card, .ft-compact .ft-chart-card { width: 148px; height: 126px; }
.ft-compact .ft-card {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 7px;
  text-align: center;
}
.ft-compact .ft-avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: 18px; }
.ft-compact .ft-card-text { width: 100%; align-items: center; }
.ft-compact .ft-name { font-size: 17px; }
.ft-compact .ft-role { margin-top: 4px; }
.ft-compact .ft-two-detail-lines { gap: 3px; padding-block: 4px; }
.ft-compact .ft-two-detail-lines .ft-avatar { width: 32px; height: 32px; flex-basis: 32px; }
.ft-compact .ft-two-detail-lines .ft-role { margin-top: 3px; }
@container (max-width: 700px) {
  .ft-generation { display: none; }
}
@container (max-width: 760px) {
  .ft-legend { display: grid; grid-template-columns: max-content max-content; gap: 3px 12px; }
  .ft-key-heading { display: none; }
}
@container (max-width: 530px) {
  .ft-legend { left: 10px; bottom: 10px; grid-template-columns: max-content; gap: 2px; max-width: none; padding: 4px 7px; }
  .ft-key-swatch { width: 21px; }
}
@container (max-width: 450px) {
  .ft-controls { right: 10px; bottom: 10px; gap: 5px; }
  .ft-four-key .ft-legend { bottom: 51px; right: 10px; grid-template-columns: max-content minmax(0,1fr); gap: 2px 10px; }
  .ft-four-key .ft-key { white-space: normal; }
}
@container (max-width: 325px) {
  .ft-legend { bottom: 51px; right: 10px; grid-template-columns: max-content minmax(0,1fr); gap: 2px 7px; }
  .ft-key { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-card { transition: none; }
}

.ft-chart-card {position:absolute;}
.ft-chart-card .ft-card {inset:0;padding:5px 12px 27px;gap:10px;}
.ft-chart-card .ft-role {position:absolute;left:10px;bottom:5px;max-width:calc(100% - 125px);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ft-chart-link {position:absolute;right:8px;bottom:2px;display:inline-flex;align-items:center;justify-content:center;max-width:calc(100% - 16px);min-height:24px;padding:1px 5px;border-radius:4px;color:#365a40;font:600 12px/1.25 var(--sans,"DM Sans",Arial,sans-serif);white-space:nowrap;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.ft-chart-link:hover,.ft-chart-link:focus-visible {background:#e5eddf;color:#284832;}
.ft-chart-link:focus-visible {outline:2px solid #53755a;outline-offset:0;}
.ft-compact .ft-chart-card .ft-card {display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:30px auto;align-content:center;justify-items:center;gap:3px 4px;padding:4px 7px 30px;}
.ft-compact .ft-chart-card .ft-avatar {grid-column:1/-1;grid-row:1;width:30px;height:30px;}
.ft-compact .ft-chart-card.ft-has-role .ft-avatar {grid-column:1;}
.ft-compact .ft-chart-card .ft-card-text {grid-column:1/-1;grid-row:2;}
.ft-compact .ft-chart-card .ft-subtitle {line-height:1.2;}
.ft-compact .ft-chart-card .ft-role {top:9px;bottom:auto;left:43px;right:6px;max-width:calc(100% - 50px);margin:0;}
.ft-compact .ft-chart-link {left:5px;right:5px;bottom:1px;max-width:none;min-height:28px;}
