/* ══ People and texts, and the two datings ═══════════════
   Both pages use the frame of the family-trees page. */
:root[data-look] body.tpage.wide { grid-template-columns: minmax(0, 1fr); }
.side-note { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 8px 6px 0; }

/* People and texts */
.kinds button { display: flex !important; justify-content: space-between; align-items: baseline; gap: 10px; }
.kinds button b { font-weight: 500 !important; font-size: 14px !important; }
.kinds button span { font-variant-numeric: tabular-nums; }
#letters { display: flex; flex-wrap: wrap; gap: 2px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
#letters a { min-width: 26px; text-align: center; padding: 3px 4px; border-radius: 7px; color: var(--text); text-decoration: none; font: 500 13.5px var(--ui); }
#letters a:hover { background: var(--raise); }
#nlist { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 24px; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
#nlist h2 { font: 600 22px var(--ui); color: var(--accent); margin: 22px 0 6px; scroll-margin-top: 8px; }
#nlist .empty { color: var(--muted); margin: 24px 0; }
.ngroup { columns: 2 340px; column-gap: 28px; }
.nm { break-inside: avoid; border-bottom: 1px solid var(--line); }
.nm summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 7px 2px; }
.nm summary::-webkit-details-marker { display: none; }
.nm summary:hover .nm-n { color: var(--accent); }
.nm-n { font: 600 15.5px var(--ui); }
.nm-a { font-size: 12.5px; color: var(--muted); }
.nm-k { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.nm-c { min-width: 22px; text-align: right; font: 500 12.5px var(--ui); font-variant-numeric: tabular-nums; color: var(--muted); }
.nm[open] { padding-bottom: 8px; }
.nm[open] .nm-n { color: var(--accent); }
.nm ol { list-style: none; margin: 0; padding: 0; }
.nm li a { display: grid; grid-template-columns: 104px 7px 1fr; gap: 9px; align-items: baseline; padding: 4px 6px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.nm li a:hover { background: var(--raise); }
.nm li i { width: 7px; height: 7px; border-radius: 2px; align-self: center; }
.nm-when { color: var(--muted); font-size: 12.5px; text-align: right; }
.nm-tree { margin: 6px 6px 0; font-size: 13px; }
.nm-tree a { text-decoration: none; }

/* The two datings */
#dt-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px clamp(16px, 3vw, 34px) 28px; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
.dt-intro h1 { font: 600 30px/1.15 var(--ui); font-stretch: 88%; margin: 0 0 8px; }
.dt-intro p { font: 400 16px/1.6 var(--read); max-width: 74ch; margin: 0 0 10px; }
.dt-key { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 13px var(--ui) !important; color: var(--muted); max-width: none !important; margin-top: 14px !important; }
.dt-key span { display: inline-flex; align-items: center; gap: 7px; }
.k { flex: none; display: inline-block; }
.k.t { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.k.s { width: 18px; height: 8px; border-radius: 4px; background: var(--dt-s, #7fb2ff); }
:root[data-look="stone"] { --dt-s: #2f6fb3; }
.dt-row { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 0 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dt-axis { position: sticky; top: -22px; z-index: 3; padding: 26px 0 0; border-bottom: 1px solid var(--line); background: var(--panel-solid); margin: 14px -8px 0; padding-left: 8px; padding-right: 8px; height: 50px; }
:root[data-look="liquid"] .dt-axis, :root[data-look="glass"] .dt-axis { background: rgba(24, 26, 34, .9); }
.dt-what h3 { font: 600 16.5px/1.3 var(--ui); margin: 0 0 4px; }
.dt-what h3 a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.dt-what h3 a:hover { text-decoration-color: var(--accent); }
.dt-what p { display: flex; gap: 8px; align-items: baseline; margin: 2px 0; font-size: 13.5px; line-height: 1.4; }
.dt-what p .k { transform: translateY(1px); }
.dt-what b { font-weight: 500; }
.dt-what small { color: var(--muted); font-size: 12px; }
.dt-gap { color: var(--muted); font-size: 12px !important; padding-left: 26px; }
.dt-track { position: relative; height: 44px; }
.dt-axis .dt-track { height: 22px; }
.dt-band { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--muted) 9%, transparent); border-right: 1px dashed var(--line); pointer-events: none; }
.dt-grid { position: absolute; top: 0; bottom: 0; border-left: 1px solid color-mix(in srgb, var(--muted) 16%, transparent); }
.dt-tick { position: absolute; top: 2px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.dt-deep { position: absolute; left: 0; top: 2px; text-align: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.dt-link { position: absolute; top: 50%; height: 0; border-top: 1.5px dotted color-mix(in srgb, var(--muted) 70%, transparent); }
.dt-s { position: absolute; top: calc(50% - 5px); height: 10px; border-radius: 5px; background: var(--dt-s, #7fb2ff); }
.dt-t { position: absolute; top: calc(50% - 7px); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.dt-foot { font-size: 12.5px; line-height: 1.5; color: var(--muted); max-width: 80ch; margin: 18px 0 0; }

@media (max-width: 860px) {
  #nlist { overflow: visible; padding: 4px 14px 20px; }
  .nm li a { grid-template-columns: 84px 7px 1fr; }
  #dt-scroll { overflow: visible; }
  .dt-row { grid-template-columns: 1fr; gap: 6px; }
  .dt-axis { position: static; margin-top: 8px; }
  .dt-axis > div:first-child { display: none; }
  .dt-tick:nth-child(2), .dt-tick:nth-child(4) { display: none; }
  .dt-intro h1 { font-size: 24px; }
}
