/* Extracted from static/family-tree/my_academic_tree.html for the native Hugo page. */
#family-tree-native {
  color-scheme: light;
  --bg: var(--background-color);
  --panel: var(--secondary-color);
  --panel-soft: #fbfcfe;
  --control-bg: #ffffff;
  --ink: var(--text-color);
  --muted: var(--text-secondary-color);
  --line: rgba(36, 41, 47, 0.16);
  --link: var(--text-link-color);
  --shadow: rgba(31, 35, 40, 0.06);
  --canvas-bg: #fbfcfe;
  --axis-bg: rgba(251, 252, 254, 0.94);
  --tick: #8c959f;
  --edge: #b6c2d2;
  --edge-muted: #8c959f;
  --edge-strong: #7d8ca3;
  --edge-warn: #bf8700;
  --warn-bg: #fff4ce;
  --warn-ink: #7a5200;
  --warn-line: #eac54f;
  --manual-bg: #ddf4ff;
  --manual-ink: #0550ae;
  --manual-line: #54aeef;
  --success-bg: #dafbe1;
  --success-ink: #116329;
  --success-line: #7ee787;
  --neutral-bg: #f6f8fa;
  --error-bg: #ffebe9;
  --error-ink: #8c1d18;
  --map-confidence-ink: #24292f;
  --map-confidence-stroke: #ffffff;
  --highlight-fill: #fff8c5;
  --selected-fill: #ddf4ff;
  --selected-stroke: #0550ae;
  --collapsed-stroke: #8250df;
  --map-highlight-shadow: rgba(9, 105, 218, 0.2);
}
body.dark #family-tree-native,
html.dark #family-tree-native {
  color-scheme: dark;
  --panel-soft: #24282f;
  --control-bg: #1f2329;
  --line: rgba(228, 230, 235, 0.18);
  --shadow: rgba(0, 0, 0, 0.28);
  --canvas-bg: #181b20;
  --axis-bg: rgba(24, 27, 32, 0.94);
  --tick: #8b949e;
  --edge: #5f6f83;
  --edge-muted: #8b949e;
  --edge-strong: #9aa7b8;
  --edge-warn: #d29922;
  --warn-bg: rgba(187, 128, 9, 0.2);
  --warn-ink: #d29922;
  --warn-line: rgba(210, 153, 34, 0.5);
  --manual-bg: rgba(56, 139, 253, 0.16);
  --manual-ink: #79c0ff;
  --manual-line: rgba(121, 192, 255, 0.48);
  --success-bg: rgba(35, 134, 54, 0.2);
  --success-ink: #7ee787;
  --success-line: rgba(126, 231, 135, 0.48);
  --neutral-bg: rgba(139, 148, 158, 0.14);
  --error-bg: rgba(248, 81, 73, 0.16);
  --error-ink: #ff7b72;
  --map-confidence-ink: #e6edf3;
  --map-confidence-stroke: #0d1117;
  --highlight-fill: #3a3220;
  --selected-fill: #0b3b55;
  --selected-stroke: #79c0ff;
  --collapsed-stroke: #d2a8ff;
  --map-highlight-shadow: rgba(121, 192, 255, 0.22);
}
#family-tree-native {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}
#family-tree-native .academic-tree-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
#family-tree-native h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: 0;
}
#family-tree-native .meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
#family-tree-native .doc-wrap,

#family-tree-native .leaf-wrap,

#family-tree-native .fame-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px var(--shadow);
}
#family-tree-native .doc-wrap p,

#family-tree-native .doc-wrap li,

#family-tree-native .leaf-wrap li,

#family-tree-native .fame-wrap li {
  color: var(--muted);
  font-size: 14px;
}
#family-tree-native .doc-wrap p {
  margin: 0 0 10px;
}
#family-tree-native .doc-wrap ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
#family-tree-native .doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 24px;
}
#family-tree-native .section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  cursor: pointer;
  list-style: none;
}
#family-tree-native .section-summary::-webkit-details-marker {
  display: none;
}
#family-tree-native .section-summary::marker {
  content: "";
}
#family-tree-native .section-title {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0;
}
#family-tree-native .section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}
#family-tree-native .section-toggle::before {
  content: "+";
}
#family-tree-native .leaf-wrap[open] > .section-summary,

#family-tree-native .fame-wrap[open] > .section-summary {
  margin-bottom: 12px;
}
#family-tree-native .leaf-wrap[open] > .section-summary .section-toggle::before,

#family-tree-native .fame-wrap[open] > .section-summary .section-toggle::before {
  content: "-";
}
#family-tree-native .fame-description {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
#family-tree-native .fame-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 10px 14px;
}
#family-tree-native .fame-list li {
  min-width: 0;
}
#family-tree-native .fame-bucket {
  margin: 16px 0 0;
}
#family-tree-native .fame-bucket:first-of-type {
  margin-top: 0;
}
#family-tree-native .fame-bucket-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}
#family-tree-native .fame-bucket-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}
#family-tree-native .fame-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  background: var(--panel-soft);
  overflow: hidden;
  transition: opacity 120ms ease, border-color 120ms ease, background 120ms ease;
}
#family-tree-native .fame-card[open] {
  background: var(--panel);
}
#family-tree-native .fame-card.map-hidden {
  opacity: 0.58;
}
#family-tree-native .fame-card.not-on-map {
  border-style: dashed;
}
#family-tree-native .fame-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  min-width: 0;
  cursor: pointer;
  list-style: none;
}
#family-tree-native .fame-card summary::-webkit-details-marker {
  display: none;
}
#family-tree-native .fame-card summary::marker {
  content: "";
}
#family-tree-native .fame-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--control-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}
#family-tree-native .fame-summary-main {
  min-width: 0;
}
#family-tree-native .fame-name {
  display: block;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}
#family-tree-native .fame-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
#family-tree-native .fame-map-status {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  background: var(--success-bg);
  color: var(--success-ink);
  border: 1px solid var(--success-line);
}
#family-tree-native .fame-card.map-hidden .fame-map-status {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-line);
}
#family-tree-native .fame-card.not-on-map .fame-map-status {
  background: var(--neutral-bg);
  color: var(--muted);
  border-color: var(--line);
}
#family-tree-native .fame-detail {
  padding: 0 10px 10px 54px;
  color: var(--muted);
  font-size: 13px;
}
#family-tree-native .fame-detail p {
  margin: 6px 0;
}
#family-tree-native .fame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
#family-tree-native .fame-actions button {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control-bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
#family-tree-native .fame-actions button:hover {
  border-color: var(--link);
  color: var(--link);
}
#family-tree-native .fame-actions button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}
@media (max-width: 560px) {
  #family-tree-native .fame-list {
    grid-template-columns: 1fr;
  }
  #family-tree-native .fame-card summary {
    grid-template-columns: auto minmax(0, 1fr);
  }
  #family-tree-native .fame-map-status {
    grid-column: 2;
    justify-self: start;
  }
  #family-tree-native .fame-detail {
    padding-left: 10px;
  }
}
#family-tree-native .leaf-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 10px 14px;
}
#family-tree-native .leaf-list li {
  min-width: 0;
}
#family-tree-native .leaf-list details {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  background: var(--panel-soft);
  overflow: hidden;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
#family-tree-native .leaf-list details:hover,
#family-tree-native .leaf-list details[open] {
  background: var(--panel);
  border-color: var(--link);
  box-shadow: 0 1px 2px var(--shadow);
}
#family-tree-native .leaf-list summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
#family-tree-native .leaf-list summary::-webkit-details-marker {
  display: none;
}
#family-tree-native .leaf-list summary::marker {
  content: "";
}
#family-tree-native .leaf-list summary a,

#family-tree-native .leaf-list summary .name {
  overflow-wrap: anywhere;
}
#family-tree-native .leaf-list summary a {
  color: var(--ink);
  font-weight: 750;
}
#family-tree-native .leaf-list summary a:hover {
  color: var(--link);
}
#family-tree-native .leaf-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--control-bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}
#family-tree-native .leaf-toggle::before {
  content: "+";
}
#family-tree-native .leaf-list details[open] > summary .leaf-toggle::before {
  content: "-";
}
#family-tree-native .leaf-summary-main {
  min-width: 0;
}
#family-tree-native .leaf-status {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  background: var(--neutral-bg);
  color: var(--muted);
  border: 1px solid var(--line);
}
#family-tree-native .leaf-status-not-expanded {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-color: var(--warn-line);
}
#family-tree-native .leaf-status-unresolved {
  background: var(--manual-bg);
  color: var(--manual-ink);
  border-color: var(--manual-line);
}
#family-tree-native .leaf-status-expanded {
  background: var(--success-bg);
  color: var(--success-ink);
  border-color: var(--success-line);
}
#family-tree-native .leaf-status-unexplored {
  background: var(--neutral-bg);
  color: var(--muted);
}
@media (max-width: 560px) {
  #family-tree-native .leaf-list summary {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  #family-tree-native .leaf-status {
    grid-column: 2;
    justify-self: start;
  }
}
#family-tree-native .leaf-detail {
  margin: 0;
  padding: 0 10px 10px 48px;
  color: var(--muted);
  font-size: 13px;
}
#family-tree-native .leaf-detail p {
  margin: 5px 0;
}
#family-tree-native .leaf-detail ul {
  margin: 5px 0 0;
  padding-left: 18px;
}
#family-tree-native .leaf-detail li {
  margin: 2px 0;
}
#family-tree-native .tree-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  box-shadow: 0 1px 2px var(--shadow);
}
#family-tree-native .map-shell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px var(--shadow);
}
#family-tree-native .map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
#family-tree-native .map-tools button {
  min-width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--control-bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
#family-tree-native .map-tools button:hover {
  border-color: var(--link);
  color: var(--link);
}
#family-tree-native .map-tools button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}
#family-tree-native .map-tools button:disabled:hover {
  border-color: var(--line);
  color: var(--muted);
}
#family-tree-native .map-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
#family-tree-native .map-filter input[type="range"] {
  width: 180px;
  accent-color: var(--link);
  cursor: pointer;
}
#family-tree-native .map-filter output {
  min-width: 34px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
@media (max-width: 720px) {
  #family-tree-native .map-filter {
    margin-left: 0;
  }
}
#family-tree-native .map-canvas {
  overflow: auto;
  max-height: 82vh;
  background: var(--canvas-bg);
}
#family-tree-native .map-canvas svg {
  display: block;
  background: var(--canvas-bg);
}
#family-tree-native .map-depth-axis {
  position: sticky;
  bottom: 0;
  z-index: 4;
  height: 46px;
  min-width: 100%;
  background: var(--axis-bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 2px var(--shadow);
}
#family-tree-native .map-depth-track {
  position: relative;
  height: 46px;
}
#family-tree-native .map-depth-line {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  border-top: 1px solid var(--line);
}
#family-tree-native .map-depth-title {
  position: absolute;
  left: 24px;
  top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
#family-tree-native .map-depth-tick {
  position: absolute;
  top: 12px;
  width: 1px;
  height: 12px;
  background: var(--tick);
}
#family-tree-native .map-depth-label {
  position: absolute;
  top: 25px;
  width: 34px;
  margin-left: -17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  letter-spacing: 0;
}
#family-tree-native .map-edge {
  fill: none;
  stroke: var(--edge);
  stroke-width: 1.2;
  opacity: 0.85;
  transition: opacity 120ms ease, stroke 120ms ease, stroke-width 120ms ease;
}
#family-tree-native .map-edge.hidden,

#family-tree-native .map-edge-label.hidden,

#family-tree-native .map-node.hidden {
  display: none;
}
#family-tree-native .tree-map.inspecting .map-edge:not(.highlight) {
  opacity: 0.16;
}
#family-tree-native .tree-map.inspecting .map-edge-label:not(.highlight) {
  opacity: 0.14;
}
#family-tree-native .tree-map.inspecting .map-node:not(.highlight) {
  opacity: 0.24;
}
#family-tree-native .map-edge.highlight {
  stroke: var(--link);
  stroke-width: 3;
  opacity: 1;
}
#family-tree-native .map-edge.shortcut {
  stroke-dasharray: 6 4;
}
#family-tree-native .map-edge.confidence-possible {
  stroke: var(--edge-warn);
  stroke-dasharray: 3 4;
  opacity: 0.78;
}
#family-tree-native .map-edge.confidence-probable {
  stroke: var(--edge-muted);
}
#family-tree-native .map-edge.confidence-direct,

#family-tree-native .map-edge.confidence-formal {
  stroke: var(--edge-strong);
}
#family-tree-native .map-edge-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
#family-tree-native .map-edge-label rect {
  fill: var(--canvas-bg);
  stroke: var(--line);
  stroke-width: 1;
  rx: 5;
}
#family-tree-native .map-edge-label text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: middle;
}
#family-tree-native .map-edge-label.important {
  opacity: 0.78;
}
#family-tree-native .map-edge-label.highlight {
  opacity: 1;
}
#family-tree-native .map-edge-label.highlight rect {
  stroke: var(--link);
}
#family-tree-native .map-edge-label.highlight text {
  fill: var(--link);
}
#family-tree-native .map-edge-label.confidence-possible text,

#family-tree-native .map-edge-label.confidence-probable text {
  fill: var(--warn-ink);
}
#family-tree-native .map-node {
  cursor: pointer;
  transition: opacity 120ms ease;
}
#family-tree-native .map-node.leaf {
  cursor: pointer;
}
#family-tree-native .map-node .map-card {
  fill: var(--node-fill, #ffffff);
  stroke: var(--node-stroke, var(--line));
  stroke-width: 1;
  rx: 4;
}
body.dark #family-tree-native .map-node .map-card,
html.dark #family-tree-native .map-node .map-card {
  fill: color-mix(in srgb, var(--node-fill, #ffffff) 28%, #0d1117);
  stroke: color-mix(in srgb, var(--node-stroke, var(--line)) 75%, #e6edf3);
}
#family-tree-native .map-node text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 650;
  pointer-events: none;
}
#family-tree-native .map-node .map-toggle {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 750;
  pointer-events: none;
}
#family-tree-native .map-node .map-collapse-control {
  cursor: pointer;
}
#family-tree-native .map-node .map-toggle-hit {
  fill: transparent;
  stroke: none;
}
#family-tree-native .map-node .map-open {
  fill: var(--link);
  font-size: 14px;
  pointer-events: auto;
}
#family-tree-native .map-node .map-dates {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
#family-tree-native .map-node .map-confidence {
  fill: var(--map-confidence-ink);
  stroke: var(--map-confidence-stroke);
  stroke-width: 2.4px;
  paint-order: stroke;
  font-size: 10px;
  font-weight: 800;
  text-anchor: end;
}
#family-tree-native .map-node.collapsed .map-card {
  stroke: var(--collapsed-stroke);
  stroke-width: 1.6;
}
#family-tree-native .map-node:hover .map-card {
  stroke: var(--link);
  stroke-width: 1.5;
}
#family-tree-native .map-node.highlight .map-card {
  fill: var(--highlight-fill);
  stroke: var(--link);
  stroke-width: 2;
  filter: drop-shadow(0 1px 3px var(--map-highlight-shadow));
}
#family-tree-native .map-node.selected .map-card {
  fill: var(--selected-fill);
  stroke: var(--selected-stroke);
  stroke-width: 2.4;
}
#family-tree-native h2 {
  margin: 20px 0 10px;
  font-size: 16px;
  letter-spacing: 0;
}
#family-tree-native ul.tree,

#family-tree-native .tree ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
#family-tree-native .tree ul {
  margin-left: 16px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
#family-tree-native .tree li {
  margin: 8px 0;
  min-width: 260px;
}
#family-tree-native .tree details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
#family-tree-native .tree details > summary::-webkit-details-marker {
  display: none;
}
#family-tree-native .tree details > summary::marker {
  content: "";
}
#family-tree-native .tree details > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--control-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}
#family-tree-native .tree details[open] > summary::before {
  content: "-";
}
#family-tree-native .tree li > .person {
  margin-left: 24px;
}
#family-tree-native .person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  white-space: nowrap;
}
#family-tree-native a {
  color: var(--link);
  text-decoration: none;
  font-weight: 650;
}
#family-tree-native a:hover {
  text-decoration: underline;
}
#family-tree-native .tree details > summary .person {
  margin-left: 0;
}
#family-tree-native .badge {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 650;
  background: var(--warn-bg);
  color: var(--warn-ink);
}
#family-tree-native .badge.error {
  background: var(--neutral-bg);
  color: var(--muted);
  border: 1px solid var(--line);
}
#family-tree-native .badge.manual {
  background: var(--manual-bg);
  color: var(--manual-ink);
}
#family-tree-native .name {
  font-weight: 650;
}
#family-tree-native .note {
  color: var(--muted);
  font-size: 13px;
  white-space: normal;
}

#family-tree-native {
  min-height: calc(100vh - 72px);
}
