/* family-tree.css: the family tree (tree.html, written by scripts/build-tree-page.py, drawn by assets/family-tree.js).
   TREE40, 18 Nov 2026. All rules are .ft-. The page's frame (header, sections) is assets/start-page.css.
   The connecting lines are borders, so they print. Wide: a chart, parents above and children below. Narrow
   (.ft-outline, set by the script when the frame is under 700px): the same tree as an outline down the page. */
.ft-main { --ft-ink: #1c2a3f; --ft-line: #5d6b82; --ft-card: #fffaf0; --ft-edge: rgba(28, 42, 63, 0.62); --ft-soft: #5a4a2c; --ft-gold: #6b5220; --ft-ground: #fdfaf3; --ft-gap: 22px; }
.ft-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.ft-main button, .ft-panel button, .ft-main input { font-family: inherit; }

/* the marks: a filled, a half-filled and an empty circle; a dashed circle for "possibly". They take the color of the text beside them. */
.ft-mark { flex: none; display: inline-block; vertical-align: -1px; overflow: visible; }
.ft-mark circle { fill: none; stroke: currentColor; stroke-width: 1.6; }
.ft-mark path { fill: currentColor; stroke: none; }
.ft-mark-full circle { fill: currentColor; }
.ft-mark-dash circle { stroke-dasharray: 2.3 1.9; }

/* tools: three views and the search */
.ft-tools { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; justify-content: space-between; margin: 0 0 0.7rem; }
.ft-views { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.ft-tools-l { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ft-gold); margin-right: 0.2rem; }
.ft-view { font: 600 0.92rem/1.2 "Source Serif 4", Georgia, serif; padding: 0.42rem 0.85rem; min-height: 2.75rem; border: 1px solid var(--ft-edge); border-radius: 999px; background: var(--ft-card); color: var(--ft-ink); cursor: pointer; }
.ft-view:hover { border-color: var(--ft-ink); }
.ft-view[aria-pressed="true"] { background: #1c2a3f; border-color: #1c2a3f; color: #ffffff; }
.ft-find { position: relative; flex: 1 1 15rem; max-width: 22rem; }
.ft-find input { width: 100%; box-sizing: border-box; font: 400 1rem/1.3 "Source Serif 4", Georgia, serif; padding: 0.5rem 0.8rem; min-height: 2.75rem; border: 1px solid var(--ft-edge); border-radius: 6px; background: #ffffff; color: #1c2a3f; }
.ft-find input::placeholder { color: #5a5348; opacity: 1; }
.ft-hits { display: none; position: absolute; z-index: 40; top: calc(100% + 3px); left: 0; right: 0; margin: 0; padding: 0.25rem; list-style: none; max-height: 22rem; overflow: auto; background: #ffffff; border: 1px solid var(--ft-edge); border-radius: 6px; box-shadow: 0 8px 22px rgba(20, 31, 48, 0.2); }
.ft-hits.ft-on { display: block; }
.ft-hits li { margin: 0; }
.ft-hits button { display: block; width: 100%; text-align: left; font: 600 0.96rem/1.3 "Source Serif 4", Georgia, serif; padding: 0.5rem 0.6rem; min-height: 2.75rem; border: 0; border-radius: 4px; background: none; color: #1c2a3f; cursor: pointer; }
.ft-hits button:hover, .ft-hits button:focus-visible { background: #f1e7cf; }
.ft-hits small { font-weight: 400; font-size: 0.84rem; color: #4a3f30; margin-left: 0.3rem; }
.ft-hits .ft-none { padding: 0.5rem 0.6rem; font-size: 0.95rem; color: #4a3f30; }
.ft-trail { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; margin: 0 0 0.6rem; font-weight: 700; font-size: 1.08rem; color: var(--ft-ink); min-height: 2.2rem; }
.ft-print-title, .ft-print-from { display: none; }

/* the frame: wider than the text column on a wide screen; the chart scrolls sideways inside it when it has to */
.ft-frame { box-sizing: border-box; width: min(100vw - 2.5rem, 100rem); margin-left: 50%; transform: translateX(-50%); border: 1px solid rgba(190, 150, 70, 0.8); border-radius: 6px; background: var(--ft-ground); }
.ft-scroll { overflow: auto; overscroll-behavior-x: contain; border-radius: 6px; }
.ft-scroll:focus-visible { outline: 3px solid #b8741a; outline-offset: 2px; }
.ft-tree { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; width: max-content; min-width: 100%; padding: 1.2rem 1.1rem 1.5rem; color: var(--ft-ink); }
.ft-noscript { padding: 0.8rem 1rem; border: 1px solid rgba(190, 150, 70, 0.8); border-radius: 6px; background: var(--ft-card); }
/* without the script there is no chart: its frame, its tools and the two buttons below are put away, and the sentence in <noscript> stands */
html:not(.ft-js) :is(.ft-frame, .ft-tools, .ft-trail, .ft-row) { display: none; }
.ft-main .stx-kicker, .stx-hero .stx-brow { font-size: 0.8125rem; }   /* the kit's small lines, at 13px on this page */

/* the chart */
.ft-kids { position: relative; display: flex; justify-content: center; list-style: none; margin: 0; padding: var(--ft-gap) 0 0; }
.ft-kids::before { content: ""; position: absolute; top: 0; left: calc(50% - 1px); height: var(--ft-gap); border-left: 2px solid var(--ft-line); }
.ft-node { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: var(--ft-gap) 6px 0; }
.ft-node::before, .ft-node::after { content: ""; position: absolute; top: 0; height: var(--ft-gap); box-sizing: border-box; }
.ft-node::before { left: 0; width: 100%; border-top: 2px solid var(--ft-line); }
.ft-node::after { left: calc(50% - 1px); border-left: 2px solid var(--ft-line); }
.ft-node:first-child::before { left: 50%; width: 50%; }
.ft-node:last-child::before { width: 50%; }
.ft-node:only-child::before { display: none; }
.ft-node.ft-dash::after { border-left-style: dashed; }
.ft-root { padding-top: 0; }
.ft-root::before, .ft-root > .ft-node::before, .ft-root > .ft-node::after { display: none; }
.ft-root > .ft-node { padding-top: 0; }
.ft-box { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ft-genlabel { font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ft-gold); }

/* a person */
.ft-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 8.6rem; min-height: 3.5rem; padding: 0.45rem 0.55rem 0.5rem; text-align: left; border: 1px solid var(--ft-edge); border-radius: 6px; background: var(--ft-card); color: var(--ft-ink); cursor: pointer; font: 400 0.9rem/1.25 "Source Serif 4", Georgia, serif; }
.ft-card:hover { border-color: var(--ft-ink); box-shadow: 0 2px 8px rgba(20, 31, 48, 0.16); }
.ft-card:focus-visible, .ft-view:focus-visible, .ft-more:focus-visible, .ft-switch button:focus-visible, .ft-quiet:focus-visible, .ft-find input:focus-visible, .ft-link:focus-visible, .ft-btn:focus-visible, .ft-x:focus-visible, .ft-main summary:focus-visible, .ft-main a:focus-visible { outline: 3px solid #b8741a; outline-offset: 2px; }
.ft-n { font-weight: 700; font-size: 0.95rem; line-height: 1.2; overflow-wrap: anywhere; }
.ft-r { font-style: italic; font-size: 0.8125rem; line-height: 1.25; }
.ft-y { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.ft-y .ft-to { margin: 0 1px; }
.ft-tag { display: inline-block; align-self: flex-start; font: 700 0.8125rem/1.3 "Source Serif 4", Georgia, serif; font-style: italic; color: var(--ft-gold); }
.ft-card.ft-center { background: #1c2a3f; border-color: #1c2a3f; color: #ffffff; }
.ft-card.ft-center .ft-tag { color: #f1dca4; }
.ft-card.ft-maybe { border: 2px dashed var(--ft-line); padding: calc(0.45rem - 1px) calc(0.55rem - 1px); }
.ft-card.ft-out { border-style: dotted; border-width: 2px; padding: calc(0.45rem - 1px) calc(0.55rem - 1px); }

/* a couple: side by side at the top of the chart, one above the other further down, so that a line from the parents
   always ends on the son or daughter and never on the husband or wife */
.ft-couple { position: relative; display: flex; flex-direction: column; align-items: center; }
.ft-knot { position: relative; display: flex; align-items: center; gap: 4px; padding: 6px 0; font-size: 0.84rem; line-height: 1.2; white-space: nowrap; color: var(--ft-soft); }
.ft-knot::before, .ft-knot::after { content: ""; position: absolute; left: calc(50% - 1px); height: 5px; border-left: 2px solid var(--ft-line); }
.ft-knot::before { top: 0; }
.ft-knot::after { bottom: 0; }
.ft-side { flex-direction: row; }
.ft-side > .ft-knot { padding: 0 12px; }
.ft-side > .ft-knot::before, .ft-side > .ft-knot::after { top: calc(50% - 1px); bottom: auto; height: 0; width: 10px; border-left: 0; border-top: 2px solid var(--ft-line); }
.ft-side > .ft-knot::before { left: 0; }
.ft-side > .ft-knot::after { left: auto; right: 0; }
.ft-poss > .ft-side > .ft-knot::before, .ft-poss > .ft-side > .ft-knot::after { border-top-style: dashed; }
/* the line from between a couple side by side down to their children */
.ft-node:has(> .ft-kids) > .ft-box > .ft-side:not(.ft-single)::after { content: ""; position: absolute; left: calc(50% - 1px); top: calc(50% + 12px); bottom: -6px; border-left: 2px solid var(--ft-line); }

/* the small buttons of the chart */
.ft-more { font: 600 0.84rem/1.2 "Source Serif 4", Georgia, serif; padding: 0.3rem 0.65rem; min-height: 2.25rem; border: 1px solid var(--ft-edge); border-radius: 999px; background: transparent; color: var(--ft-ink); cursor: pointer; white-space: nowrap; }
.ft-more:hover { border-color: var(--ft-ink); background: var(--ft-card); }
.ft-switch { display: flex; gap: 3px; }
.ft-switch button { font: 600 0.8125rem/1.2 "Source Serif 4", Georgia, serif; padding: 0.25rem 0.5rem; min-height: 2.25rem; border: 1px solid var(--ft-edge); border-radius: 4px; background: transparent; color: var(--ft-ink); cursor: pointer; }
.ft-switch button[aria-pressed="true"] { background: #1c2a3f; border-color: #1c2a3f; color: #ffffff; }
.ft-ups { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 0 0 0.7rem; }
.ft-nopar { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.6rem; }
.ft-empty { font-style: italic; font-size: 0.95rem; color: var(--ft-soft); }
.ft-poss { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ft-stem { display: block; height: 26px; border-left: 2px dashed var(--ft-line); margin-bottom: 2px; }

/* narrow: the outline */
.ft-tree.ft-outline { width: auto; min-width: 0; align-items: stretch; padding: 0.9rem 0.7rem 1.1rem; }
.ft-outline .ft-kids { display: block; padding: 0 0 0 14px; }
.ft-outline .ft-kids::before { display: none; }
.ft-outline .ft-node { display: block; padding: 10px 0 0 18px; }
.ft-outline .ft-node::before { display: block; left: 0; top: 0; width: 16px; height: 38px; border-top: 0; border-left: 2px solid var(--ft-line); border-bottom: 2px solid var(--ft-line); }
.ft-outline .ft-node::after { left: 0; top: 38px; bottom: 0; height: auto; border-left: 2px solid var(--ft-line); }
.ft-outline .ft-node:last-child::after { display: none; }
.ft-outline .ft-node.ft-dash::before { border-left-style: dashed; border-bottom-style: dashed; }
.ft-outline .ft-root { padding-left: 0; }
.ft-outline .ft-root > .ft-node { padding: 0; }
.ft-outline .ft-root > .ft-node::before, .ft-outline .ft-root > .ft-node::after { display: none; }
.ft-outline .ft-box { align-items: flex-start; }
.ft-outline .ft-card { width: min(100%, 19rem); min-height: 3.2rem; }
.ft-outline .ft-couple { flex-direction: column; align-items: flex-start; width: 100%; }
.ft-outline .ft-knot, .ft-outline .ft-side > .ft-knot { padding: 3px 0 3px 12px; }
.ft-outline .ft-knot::before, .ft-outline .ft-knot::after, .ft-outline .ft-couple::after { display: none !important; }
.ft-outline .ft-poss { align-items: flex-start; left: 0 !important; }
.ft-outline .ft-stem { margin-left: 14px; height: 18px; }
.ft-outline .ft-ups { justify-content: flex-start; }
.ft-outline .ft-more { min-height: 2.75rem; padding: 0.4rem 0.9rem; }
.ft-outline .ft-switch button { min-height: 2.75rem; padding: 0.35rem 0.75rem; }

/* the legend, with the build's count for each level */
.ft-legend { margin: 1rem 0 0.6rem; padding: 0.9rem 1.1rem 1rem; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: var(--ft-card); color: #3a3226; }
.ft-legend h3 { margin: 0 0 0.3rem; font-size: 1.08rem; color: var(--ft-ink); }
.ft-progress { margin: 0 0 0.7rem; font-size: 1rem; }
.ft-legend ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem 1.2rem; }
.ft-legend li { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0; font-size: 0.92rem; line-height: 1.4; }
.ft-legend li > .ft-mark { margin-top: 0.28rem; width: 14px; height: 14px; color: var(--ft-ink); }
.ft-legend b { color: var(--ft-ink); font-size: 0.98rem; }
.ft-count { display: inline-block; min-width: 1.5em; padding: 0 0.45em; margin-left: 0.15em; border-radius: 999px; background: #1c2a3f; color: #ffffff; font: 700 0.8125rem/1.55 -apple-system, "Segoe UI", Roboto, sans-serif; text-align: center; font-variant-numeric: tabular-nums; vertical-align: 0.08em; }
.ft-dashline { flex: none; width: 26px; margin-top: 0.62rem; border-top: 2px dashed var(--ft-line); }
.ft-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; margin: 0.7rem 0 0; font-size: 0.9rem; color: var(--ft-soft); }
.ft-quiet { font: 600 0.9rem/1.2 "Source Serif 4", Georgia, serif; padding: 0.4rem 0.8rem; min-height: 2.75rem; border: 1px solid var(--ft-edge); border-radius: 6px; background: transparent; color: var(--ft-ink); cursor: pointer; }
.ft-quiet:hover { border-color: var(--ft-ink); background: var(--ft-card); }
.ft-row > span { flex: 1 1 18rem; }

/* the open question and the list of everyone */
.ft-oq .ft-lead { margin: 0 0 0.6rem; }
.ft-oq .ft-who { margin: 0 0 0.3rem; font-weight: 700; font-size: 1.08rem; }
.ft-oq p { max-width: 46rem; }
.ft-main details.ft-ruled, .ft-main details.ft-all { margin: 0.9rem 0 0; padding: 0; border: 1px solid rgba(190, 150, 70, 0.6); border-radius: 6px; background: var(--ft-card); }
.ft-main details.ft-ruled > summary, .ft-main details.ft-all > summary { padding: 0.75rem 1rem; font-weight: 700; color: var(--ft-ink); cursor: pointer; }
.ft-ruled ul { margin: 0; padding: 0 1rem 0.2rem 2.2rem; }
.ft-ruled li { margin: 0.25rem 0; }
.ft-ruled p { margin: 0.4rem 1rem 0.9rem; }
.ft-all ul { list-style: none; margin: 0; padding: 0.2rem 1rem 1rem; columns: 3 15rem; column-gap: 1.6rem; }
.ft-all li { margin: 0; padding: 0.28rem 0; break-inside: avoid; line-height: 1.35; }
.ft-all a { font-weight: 600; }
.ft-small { font-size: 0.84rem; }
.ft-all .ft-small { color: var(--ft-soft); white-space: nowrap; }

/* the side panel: a drawer at the right on a wide screen, a sheet from the bottom on a phone */
.ft-panel { position: fixed; z-index: 1300; top: 0; right: 0; bottom: 0; box-sizing: border-box; width: min(27rem, 100vw); padding: 1.1rem 1.25rem 2rem; overflow: auto; overscroll-behavior: contain; background: #fffdf7; color: #2c2620; border-left: 1px solid rgba(190, 150, 70, 0.9); box-shadow: -10px 0 30px rgba(20, 31, 48, 0.25); font: 400 1rem/1.5 "Source Serif 4", "Iowan Old Style", Georgia, serif; }
.ft-panel[hidden] { display: none; }
.ft-x { position: sticky; top: 0; float: right; width: 2.75rem; height: 2.75rem; margin: -0.4rem -0.5rem 0 0.5rem; border: 1px solid rgba(28, 42, 63, 0.42); border-radius: 999px; background: #fffdf7; color: #1c2a3f; font: 400 1.5rem/1 Georgia, serif; cursor: pointer; }
.ft-panel h2 { margin: 0.2rem 0 0.2rem; padding: 0; border: 0; font-size: 1.4rem; line-height: 1.2; color: #1c2a3f; }
.ft-panel p { margin: 0.2rem 0 0.5rem; }
.ft-panel .ft-tag { color: #6b5220; font-size: 0.95rem; }
.ft-panel dl { margin: 0.7rem 0 0; }
.ft-panel dt { margin: 0.85rem 0 0.1rem; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #6b5220; }
.ft-panel dd { margin: 0; }
.ft-lv { display: flex; gap: 0.45rem; align-items: flex-start; margin: 0.25rem 0 0; font-size: 0.9rem; line-height: 1.4; color: #3a3226; }
.ft-lv .ft-mark { margin-top: 0.27rem; color: #1c2a3f; }
.ft-lv b { color: #1c2a3f; }
.ft-link { display: inline; padding: 0; border: 0; background: none; font: 600 1rem/1.5 "Source Serif 4", Georgia, serif; color: #7a5514; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.ft-panel dd .ft-link { padding: 0.18rem 0; }
.ft-panel .ft-small { color: #4a3f30; }
.ft-panel a { color: #7a5514; }
.ft-panel details { margin: 0.4rem 0 0; font-size: 0.92rem; }
.ft-panel details > summary { cursor: pointer; font-weight: 600; color: #1c2a3f; padding: 0.25rem 0; }
.ft-panel details ul { margin: 0.2rem 0 0.3rem; padding-left: 1.1rem; }
.ft-panel details li { margin: 0.25rem 0; overflow-wrap: anywhere; }
.ft-panel dd.ft-note { line-height: 1.5; }
.ft-panel ul.ft-rests { margin: 0.2rem 0 0.3rem; padding-left: 1.1rem; font-size: 0.92rem; }
.ft-panel ul.ft-rests li { margin: 0.25rem 0; overflow-wrap: anywhere; }
.ft-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 0; }
.ft-btn { display: inline-flex; align-items: center; font: 600 0.95rem/1.2 "Source Serif 4", Georgia, serif; padding: 0.5rem 0.95rem; min-height: 2.75rem; box-sizing: border-box; border: 1px solid rgba(28, 42, 63, 0.5); border-radius: 6px; background: transparent; color: #1c2a3f; text-decoration: none; cursor: pointer; }
.ft-panel a.ft-btn { color: #1c2a3f; }
.ft-btn-main { background: #1c2a3f; border-color: #1c2a3f; color: #ffffff; }

/* dark theme */
html.theme-dark .ft-main { --ft-ink: #f6f1e7; --ft-line: #b9a77c; --ft-card: #1f2e45; --ft-edge: rgba(216, 179, 102, 0.62); --ft-soft: #d9cfb8; --ft-gold: #e0bf78; --ft-ground: #16223a; }
html.theme-dark .ft-view[aria-pressed="true"], html.theme-dark .ft-switch button[aria-pressed="true"] { background: #e8cd8a; border-color: #e8cd8a; color: #141f30; }
html.theme-dark .ft-card.ft-center { background: #e8cd8a; border-color: #e8cd8a; color: #141f30; }
html.theme-dark .ft-card.ft-center .ft-tag { color: #4a3508; }
html.theme-dark .ft-find input, html.theme-dark .ft-hits { background: #1f2e45; color: #f6f1e7; border-color: rgba(216, 179, 102, 0.55); }
html.theme-dark .ft-find input::placeholder { color: #cfc4ab; }
html.theme-dark .ft-hits button { color: #f6f1e7; }
html.theme-dark .ft-hits button:hover, html.theme-dark .ft-hits button:focus-visible { background: #2b3d5a; }
html.theme-dark .ft-hits small, html.theme-dark .ft-hits .ft-none { color: #d9cfb8; }
html.theme-dark .ft-frame, html.theme-dark .ft-legend, html.theme-dark .ft-main details.ft-ruled, html.theme-dark .ft-main details.ft-all { border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .ft-legend { color: #d9cfb8; }
html.theme-dark .ft-count { background: #e8cd8a; color: #141f30; }
html.theme-dark .ft-panel { background: #18243a; color: #e9dfc8; border-left-color: rgba(216, 179, 102, 0.6); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); }
html.theme-dark .ft-x { background: #18243a; color: #f6f1e7; border-color: rgba(216, 179, 102, 0.55); }
html.theme-dark .ft-panel h2, html.theme-dark .ft-lv b, html.theme-dark .ft-panel details > summary { color: #f6f1e7; }
html.theme-dark .ft-lv .ft-mark { color: #f6f1e7; }
html.theme-dark .ft-panel dt, html.theme-dark .ft-panel .ft-tag { color: #e0bf78; }
html.theme-dark .ft-lv, html.theme-dark .ft-panel .ft-small { color: #d9cfb8; }
html.theme-dark .ft-link, html.theme-dark .ft-panel a { color: #e8cd8a; }
html.theme-dark .ft-btn, html.theme-dark .ft-panel a.ft-btn { color: #f6f1e7; border-color: rgba(216, 179, 102, 0.6); }
html.theme-dark .ft-btn-main { background: #e8cd8a; border-color: #e8cd8a; color: #141f30; }
html.theme-dark .ft-card:focus-visible, html.theme-dark .ft-view:focus-visible, html.theme-dark .ft-more:focus-visible, html.theme-dark .ft-quiet:focus-visible, html.theme-dark .ft-find input:focus-visible, html.theme-dark .ft-link:focus-visible, html.theme-dark .ft-btn:focus-visible, html.theme-dark .ft-x:focus-visible, html.theme-dark .ft-scroll:focus-visible { outline-color: #e8cd8a; }

@media (max-width: 900px) {
  .ft-legend ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ft-frame { width: auto; margin-left: 0; transform: none; }
  .ft-find { max-width: none; flex-basis: 100%; }
  .ft-legend ul { grid-template-columns: 1fr; }
  .ft-panel { top: auto; left: 0; width: auto; max-height: 82vh; padding: 0.9rem 1.1rem 1.6rem; border-left: 0; border-top: 1px solid rgba(190, 150, 70, 0.9); border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgba(20, 31, 48, 0.3); }
  .ft-all ul { columns: 1; }
}

/* on paper: the chart as it stands on the screen, fitted to the width of a landscape page by the script (--ft-zoom),
   or as the outline when it is too wide for one page (.ft-print-outline) */
@media print {
  @page { size: landscape; margin: 12mm; }
  html.ft-js { font-size: 16px; }   /* the chart keeps the measures it has on the screen, so the script's fit to the page holds */
  .stx-hero, .ft-tools, #ft-home, .ft-row, .ft-panel, .ft-more, .ft-switch, .ft-ups, .ft-oq, .ft-everyone, .site-foot-shared { display: none !important; }
  .ft-tree button.ft-card { display: flex !important; }   /* the site's print rules put every button away; a person's card is a button */
  .ft-main { --ft-ink: #000000; --ft-line: #333333; --ft-card: #ffffff; --ft-edge: #555555; --ft-soft: #222222; --ft-gold: #222222; --ft-ground: #ffffff; padding: 0; max-width: none; }
  .ft-main .ft-sec { padding-top: 0; }
  .ft-trail { display: none; }
  .ft-print-title { display: block; margin: 0 0 4mm; font: 700 16pt/1.2 "Source Serif 4", Georgia, serif; color: #000; }
  .ft-print-from { display: block; margin: 3mm 0 0; font-size: 9.5pt; color: #000; }
  .ft-frame { width: auto; margin: 0; transform: none; border: 0; background: none; }
  .ft-scroll { overflow: visible; }
  .ft-tree { zoom: var(--ft-zoom, 1); padding: 0; min-width: 0; margin: 0 auto; }
  .ft-card, .ft-card.ft-center { background: #ffffff; color: #000000; border-color: #555555; box-shadow: none; break-inside: avoid; }
  .ft-card.ft-center { border: 2px solid #000000; }
  .ft-card.ft-center .ft-tag { color: #000; }
  .ft-node, .ft-couple, .ft-box { break-inside: avoid; }
  .ft-legend { box-sizing: border-box; max-width: 100%; border-color: #777; background: none; color: #000; break-inside: avoid; margin: 5mm 1px 0; padding: 3mm 4mm; }
  .ft-legend ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-legend li { font-size: 9.5pt; }
  .ft-count { background: none; color: #000; border: 1px solid #555; }
  /* the outline on paper: the same rules as .ft-outline */
  .ft-tree.ft-print-outline { width: auto; align-items: stretch; }
  .ft-print-outline .ft-kids { display: block; padding: 0 0 0 14px; }
  .ft-print-outline .ft-kids::before { display: none; }
  .ft-print-outline .ft-node { display: block; padding: 8px 0 0 18px; break-inside: auto; }
  .ft-print-outline .ft-node::before { display: block; left: 0; top: 0; width: 16px; height: 32px; border-top: 0; border-left: 2px solid var(--ft-line); border-bottom: 2px solid var(--ft-line); }
  .ft-print-outline .ft-node::after { left: 0; top: 32px; bottom: 0; height: auto; border-left: 2px solid var(--ft-line); }
  .ft-print-outline .ft-node:last-child::after { display: none; }
  .ft-print-outline .ft-node.ft-dash::before { border-left-style: dashed; border-bottom-style: dashed; }
  .ft-print-outline .ft-root { padding-left: 0; }
  .ft-print-outline .ft-root > .ft-node { padding: 0; }
  .ft-print-outline .ft-root > .ft-node::before, .ft-print-outline .ft-root > .ft-node::after { display: none; }
  .ft-print-outline .ft-box { align-items: flex-start; }
  .ft-print-outline .ft-card { width: 19rem; min-height: 0; }
  .ft-print-outline .ft-couple { flex-direction: column; align-items: flex-start; }
  .ft-print-outline .ft-knot, .ft-print-outline .ft-side > .ft-knot { padding: 2px 0 2px 12px; }
  .ft-print-outline .ft-knot::before, .ft-print-outline .ft-knot::after, .ft-print-outline .ft-couple::after { display: none !important; }
  .ft-print-outline .ft-poss { align-items: flex-start; left: 0 !important; }
  .ft-print-outline .ft-stem { margin-left: 14px; height: 14px; }
}
