@import url(fonts/fonts.css);
/* V1 Plate: one engraved figure carries the lineage. One ink, one red, paper ground. */
.pt {
  --pt-ink: var(--ink, #1e1d1a); --pt-paper: var(--paper, #f5f2ea); --pt-hi: var(--hi, #a8321c);
  --pt-soft: color-mix(in srgb, var(--pt-ink) 55%, var(--pt-paper));
  --pt-faint: color-mix(in srgb, var(--pt-ink) 20%, var(--pt-paper));
  font-family: "Old Standard TT", "Noto Serif SC", serif; color: var(--pt-ink);
  font-variant-numeric: oldstyle-nums;
}
.pt.lang-zh :lang(zh-Hans), .pt.lang-zh { font-family: "Old Standard TT", "Noto Serif SC", serif; }

/* ---------- header: compact, the graph follows at once */
.pt-head { margin: 0 0 6px; }
.pt-rh { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: .75px solid var(--pt-ink);
  font-size: 12.5px; letter-spacing: .06em; font-variant: small-caps; font-variant-numeric: lining-nums; }
.pt.lang-zh .pt-rh { font-variant: normal; letter-spacing: .02em; }
.pt-qid { letter-spacing: .02em; }
.pt-claim { font-weight: 400; font-size: 22px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.005em; }
.pt.lang-zh .pt-claim { font-size: 21px; line-height: 1.35; }
.pt-qual { margin: 0; font-size: 13px; font-style: italic; color: var(--pt-soft); line-height: 1.35; }
.pt.lang-zh .pt-qual, .pt.lang-zh .pt-span { font-style: normal; }
.pt-span { color: var(--pt-ink); font-variant-numeric: lining-nums; }
.pt-span-yrs { white-space: nowrap; }
.pt-extra { margin: 2px 0 0; font-size: 13.5px; color: var(--pt-hi); }
.pt-notices { list-style: none; margin: 6px 0 0; padding: 4px 0 4px 10px; border-left: 2px solid var(--pt-hi); font-size: 13.5px; }

.pt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pt-act { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--pt-ink); background: var(--pt-paper);
  color: var(--pt-ink); font: inherit; font-size: 14.5px; text-decoration: none; cursor: pointer; }
.pt-act:first-child { background: var(--pt-ink); color: var(--pt-paper); }
.pt-act:hover { border-color: var(--pt-hi); }

/* ---------- the stage: a window onto the plate */
.pt-stage { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  border-top: .75px solid var(--pt-ink); border-bottom: .75px solid var(--pt-ink); height: 560px; cursor: grab;
  margin: 0 calc(-1 * min(16px, 2vw)); background: var(--pt-paper); --s: 1; --ty: 0; --ls: 1; }
.pt-stage.pt-dragging { cursor: grabbing; }
.pt-stage:focus-visible { outline: 2px solid var(--pt-hi); outline-offset: -2px; }
.pt-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pt-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.pt-labels { position: absolute; left: 0; top: 0; }

/* svg */
.pt-rule { stroke: var(--pt-ink); stroke-opacity: .2; stroke-width: .7; vector-effect: non-scaling-stroke; }
.pt-rule0 { stroke-opacity: .5; }
.pt-band-a { fill: var(--pt-ink); fill-opacity: .06; }
.pt-band-b { fill: var(--pt-ink); fill-opacity: .025; }
.pt-band-edge { stroke: var(--pt-ink); stroke-opacity: .35; stroke-width: .8; vector-effect: non-scaling-stroke; }
.pt-edge { fill: none; vector-effect: non-scaling-stroke; }
.pt-doc { stroke: color-mix(in srgb, var(--pt-ink) 80%, var(--pt-paper)); stroke-width: 1; }
.pt-teacher { stroke: var(--pt-soft); stroke-width: 1.5; stroke-dasharray: .01 3.6; stroke-linecap: round; }
.pt-typed { stroke: var(--pt-hi); stroke-width: 2; stroke-dasharray: 8 5; }
.pt-edge.pt-hi { stroke: var(--pt-hi); stroke-width: 2.6; }
.pt-teacher.pt-hi { stroke-width: 2.6; stroke-dasharray: .01 4.6; }
.pt-dot { fill: var(--pt-ink); }
.pt-dot.pt-hi { fill: var(--pt-hi); }
.pt-ring { fill: none; stroke: var(--pt-ink); stroke-width: .9; }
.pt-end { fill: none; stroke: var(--pt-ink); stroke-width: 1.3; }
.pt-end.pt-hi { stroke: var(--pt-hi); }
.pt-face-bg { fill: var(--pt-paper); }
.pt-face-tick { stroke: var(--pt-ink); stroke-width: .5; opacity: .8; }
.pt-face-out { fill: none; stroke: var(--pt-ink); stroke-width: 1.1; }
.pt-face-in { fill: none; stroke: var(--pt-ink); stroke-width: .8; }
.pt-face-img { filter: grayscale(1) contrast(.9) brightness(1.04); }
.pt-mono { font: italic 16px "Old Standard TT", "Noto Serif SC", serif; fill: var(--pt-ink); }

/* labels: HTML on the plate, counter-scaled by --ls so they stay legible when zoomed out */
.pt-l { position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px); transform-origin: 0 50%;
  transform: translateY(-50%) scale(var(--ls)); white-space: nowrap; margin: 0; border: 0; background: none;
  padding: 3px 3px; font: inherit; font-size: 14px; line-height: 1.12; color: var(--pt-ink); cursor: pointer; text-align: left;
  text-shadow: 0 0 2px var(--pt-paper), 0 0 2px var(--pt-paper), 0 0 3px var(--pt-paper); }
.pt-l:focus-visible { outline: 2px solid var(--pt-hi); outline-offset: 0; }
.pt-l:hover .pt-nm { text-decoration: underline; text-decoration-thickness: .5px; }
.pt-l > span { display: block; }
.pt-lp.pt-on .pt-nm { color: var(--pt-ink); }
.pt-fam .pt-nm { font-weight: 700; }
.pt-lf .pt-nm { font-size: 15px; font-weight: 700; }
.pt-lf.pt-on .pt-nm { color: var(--pt-hi); }
.pt-gen { font-size: 12px; font-style: italic; color: var(--pt-soft); }
.pt-lat { font-size: 11.5px; font-style: italic; color: var(--pt-soft); }
.pt-yr { font-size: 11.5px; color: var(--pt-soft); font-variant-numeric: lining-nums; }
.pt-lo { font-size: 12px; color: color-mix(in srgb, var(--pt-ink) 85%, var(--pt-paper)); }
.pt.lang-zh .pt-gen, .pt.lang-zh .pt-lat { font-style: normal; }
.pt-e { transform-origin: 50% 50%; transform: translate(-50%, -50%) scale(var(--ls)); font-size: 11px; font-style: italic;
  color: var(--pt-soft); padding: 4px 4px; font-variant-numeric: lining-nums; }
.pt-e.pt-eh { color: var(--pt-hi); }
.pt-et { transform-origin: 0 50%; transform: translateY(-50%) scale(var(--ls)); color: var(--pt-hi); font-size: 13px; }
.pt-sub { transform-origin: 50% 0; transform: translateX(-50%) scale(var(--ls)); font-size: 18px; padding: 2px 6px; }
.pt-endnote { transform-origin: 0 100%; transform: translate(-12px, -100%) scale(var(--ls)); cursor: default; font-size: 13px;
  font-style: italic; display: flex; flex-direction: column; gap: 0; }
.pt-endnote button { font: inherit; font-style: normal; color: var(--pt-hi); background: none; border: 0; padding: 3px 0; text-align: left;
  text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 2px; cursor: pointer; }
.pt.lang-zh .pt-endnote { font-style: normal; }

/* level of detail: zoomed out shows the line, faces and famous names; zoomed in shows all */
.pt-lod0 .pt-lo, .pt-lod0 .pt-eo, .pt-lod1:not(.pt-lod2) .pt-eo { display: none; }
.pt-stage:not(.pt-lod1) .pt-yr, .pt-stage:not(.pt-lod1) .pt-lat { display: none; }
.pt-stage:not(.pt-lod2) .pt-lo .pt-yr { display: none; }
.pt-lod0 .pt-eh:not(:focus-visible) { color: transparent; text-shadow: none; }

/* a label touching a gutter (axis or numerals) fades out; see clearGutters */
.pt-l { transition: opacity .12s; }
.pt-l.pt-cut { opacity: 0; pointer-events: none; }

/* gutters: years (left) and generations (right) follow the plate vertically only */
.pt-gut { position: absolute; inset: 0; pointer-events: none; }
.pt-gut::before, .pt-gut::after { content: ''; position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--pt-paper) 88%, transparent); }
.pt-gut::before { left: 0; width: 56px; border-right: .75px solid var(--pt-ink); }
.pt-gut::after { right: 0; width: 42px; }
.pt-g { position: absolute; top: calc(var(--ty) * 1px + var(--y) * var(--s) * 1px); transform: translateY(-50%); font-size: 12px; white-space: nowrap; z-index: 1; }
.pt-year { left: 0; width: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-variant-numeric: lining-nums; }
.pt-year::after { content: ''; width: 7px; height: 1px; background: var(--pt-ink); margin-right: -4px; }
.pt-mk { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--pt-ink); border: 1px solid var(--pt-ink); box-sizing: border-box; }
.pt-year.pt-est { font-style: italic; color: var(--pt-soft); }
.pt-year.pt-est .pt-mk { background: transparent; }
.pt-num { right: 3px; width: 38px; text-align: right; color: var(--pt-soft); font-size: 11px; letter-spacing: .02em; font-variant-numeric: lining-nums; }
.pt-fl { transform-origin: 100% 50%; transform: translate(-100%, -50%) scale(var(--ls)); cursor: default; font-size: 12px;
  font-style: italic; color: var(--pt-ink); letter-spacing: .01em; }
.pt.lang-zh .pt-fl, .pt.lang-zh .pt-year.pt-est { font-style: normal; }

.pt-ctl { position: absolute; right: 4px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.pt-ctl button { min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--pt-ink); background: var(--pt-paper); color: var(--pt-ink);
  font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.pt-ctl button[data-z="fit"] { font-size: 13px; font-style: italic; }

.pt-key { margin: 6px 0 0; font-size: 12.5px; color: var(--pt-soft); line-height: 1.4; }
.pt-hint { color: var(--pt-hi); font-style: italic; }
.pt-hint[hidden] { display: none; }
.pt-credit { margin: 4px 0 0; font-size: 11.5px; color: var(--pt-soft); }

@media (max-width: 759px) { .pt-rh { display: none; } }
@media (min-width: 760px) {
  .pt-claim { font-size: 34px; }
  .pt.lang-zh .pt-claim { font-size: 30px; }
  .pt-qual { font-size: 15px; }
  .pt-stage { margin: 0; }
}

/* ---------- landing: the search first */
.pt-land { max-width: 40rem; margin: 0 auto; padding-top: 4px; } /* centred on wide screens */
.pt-land .pt-land-note { margin: 8px 0 0; font-size: 14px; color: var(--pt-soft); }
.pt-land-line { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
.pt-land-search .sb-input { min-height: 56px; font-size: 21px; border: 1.5px solid var(--pt-ink); background: #fff; padding: 0 14px;
  font-family: "Old Standard TT", "Noto Serif SC", serif; }
.pt-land-search .sb-input:focus { outline: 2px solid var(--pt-hi); outline-offset: 1px; }
.pt-land-search .sb-list { background: var(--pt-paper); color: var(--pt-ink); border: 1px solid var(--pt-ink); }
.pt-land-search .sb-option.sb-active { background: var(--pt-ink); color: var(--pt-paper); }
.pt-land-ex { margin-top: 12px; }
.pt-land-ex .ex-label { margin: 0 0 6px; font-size: 13px; color: var(--pt-soft); font-style: italic; }
.pt-land-ex .examples { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pt-land-ex .examples li { border: 0; padding: 0; }
.pt-land-ex .ex-btn { display: inline-flex; flex-direction: column; justify-content: center; min-height: 40px; padding: 4px 10px; border: 1px solid var(--pt-ink);
  color: var(--pt-ink); text-decoration: none; background: var(--pt-paper); line-height: 1.2; }
.pt-land-ex .ex-btn:hover { border-color: var(--pt-hi); color: var(--pt-hi); }
.pt-land-ex .ex-name { font-size: 15px; }
.pt-land-ex .ex-line { font-size: 11.5px; color: var(--pt-soft); }
.ex-none { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--pt-soft); }
.ex-none a, .ex-none-type { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ex-none-type { font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.ex-none a:hover, .ex-none-type:hover { color: var(--pt-hi); }
.pt-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 10px 0 0;
  border-top: .75px solid var(--pt-ink); font-size: 13.5px; line-height: 1.3; }
.pt-steps li { display: flex; gap: 6px; align-items: baseline; }
.pt-step-n { font-size: 22px; color: var(--pt-hi); font-variant-numeric: lining-nums; line-height: 1; }
.pt-land-foot { margin-top: 22px; padding-top: 8px; border-top: .5px solid var(--pt-faint); font-size: 14px; color: var(--pt-soft); }
.pt-land-foot p { margin: 0 0 4px; }
.pt-land-title { font-variant: small-caps; letter-spacing: .06em; color: var(--pt-ink); }
.pt.lang-zh .pt-land-title { font-variant: normal; }

/* secondary line under the claim (M.secondaryLine) and the app's action slot */
.pt-secondary { font-style: italic; color: var(--pt-soft, #6f6a60); margin: .15rem 0 .5rem; }
.lang-zh .pt-secondary { font-style: normal; }
.pt-actions:empty { display: none; }
.pt-actions { margin: .75rem 0 .25rem; }

/* the no-advisor page: an invitation and a one-node figure (no empty plate) */
.pt-invite { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: .5rem 0 1rem; }
.pt-cta { display: inline-block; padding: .55rem 1rem; min-height: 44px; box-sizing: border-box; background: var(--ink, #1d1b18); color: var(--paper, #f6f3ec); text-decoration: none; }
.pt-cta:hover, .pt-cta:focus-visible { background: var(--hi, #8f2a1d); color: var(--paper, #f6f3ec); }
.pt-item { color: var(--hi, #8f2a1d); }
.pt-none { margin: 1rem 0 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.pt-none svg { display: block; }
.pt-none-ring { fill: none; stroke: var(--muted, #8d887d); stroke-width: 1.2; stroke-dasharray: 2 3; }
.pt-none-q { font: italic 26px "Old Standard TT", "EB Garamond", serif; fill: var(--muted, #8d887d); }
.pt-none-line { stroke: var(--hi, #8f2a1d); stroke-width: 1.6; stroke-dasharray: 1 5; stroke-linecap: round; }
.pt-none-dot { fill: var(--hi, #8f2a1d); }
.pt-none figcaption { width: 220px; text-align: center; margin: .25rem 0 0; }
.pt-none-name { font-weight: 600; }

/* landing: display headline; desktop two columns with a real card (driver decision 26.11.24) */
.pt-land h1.pt-land-line { font-family: "Old Standard TT", "Noto Serif SC", serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin: 4px 0 14px; }
.pt-land-card { display: none; }
@media (min-width: 1000px) {
  .pt-land { max-width: 1120px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; align-items: start; }
  .pt-land h1.pt-land-line { font-size: 42px; line-height: 1.12; margin: 8px 0 22px; letter-spacing: -.005em; }
  .pt-land.lang-zh h1.pt-land-line { font-size: 38px; line-height: 1.3; }
  .pt-land-card { display: block; margin: 0; }
  .pt-land-card img { display: block; width: 100%; height: auto; border: 1px solid var(--pt-rule, #d6cfc0); box-shadow: none; }
  .pt-land-card figcaption { margin-top: 8px; font-size: 14px; font-style: italic; }
  .pt-land-card figcaption a { color: var(--pt-soft, #6f6a60); }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .pt-land { grid-template-columns: minmax(0, 1fr) 400px; }
}
