:root {
  --page-bg: #f7f8f6;
  --line: #e8ebe9;
  --primary-color: #3C5F7C;
  --gold: #A9813C;
  --jade: #4F7A5E;
}
html[data-theme="dark"] {
  --ink: #E8E9E6;
  --primary-text-color: #E7E9E6;
  --primary-color: #7FA6C2;
  --jade: #86B996;
}
@media (max-width: 768px) {
}.lineage-card {
  padding: 20px;
}
.lineage-canvas {
  overflow-x: auto;
  padding-bottom: 8px;
}
.lineage-tree,
.lineage-tree ul {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lineage-tree {
  width: max-content;
  min-width: 100%;
}
.lineage-tree ul {
  position: relative;
  padding-top: 20px;
}
.lineage-tree ul.tight,
.lineage-tree.compact ul {
  width: 0;
  overflow: visible;
}
.lineage-tree li {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 20px 4px 0;
}
.lineage-tree > li {
  padding-top: 0;
}
.lineage-tree li::before,
.lineage-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  width: 50%;
  height: 20px;
  border-top: 1px solid var(--line-strong);
}
.lineage-tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid var(--line-strong);
}
.lineage-tree li:only-child::before,
.lineage-tree li:only-child::after {
  display: none;
}
.lineage-tree li:only-child {
  padding-top: 0;
}
.lineage-tree li:first-child::before,
.lineage-tree li:last-child::after {
  border: 0 none;
}
.lineage-tree li:last-child::before {
  border-right: 1px solid var(--line-strong);
  border-radius: 0 6px 0 0;
}
.lineage-tree li:first-child::after {
  border-radius: 6px 0 0 0;
}
.lineage-tree > li::before,
.lineage-tree > li::after {
  display: none;
}
.lineage-canvas > .lineage-tree + .lineage-tree {
  margin-top: 16px;
}
.lineage-tree.forest {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 20px;
}
.lineage-tree.forest > li {
  padding-top: 0;
}
.lineage-tree li > ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 20px;
  border-left: 1px solid var(--line-strong);
}
.lineage-person {
  display: flex;
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  max-width: 240px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-bg);
  color: var(--primary-text-color);
  text-align: center;
}
.lineage-couple {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.lineage-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
a.lineage-name {
  color: var(--primary-text-color);
  text-decoration: none;
}
a.lineage-name:hover {
  color: var(--primary-color);
}
a.lineage-name:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-color) 55%, transparent);
  outline-offset: 2px;
}
.lineage-name {
  display: block;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.lineage-role {
  font-size: 12px;
  color: var(--sec-text-color);
}
.lineage-note {
  max-width: 88px;
  font-size: 10px;
  color: var(--third-text-color);
  line-height: 1.5;
}
.lineage-wed {
  flex: none;
  align-self: flex-start;
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--third-text-color);
}
.lineage-house-sub {
  font-size: 12px;
  color: var(--third-text-color);
  letter-spacing: 0;
}
.lineage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.lineage-table th,
.lineage-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.lineage-table th {
  font-weight: 500;
  color: var(--sec-text-color);
}
.lineage-table tbody tr:hover {
  background: var(--surface-bg);
}
.lineage-tip {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-bg);
  color: var(--primary-text-color);
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
}
.lineage-tip.is-open {
  opacity: 1;
}
.lineage-tree [data-note] {
  cursor: help;
}
@media (max-width: 768px) {
  .lineage-card {
    padding: 12px;
  }
  .lineage-person {
    min-width: 48px;
    max-width: 120px;
    padding: 4px;
  }
  .lineage-name {
    font-size: 12px;
  }
}
.g-officials {
  --g: #3C5F7C;
}
.card .gav.g-officials,
.dhero .dav.g-officials {
  background: #3C5F7C;
  border-color: #3C5F7C;
  color: #fff;
}
.g-military {
  --g: #8C3A34;
}
.card .gav.g-military,
.dhero .dav.g-military {
  background: #8C3A34;
  border-color: #8C3A34;
  color: #fff;
}
.g-advisers {
  --g: #6E7A8A;
}
.card .gav.g-advisers,
.dhero .dav.g-advisers {
  background: #6E7A8A;
  border-color: #6E7A8A;
  color: #fff;
}
.g-family {
  --g: #A9813C;
}
.card .gav.g-family,
.dhero .dav.g-family {
  background: #A9813C;
  border-color: #A9813C;
  color: #fff;
}
.g-servants {
  --g: #8C7A64;
}
.card .gav.g-servants,
.dhero .dav.g-servants {
  background: #8C7A64;
  border-color: #8C7A64;
  color: #fff;
}
.g-others {
  --g: #6E6A63;
}
.card .gav.g-others,
.dhero .dav.g-others {
  background: #6E6A63;
  border-color: #6E6A63;
  color: #fff;
}
.dhero .dav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  font-size: 34px;
  line-height: 1;
}
.who-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 3px;
  border: 1px solid color-mix(in srgb, var(--g) 32%, transparent);
  background: color-mix(in srgb, var(--g) 8%, transparent);
  color: var(--g);
  margin-right: 4px;
}
.tl-page .who-chip,
.tl-page .box-blue {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.tl-page .tl {
  padding-left: 0;
}
.tl-page .tl-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--surface-bg);
  border-bottom: 1px dashed var(--line);
}
.tl-page .tl-item:last-child {
  border-bottom: 0;
}
.tl-page .tl-no {
  font-size: 12px;
  color: var(--third-text-color);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.tl-page .tl-body {
  min-width: 0;
  padding-left: 8px;
  border-left: 2px solid transparent;
}
.tl-page .tl-ev + .tl-ev {
  margin-top: 8px;
}
.tl-page .tl-item.major .tl-no {
  color: var(--primary-color);
}
.tl-page .tl-item.major .tl-body {
  border-left-color: color-mix(in srgb, var(--primary-color) 45%, transparent);
}
.tl-page .tl-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
}
.tl-page .tl-meta-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.tl-page .tl-meta dt {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--third-text-color);
  line-height: 22px;
}
.tl-page .tl-meta dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.tl-page .stage + .stage {
  margin-top: 20px;
}
.tl-page .stage + .stage .stage-head {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
}
@media (max-width: 768px) {
  .tl-page .tl-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 8px;
  }
  .tl-page .tl-meta-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}
.stats-volume {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}
.list-table th:nth-last-child(2),
.list-table td:nth-last-child(2),
.list-table th:last-child,
.list-table td:last-child {
  min-width: 260px;
}
.lineage-card .lineage-person {
  max-width: 300px;
}
.lineage-card .lineage-note {
  max-width: 260px;
}
.annotation-row {
  display: grid;
  grid-template-columns: 64px 132px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.annotation-row:last-child {
  border-bottom: 0;
}
@media (max-width: 768px) {
  .annotation-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .annotation-row .font-small.secondary-text-color {
    grid-column: 2;
  }
}
/*# sourceMappingURL=gc.css.map */