/* #403 Family tree: its pages (pages/family_tree*.html, js/family_tree.js, js/family_tree_view.js). Plain CSS, as
   edition_health.css and synopsis.css: output.css is precompiled Tailwind, so new utility classes would not exist.
   The same in both looks: the classic colours (bblue-500 brown, bgray-500 grey, the private beige), the look's own
   type (the new look sets its faces on <html>: --font-ui, --font-read). The tree's tip colours are Okabe and Ito's,
   each with a shape too (js/family_tree_view.js). On a phone the page never scrolls sideways: wide tables and the
   tree scroll inside their own boxes. Every class starts with ft-. */

.ft-shell {
    --ft-brown: rgb(155 115 58);        /* bblue-500 */
    --ft-brown-dark: rgb(132 98 49);    /* text and buttons on white: 5.6:1 */
    --ft-brown-deep: rgb(107 79 39);
    --ft-grey: rgb(240 240 240);        /* bgray-500 */
    --ft-line: rgb(214 211 206);
    --ft-ink: rgb(17 24 39);
    --ft-muted: rgb(82 82 82);
    --ft-beige: rgb(242 230 211);       /* the home row's parchment */
    --ft-red: rgb(185 28 28);
    --ft-red-pale: rgb(254 242 242);    /* a ground for a warning, under --ft-red or ink */
    --ft-green: rgb(4 120 87);
    /* the other places of a witness on its tree, cheapest first: one hue, darker and thicker the cheaper (every one
       4.5:1 on white or more, as text and as line) */
    --ft-place-0: rgb(8 48 107);
    --ft-place-1: rgb(8 81 156);
    --ft-place-2: rgb(33 102 172);
    --ft-place-3: rgb(66 120 170);
    --ft-place-4: rgb(100 120 145);
    --ft-ui: var(--font-ui, Montserrat, ui-sans-serif, system-ui, sans-serif);
    --ft-read: var(--font-read, 'STIX Two Text', Georgia, serif);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
}
.ft-shell *, .ft-shell *::before, .ft-shell *::after { box-sizing: border-box; }

.ft-page {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;     /* screen-reader text (ft-sr) is placed and clipped here */
    background: #fff;
    color: var(--ft-ink);
    font-family: var(--ft-ui);
    font-size: 15px;
    line-height: 1.5;
}
.ft-wrap { max-width: 78rem; margin: 0 auto; padding: .75rem 1.5rem 3rem; }
.ft-page a { color: var(--ft-brown-dark); text-decoration: underline; text-underline-offset: 2px; }
.ft-page a:hover { color: var(--ft-brown-deep); }
.ft-page :focus-visible { outline: 2px solid var(--ft-brown-dark); outline-offset: 2px; }
.ft-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0; }
.ft-page:not(.ft-ready) .ft-js { display: none !important; }
.ft-page [hidden] { display: none !important; }   /* also where a class sets display */
.ft-muted { color: var(--ft-muted); }
.ft-error { color: var(--ft-red); font-weight: 600; }
.ft-num { font-variant-numeric: tabular-nums; text-align: right; }

/* breadcrumbs */
.ft-crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .5rem; padding: 0; list-style: none;
    font-size: .875rem; }
.ft-crumbs li + li::before { content: "›"; margin-right: .25rem; color: var(--ft-muted); }
.ft-crumbs a[aria-current="page"] { color: var(--ft-ink); text-decoration: none; font-weight: 600; }

/* heading */
.ft-head { margin-bottom: 1rem; }
.ft-head h1 { margin: 0 0 .375rem; font-family: var(--ft-read); font-size: 1.75rem; line-height: 1.2; font-weight: 600;
    color: var(--ft-brown-dark); }
.ft-lead { max-width: 54rem; margin: 0 0 .5rem; font-size: 1rem; }
.ft-meta { margin: 0; color: var(--ft-muted); font-size: .9375rem; }
.ft-note { max-width: 54rem; margin: .5rem 0; padding: .5rem .75rem; border-left: 4px solid var(--ft-brown);
    background: var(--ft-beige); font-size: .9375rem; }
.ft-alpha { display: inline-block; vertical-align: middle; padding: 0 .4rem; border: 1px solid var(--ft-brown-dark);
    border-radius: 999px; color: var(--ft-brown-dark); font-family: var(--ft-ui); font-size: .625rem; font-weight: 700;
    line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.ft-default { display: inline-block; padding: 0 .375rem; border-radius: 999px; background: var(--ft-grey);
    color: var(--ft-muted); font-size: .75rem; font-weight: 600; }
.ft-foot { margin-top: 2.5rem; padding-top: .75rem; border-top: 1px solid var(--ft-line); color: var(--ft-muted);
    font-size: .8125rem; max-width: 60rem; }

/* buttons, fields */
.ft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: .5rem 0; }
.ft-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.25rem;
    padding: .25rem .75rem; border: 1px solid var(--ft-brown-dark); border-radius: .375rem; background: #fff;
    color: var(--ft-brown-dark); font: inherit; font-size: .875rem; font-weight: 600; text-decoration: none;
    cursor: pointer; }
.ft-page a.ft-button { text-decoration: none; }
.ft-button:hover:not(:disabled) { background: var(--ft-beige); color: var(--ft-brown-deep); }
.ft-button.ft-primary { background: var(--ft-brown-dark); color: #fff; }
.ft-button.ft-primary:hover:not(:disabled) { background: var(--ft-brown-deep); color: #fff; }
.ft-button.ft-danger { border-color: var(--ft-red); color: var(--ft-red); }
.ft-button:disabled { opacity: .45; cursor: not-allowed; }
.ft-button[aria-busy="true"] { cursor: progress; }
.ft-link { padding: 0; border: 0; background: none; color: var(--ft-brown-dark); font: inherit; font-size: .875rem;
    text-decoration: underline; cursor: pointer; }
.ft-chip { display: inline-flex; align-items: center; min-height: 1.75rem; padding: .0625rem .5rem;
    border: 1px solid var(--ft-line); border-radius: 999px; background: var(--ft-grey); color: var(--ft-ink);
    font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ft-chip:hover { border-color: var(--ft-brown); }
.ft-chip[aria-pressed="true"] { background: var(--ft-brown-dark); border-color: var(--ft-brown-dark); color: #fff; }
.ft-chip-small { min-height: 0; margin: 0 .125rem .125rem 0; padding: 0 .375rem; font-weight: 500; font-size: .75rem;
    cursor: default; }
.ft-page select, .ft-page input[type="number"], .ft-page input[type="file"] { max-width: 100%; min-height: 2.25rem;
    padding: .125rem .375rem; border: 1px solid var(--ft-brown); border-radius: .25rem; background: #fff;
    color: var(--ft-ink); font: inherit; font-size: .875rem; }
.ft-page input[type="number"] { width: 5rem; }
.ft-page input[type="text"], .ft-page input[type="search"] { max-width: 100%; min-height: 2.25rem; padding: .125rem .375rem;
    border: 1px solid var(--ft-brown); border-radius: .25rem; background: #fff; color: var(--ft-ink); font: inherit;
    font-size: .875rem; }
#ft-seed { width: 8rem; }
.ft-page input[type="checkbox"], .ft-page input[type="radio"] { accent-color: var(--ft-brown-dark); width: 1rem;
    height: 1rem; margin: .2rem 0 0; flex: none; }
.ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ft-field { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .375rem; max-width: 100%; min-width: 0;
    font-size: .875rem; }
.ft-field select { min-width: 0; }
.ft-field.ft-stack { display: flex; flex-direction: column; align-items: flex-start; margin: .5rem 0; }
.ft-check, .ft-switch { display: flex; align-items: flex-start; gap: .5rem; margin: .375rem 0; cursor: pointer; }
.ft-switch { max-width: 54rem; }
.ft-why { display: block; color: var(--ft-muted); font-size: .8125rem; }
.ft-help { max-width: 54rem; margin: .375rem 0; color: var(--ft-muted); font-size: .875rem; }
.ft-choices { margin: .5rem 0; padding: 0; border: 0; min-width: 0; }
.ft-choices legend { padding: 0; margin-bottom: .125rem; }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .5rem 2rem; }
.ft-progress { color: var(--ft-muted); font-size: .875rem; }
.ft-estimate { font-size: .9375rem; }
/* the experts' settings, folded; what the server would refuse (or may fail at), said before sending */
.ft-more, .ft-view-more { margin: .5rem 0; }
.ft-more > summary, .ft-view-more > summary, .ft-again > summary { cursor: pointer; padding: .375rem 0; font-weight: 600; }
.ft-problems { margin: .25rem 0; padding-left: 1.1rem; color: var(--ft-red); font-size: .875rem; }
.ft-problems:empty { display: none; }
.ft-problems li:not(.ft-blocking) { color: var(--ft-brown-deep); }

/* the form's sections */
.ft-section { margin: 0 0 1.5rem; padding: .75rem 1rem 1rem; border: 1px solid var(--ft-line); border-radius: .5rem; }
.ft-section h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-family: var(--ft-read);
    font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.ft-step { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem;
    border-radius: 999px; background: var(--ft-brown-dark); color: #fff; font-family: var(--ft-ui); font-size: .875rem;
    flex: none; }
.ft-presets, .ft-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; margin: .5rem 0; }
.ft-only { display: inline-flex; gap: .375rem; margin-left: .5rem; }
.ft-counter { margin: .25rem 0 .5rem; font-weight: 600; }
.ft-switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 2rem; }

/* boxes that scroll sideways on their own (tables, the tree) */
.ft-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ft-scroll:focus-visible { outline: 2px solid var(--ft-brown-dark); }
#ft-picker { max-height: 32rem; overflow-y: auto; border: 1px solid var(--ft-line); border-radius: .25rem; }

/* tables */
.ft-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ft-table th, .ft-table td { padding: .3rem .5rem; border-bottom: 1px solid var(--ft-line); text-align: left;
    vertical-align: top; }
.ft-table thead th { position: sticky; top: 0; z-index: 1; background: var(--ft-grey); font-weight: 600;
    white-space: nowrap; }
.ft-table tbody tr:hover { background: rgb(155 115 58 / .08); }
.ft-picker th[scope="row"] { white-space: nowrap; }
.ft-picker label { cursor: pointer; font-weight: 600; }
.ft-edition th[scope="row"] label { font-style: italic; }
.ft-core { margin-left: .375rem; padding: 0 .3rem; border-radius: .25rem; background: var(--ft-beige);
    color: var(--ft-brown-deep); font-size: .6875rem; font-weight: 700; text-transform: uppercase; }
.ft-bar { display: inline-block; width: 4.5rem; height: .5rem; border-radius: 999px; background: var(--ft-grey);
    vertical-align: middle; overflow: hidden; }
.ft-bar-fill { display: block; height: 100%; background: var(--ft-brown); }
.ft-bar-fill.ft-low { background: rgb(190 170 140); }
.ft-bar-fill.ft-bar-missing { background: rgb(107 114 128); }
.ft-flag .ft-bar-fill.ft-bar-missing { background: var(--ft-red); }
.ft-flag th, .ft-flag .ft-bar-name { color: var(--ft-red); }
.ft-jobs td:first-child { white-space: nowrap; }
.ft-pick { white-space: nowrap; font-size: .8125rem; }
.ft-badge { display: inline-block; padding: 0 .4rem; border-radius: 999px; background: var(--ft-grey);
    font-size: .75rem; font-weight: 700; white-space: nowrap; }
.ft-badge-done { background: rgb(209 250 229); color: var(--ft-green); }
.ft-badge-running { background: var(--ft-beige); color: var(--ft-brown-deep); }
.ft-badge-queued { background: var(--ft-grey); color: var(--ft-muted); }
.ft-badge-failed, .ft-badge-cancelled { background: rgb(254 226 226); color: var(--ft-red); }
.ft-worker { margin: .25rem 0 .75rem; color: var(--ft-muted); font-size: .875rem; }
/* the quick tree of the new page (parsimony, or overall similarity): a sketch, set apart from the trees computed on
   the server */
.ft-sketch-box { margin: .5rem 0 1rem; }
.ft-sketch-box .ft-tabs { margin-top: .75rem; }
.ft-sketch-box .ft-panel > .ft-help:first-child { margin-top: .25rem; }
.ft-sketch-box .ft-progress:empty { display: none; }
.ft-sketch-box h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: .25rem 0; font-size: 1.05rem; }
.ft-sketch-box .ft-badge { color: var(--ft-muted); font-family: var(--ft-ui); font-weight: 600; }
.ft-sketch-box.ft-stale .ft-canvas { opacity: .5; }

/* the preview */
.ft-preview { margin-top: .5rem; }
.ft-preview.ft-stale > :not(.ft-stale-note) { opacity: .5; }
.ft-stale-note { margin: 0 0 .5rem; padding: .375rem .625rem; border-left: 4px solid var(--ft-red); background: rgb(254 242 242);
    font-weight: 600; }
.ft-numbers { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .125rem 1rem; margin: .5rem 0;
    font-size: .875rem; }
.ft-numbers dt { color: var(--ft-muted); }
.ft-numbers dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ft-numbers.ft-compact { font-size: .8125rem; }
.ft-warnings { margin: .5rem 0; padding: .375rem .75rem .375rem 1.75rem; border-left: 4px solid var(--ft-brown);
    background: var(--ft-beige); font-size: .875rem; }
.ft-bars { list-style: none; margin: .5rem 0; padding: 0; columns: 16rem; column-gap: 2rem; font-size: .8125rem; }
.ft-bars li { display: flex; align-items: center; gap: .5rem; break-inside: avoid; }
.ft-bar-name { width: 4.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft-preview details, .ft-side details { margin: .5rem 0; }
.ft-page summary { cursor: pointer; font-weight: 600; color: var(--ft-brown-dark); }

/* the job: progress */
.ft-status { margin: .5rem 0 1rem; }
.ft-status-line { font-size: 1.0625rem; }
.ft-progressbar { position: relative; height: .375rem; max-width: 28rem; border-radius: 999px; background: var(--ft-grey);
    overflow: hidden; }
.ft-progressbar span { position: absolute; top: 0; bottom: 0; width: 30%; border-radius: 999px; background: var(--ft-brown);
    animation: ft-slide 1.6s ease-in-out infinite; }
@keyframes ft-slide { from { left: -30%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .ft-progressbar span { animation: none; left: 0; width: 100%; opacity: .5; } }
.ft-log pre { max-height: 16rem; overflow: auto; padding: .5rem; background: var(--ft-grey); font-size: .75rem;
    white-space: pre-wrap; }

/* the tree */
.ft-warn-box { max-width: 60rem; margin: 0 0 1rem; padding: .5rem .75rem; border-left: 4px solid var(--ft-brown);
    background: var(--ft-beige); font-size: .875rem; }
.ft-warn-box p { margin: .125rem 0; }
.ft-tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--ft-brown); }
.ft-tabs [role="tab"] { padding: .375rem .875rem; border: 1px solid var(--ft-line); border-bottom: 0;
    border-radius: .375rem .375rem 0 0; background: var(--ft-grey); color: var(--ft-ink); font: inherit;
    font-size: .875rem; font-weight: 600; cursor: pointer; }
.ft-tabs [role="tab"][aria-selected="true"] { background: var(--ft-brown-dark); border-color: var(--ft-brown-dark); color: #fff; }
.ft-panel { padding: .5rem 0 1rem; }
.ft-tree-tools { padding: .5rem .75rem; background: var(--ft-grey); border-radius: .375rem; }
.ft-group-picker { font-size: .875rem; }
.ft-group-picker[open] { flex-basis: 100%; }
.ft-checks { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.ft-zoom { display: inline-flex; gap: .25rem; }
.ft-zoom .ft-button { min-width: 2.25rem; }
.ft-rootnote { margin: .25rem 0; font-size: .875rem; font-style: italic; }
.ft-keys { font-size: .8125rem; }
.ft-tap-hint .ft-keys { font-size: inherit; }  /* the keyboard's part of a hint, hidden on a phone */
.ft-canvas { max-width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--ft-line);
    border-radius: .375rem; background: #fff; max-height: 80vh; }
.ft-svg { display: block; font-family: var(--ft-ui); }
.ft-branch { fill: none; stroke: rgb(55 65 81); stroke-width: 2; }
.ft-branch.ft-weak { stroke: rgb(156 163 175); stroke-width: 1; }
.ft-branch.ft-hi { stroke: var(--ft-brown); stroke-width: 3; }
.ft-node, .ft-tip { cursor: pointer; outline: none; }
.ft-dot { fill: #fff; stroke: rgb(55 65 81); stroke-width: 1.5; }
.ft-dot.ft-has-asr { fill: var(--ft-beige); stroke: var(--ft-brown-dark); }
.ft-dot.ft-selected { fill: var(--ft-brown-dark); stroke: var(--ft-brown-deep); }
.ft-node:hover .ft-dot, .ft-node:focus .ft-dot { stroke-width: 3; }
.ft-node:focus .ft-dot, .ft-tip:focus .ft-mark { stroke: #000; stroke-width: 3; }
.ft-tip:focus .ft-label, .ft-tip:hover .ft-label { text-decoration: underline; font-weight: 700; }
.ft-mark { stroke-width: 1.5; }
.ft-mark.ft-hollow { fill: #fff; stroke-width: 2; }
.ft-label { font-size: 13px; fill: var(--ft-ink); }
.ft-label.ft-hi { font-weight: 700; fill: var(--ft-brown-deep); }
.ft-support { font-size: 10.5px; fill: rgb(31 41 55); font-weight: 600; pointer-events: none;
    paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.ft-support.ft-weak { fill: rgb(107 114 128); font-weight: 400; }
.ft-grid { stroke: rgb(229 231 235); stroke-width: 1; }
.ft-axis { font-size: 11px; fill: var(--ft-muted); }
.ft-ci { fill: rgb(156 163 175 / .55); }
.ft-range { fill: var(--ft-beige); stroke: var(--ft-brown); stroke-width: 1; }
.ft-leader { stroke: rgb(209 213 219); stroke-dasharray: 2 3; }
.ft-tangle { stroke: rgb(155 115 58 / .55); stroke-width: 1; }
.ft-tangle.ft-crossed { stroke: var(--ft-red); stroke-opacity: .6; }
.ft-sketch .ft-branch { stroke: rgb(107 114 128); stroke-dasharray: 4 3; }
.ft-fold { fill: var(--ft-beige); stroke: var(--ft-brown-dark); }
.ft-scale { stroke: rgb(55 65 81); stroke-width: 2; }
.ft-scale-label, .ft-length { font-size: 10.5px; fill: var(--ft-muted); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.ft-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: .5rem 0; font-size: .8125rem; }
.ft-legend-line { display: inline-block; width: 1.5rem; border-top: 1px solid rgb(156 163 175); vertical-align: middle; }
.ft-legend-dot { display: inline-block; width: .625rem; height: .625rem; border: 1px solid var(--ft-brown-dark);
    border-radius: 999px; background: var(--ft-beige); }
.ft-legend-title { font-weight: 700; }
.ft-legend-item { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.ft-gradient { display: inline-block; width: 7rem; height: .625rem; border-radius: 999px; }
.ft-detail { min-height: 1.5rem; max-width: 46rem; margin: .5rem 0; padding: .375rem .75rem; border-left: 3px solid var(--ft-line);
    font-size: .875rem; }
.ft-detail:empty { display: none; }
.ft-detail.ft-pinned { border-left-color: var(--ft-brown-dark); }
.ft-detail-title { margin: 0 0 .25rem; }
.ft-nested, .ft-nested ul { margin: 0; padding-left: 1.25rem; list-style: disc; font-size: .875rem; }

/* the analysis by parsimony in the browser: the places of a witness on its branches, its own branches lighter, an
   edited tree's banner (js/family_tree.js treeAnalysis, js/family_tree_view.js drawTree's marks) */
.ft-branch.ft-place-0 { stroke: var(--ft-place-0); stroke-width: 5; }
.ft-branch.ft-place-1 { stroke: var(--ft-place-1); stroke-width: 4; }
.ft-branch.ft-place-2 { stroke: var(--ft-place-2); stroke-width: 3; }
.ft-branch.ft-place-3 { stroke: var(--ft-place-3); stroke-width: 2; }
.ft-branch.ft-place-4 { stroke: var(--ft-place-4); stroke-width: 1.5; stroke-dasharray: 4 2; }
/* the second cheap place the two-places rule flags: red, however many steps it costs */
.ft-branch.ft-place-second { stroke: var(--ft-red); stroke-width: 4; stroke-dasharray: none; }
.ft-branch.ft-dim { stroke-opacity: .3; }
.ft-sketch .ft-branch.ft-place-0, .ft-sketch .ft-branch.ft-place-1, .ft-sketch .ft-branch.ft-place-2,
.ft-sketch .ft-branch.ft-place-3, .ft-sketch .ft-branch.ft-place-second { stroke-dasharray: none; }
.ft-place-text { font-size: 10.5px; font-weight: 700; pointer-events: none; paint-order: stroke; stroke: #fff;
    stroke-width: 3px; stroke-linejoin: round; }
.ft-place-text-0 { fill: var(--ft-place-0); }
.ft-place-text-1 { fill: var(--ft-place-1); }
.ft-place-text-2 { fill: var(--ft-place-2); }
.ft-place-text-3 { fill: var(--ft-place-3); }
.ft-place-text-4 { fill: var(--ft-place-4); font-weight: 600; }
.ft-place-text.ft-place-text-second { fill: var(--ft-red); font-weight: 700; }
.ft-edited { max-width: 60rem; margin: .5rem 0; padding: .375rem .75rem; border: 2px dashed var(--ft-brown-dark);
    border-radius: .375rem; background: var(--ft-beige); font-size: .875rem; }
.ft-edited p { margin: .25rem 0; }
.ft-node-tabs { margin-top: .75rem; }
.ft-summary { margin: .5rem 0; font-weight: 600; font-size: .9375rem; }
.ft-block-title { margin: .75rem 0 .25rem; font-size: .9375rem; }
.ft-verdict { max-width: 54rem; margin: .5rem 0; padding: .375rem .75rem; border-left: 4px solid var(--ft-line);
    font-size: .9375rem; }
.ft-verdict.ft-flagged { border-left-color: var(--ft-red); background: var(--ft-red-pale); }
.ft-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
    text-align: left; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
th[aria-sort="ascending"] .ft-sort::after { content: " ▲"; }
th[aria-sort="descending"] .ft-sort::after { content: " ▼"; }
.ft-changes-table td:nth-child(2), .ft-changes-table td:nth-child(3) { font-family: var(--ft-read); font-size: .9375rem;
    word-break: break-word; overflow-wrap: anywhere; }
.ft-changes-table td:nth-child(2) { min-width: 9rem; }
.ft-witnesses { font-size: .8125rem; }
.ft-places-table tr.ft-now { background: var(--ft-grey); }
.ft-places-table tr.ft-second, .ft-scan-table tr.ft-flagged { background: var(--ft-red-pale); }
.ft-place-badge { margin-left: .375rem; }
.ft-actions-cell { white-space: nowrap; }
.ft-actions-cell .ft-button { margin: .125rem .25rem .125rem 0; }
.ft-changes-tools .ft-check { margin: 0; }
.ft-sort-by { display: none; }          /* a phone's, where the table's headers (its sort buttons) are not shown */
.ft-node-panel h3:focus { outline: none; }
.ft-node-panel > .ft-panel { padding-bottom: 0; }

/* side panels: groups, numbers, downloads, ancestral readings */
.ft-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem 1.5rem; margin-top: 1rem; }
.ft-side { min-width: 0; padding: .75rem 1rem; border: 1px solid var(--ft-line); border-radius: .5rem; }
.ft-side h2 { margin: 0 0 .5rem; font-family: var(--ft-read); font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
.ft-side h3 { margin: .25rem 0; font-size: .9375rem; }
.ft-node-panel { margin-top: 1rem; border-color: var(--ft-brown); }
.ft-node-panel h2:focus { outline: none; }
.ft-group-list { list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.ft-group-list li { margin: .25rem 0; }
.ft-notclade { color: var(--ft-muted); }
.ft-downloads { margin: 0; padding-left: 1.1rem; font-size: .875rem; }
.ft-downloads li { margin: .2rem 0; }
/* long compounds break anywhere (break-word does not narrow a table's columns), so that the table fits its box */
.ft-readings-table td { word-break: break-word; overflow-wrap: anywhere; }
.ft-where { white-space: nowrap; }
.ft-where .ft-muted, .ft-where .ft-open { display: block; }
.ft-nowrap { white-space: nowrap; }
.ft-readings-table td:nth-child(2), .ft-readings-table td:nth-child(3), .ft-readings-table td:nth-child(4) {
    font-family: var(--ft-read); font-size: .9375rem; }
.ft-p { font-family: var(--ft-ui); font-size: .8125rem; color: var(--ft-muted); font-variant-numeric: tabular-nums; }
.ft-readings .ft-scroll { max-height: 34rem; overflow-y: auto; }
.ft-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ft-delete { margin-top: 1.5rem; }

/* a phone: the page's own padding smaller; wide things scroll in their boxes */
@media (max-width: 639px) {
    .ft-wrap { padding: .5rem .75rem 2rem; }
    .ft-head h1 { font-size: 1.4rem; }
    .ft-section { padding: .5rem .625rem .75rem; }
    .ft-switches, .ft-grid, .ft-sides { grid-template-columns: minmax(0, 1fr); }
    .ft-numbers { grid-template-columns: minmax(0, 1fr); }
    .ft-numbers dt { margin-top: .25rem; }
    .ft-tree-tools { padding: .5rem; }
    .ft-canvas { max-height: 70vh; }
    .ft-two { grid-template-columns: minmax(0, 1fr); }
    .ft-bars { columns: 1; }
    .ft-keys { display: none; }
    .ft-view-more .ft-field, .ft-more .ft-field { width: 100%; }
    .ft-field select, .ft-field input[type="search"] { max-width: 100%; }
    /* the ancestor's readings as cards, one a place */
    .ft-readings .ft-scroll { max-height: none; }
    .ft-cards thead { display: none; }
    .ft-cards, .ft-cards tbody, .ft-cards tr, .ft-cards td, .ft-cards tbody th { display: block; width: auto; }
    .ft-cards tr { padding: .5rem 0; border-bottom: 1px solid var(--ft-line); }
    .ft-cards td, .ft-cards tbody th { padding: .0625rem 0; border: 0; }
    .ft-cards td[data-label]::before { content: attr(data-label) ": "; color: var(--ft-muted);
        font-family: var(--ft-ui); font-size: .8125rem; }
    .ft-actions-cell { white-space: normal; }
    .ft-changes-tools .ft-sort-by { display: inline-flex; }
    .ft-places-table .ft-num, .ft-scan-table .ft-num { text-align: left; }
    .ft-where .ft-muted { display: inline; }
    .ft-where .ft-open { display: inline; margin-left: .5rem; }
}
