/* די קייט פון דורות — timeline add-on. Uses the site's palette variables (styles.css :root). */
.tl{--tl-x:62px;max-width:720px;margin:0 auto;padding:14px 12px 30px}
.tl-orn{text-align:center;color:var(--wine,#7a1f2b);font-size:26px;line-height:1;margin-top:4px}
.tl-title{text-align:center;margin:4px 0 0;font-size:30px;font-weight:900;color:var(--ink,#1d2b45);line-height:1.15}
.tl-sub{text-align:center;margin:4px 0 12px;color:var(--muted,#6f6656);font-size:16px}
.tl-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:var(--parch2,#efe3c8);border:1px solid var(--line,#c9b48a);border-radius:12px;padding:4px;position:sticky;top:6px;z-index:5;box-shadow:0 6px 14px -10px rgba(29,43,69,.5)}
.tl-tabs a{text-align:center;text-decoration:none;color:var(--ink,#1d2b45);font-weight:700;font-size:15px;padding:9px 2px;border-radius:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl-tabs a.on{background:var(--ink,#1d2b45);color:#fff}
.tl-sum{text-align:center;margin:12px 0 6px;color:var(--ink2,#3b4660);font-size:16px}
.tl-sum b{color:var(--wine,#7a1f2b)}
.tl-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--muted,#6f6656);margin:0 0 14px}
.tl-legend span{display:inline-flex;align-items:center;gap:5px}
.tl-legend .lg{display:inline-block;width:18px;height:0;border-top:3px solid var(--gold,#b08d57)}
.tl-legend .lg.dot{border-top:3px dotted var(--gold,#b08d57)}
.tl-legend .lg.ev{width:12px;height:12px;border:0;background:var(--parch2,#efe3c8);border:1px solid var(--gold,#b08d57);transform:rotate(45deg);border-radius:2px}
.tl-list{position:relative}
/* rows: the spine column sits at the start (right) side */
.tl-row,.tl-ev{display:grid;grid-template-columns:var(--tl-x) 1fr;align-items:center}
.tl-spine{position:relative;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tl-row .tl-spine::before{content:"";position:absolute;top:0;bottom:0;right:50%;border-right:3px solid var(--gold,#b08d57);transform:translateX(1.5px)}
.tl-list:not(.haspre) .tl-row:first-child .tl-spine::before{top:50%}
.tl-link.pre::before{top:12px;border-right-style:dotted}
.tl-row.rootrow .tl-spine::before{bottom:50%}
.tl-row.g .tl-spine::before{border-right-style:dotted}
.tl-yr{position:relative;z-index:1;background:var(--parch,#f5eddb);color:var(--wine,#7a1f2b);font-weight:900;font-size:15px;padding:0 2px;line-height:1.1;margin-bottom:4px;font-variant-numeric:tabular-nums}
.tl-yr i{font-style:normal;color:var(--gold,#b08d57);font-size:12px}
.tl-dot{position:relative;z-index:1;width:14px;height:14px;border-radius:50%;background:var(--wine,#7a1f2b);border:3px solid var(--parch,#f5eddb);box-shadow:0 0 0 2px var(--gold,#b08d57)}
.tl-row.rootrow .tl-dot{width:18px;height:18px;background:var(--gold,#b08d57)}
.tl-row.g .tl-dot{background:var(--parch,#f5eddb)}
/* the link between a father (above) and his son (below) */
.tl-link{position:relative;min-height:26px;padding:2px 0}
.tl-link::before{content:"";position:absolute;top:0;bottom:0;right:calc(var(--tl-x)/2);border-right:3px solid var(--gold,#b08d57);transform:translateX(1.5px)}
.tl-link.unsure::before{border-right-style:dotted;border-right-color:var(--gold,#b08d57)}
.tl-lnote{padding:3px 0 3px 0;margin-right:calc(var(--tl-x) + 4px)}
.tl-lnote span,.tl-badge{display:inline-block;font-size:12px;line-height:1.3;color:var(--wine,#7a1f2b);background:#fbeff0;border:1px dashed #c98f97;border-radius:999px;padding:1px 9px}
.tl-gap{margin-right:calc(var(--tl-x) + 4px);color:var(--muted,#6f6656);font-size:14px;padding:8px 0}
/* world events: a gold strip set off to the side */
.tl-ev{margin:4px 0}
.tl-ev .tl-spine{align-items:center}
.tl-eyr{display:none}
.tl-edot{position:relative;z-index:1;width:11px;height:11px;background:var(--parch2,#efe3c8);border:2px solid var(--gold,#b08d57);transform:rotate(45deg);border-radius:2px}
.tl-evbox{margin-right:26px;background:linear-gradient(90deg,rgba(176,141,87,.06),rgba(176,141,87,.16));border-right:3px solid var(--gold,#b08d57);border-radius:8px 4px 4px 8px;padding:6px 10px;font-size:14px;line-height:1.4;color:var(--ink2,#3b4660);position:relative}
.tl-evbox::before{content:"";position:absolute;right:-29px;top:50%;width:26px;border-top:1px dashed var(--gold,#b08d57)}
.tl-evbox b{display:block;color:var(--gold,#b08d57);font-size:13px;letter-spacing:.02em}
/* person cards */
.tl-card{display:flex;align-items:center;gap:10px;background:var(--card,#fffaf0);border:1px solid var(--line,#c9b48a);border-radius:14px;padding:10px 10px 10px 8px;margin:4px 0;color:var(--ink,#1d2b45);text-decoration:none;box-shadow:0 1px 0 #fff inset,0 8px 18px -14px rgba(29,43,69,.55);position:relative;min-width:0}
a.tl-card:active{transform:scale(.99)}
.tl-card.res{background:#fffaf6;border-style:dashed}
.tl-card.root{border:2px solid var(--gold,#b08d57);background:linear-gradient(180deg,#fffdf6,var(--card,#fffaf0))}
.tl-card.ghost{background:transparent;border:1.5px dashed var(--line,#c9b48a);box-shadow:none;opacity:.92}
.tl-ph{flex:0 0 58px;width:58px;height:58px;border-radius:50%;overflow:hidden;border:2px solid var(--gold2,#d9c39a);background:var(--parch2,#efe3c8);display:grid;place-items:center;color:var(--gold,#b08d57);font-size:22px}
.tl-ph img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;display:block}
.tl-ph.stone{border-radius:12px 12px 6px 6px}
.tl-ph.stone img{object-position:50% 35%;filter:sepia(.15)}
.tl-card.root .tl-ph{flex-basis:70px;width:70px;height:70px}
.tl-body{display:flex;flex-direction:column;min-width:0;flex:1}
.tl-rel{font-size:13px;color:var(--wine,#7a1f2b);font-weight:700;line-height:1.3}
.tl-name{font-size:17px;line-height:1.3;margin:1px 0 2px;overflow-wrap:anywhere}
.tl-card.root .tl-name{font-size:19px}
.tl-kd{color:var(--wine,#7a1f2b);font-size:14px}
.tl-date,.tl-town,.tl-wife{font-size:14px;line-height:1.35;color:var(--ink2,#3b4660)}
.tl-town span{color:var(--gold,#b08d57)}
.tl-wife{color:var(--muted,#6f6656)}
.tl-q{color:var(--wine,#7a1f2b);font-size:12px}
.tl-badge{align-self:flex-start;margin-top:4px}
.tl-badge.ok{color:#2f5d3a;background:#eef6ee;border:1px solid #9cc3a2}
.tl-go{color:var(--gold,#b08d57);font-size:24px;line-height:1;flex:0 0 auto}
.tl-end{text-align:center;color:var(--gold,#b08d57);letter-spacing:.3em;margin:14px 0 2px}
.tl-foot{text-align:center;color:var(--muted,#6f6656);font-size:14px;margin:0 8px}
/* v56: on the site the top bar is sticky too — keep the line tabs just under it */
#view .tl-tabs{top:60px}
/* v56: photo cards — the picture big and centred on top (object-fit:contain on parchment, nothing cropped) */
.tl-card.hasph{flex-direction:column;align-items:stretch;gap:8px;padding:8px 8px 12px;text-align:center}
.tl-fig{display:flex;align-items:center;justify-content:center;width:100%;height:216px;border-radius:10px;overflow:hidden;background:var(--parch2,#efe3c8);border:1px solid var(--gold2,#d9c39a);box-shadow:inset 0 0 18px rgba(176,141,87,.18)}
.tl-fig img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.tl-card.root .tl-fig{height:236px}
.tl-card.hasph .tl-body{align-items:center}
.tl-card.hasph .tl-badge{align-self:center}
.tl-card.hasph .tl-go{position:absolute;left:10px;bottom:10px;font-size:20px}
@media (min-width:720px){ .tl-fig{height:260px} }
@media (min-width:720px){ .tl{--tl-x:80px} .tl-evbox{max-width:70%} }
@media print{ .tl-tabs{position:static;box-shadow:none} }

/* v63: reversed order — the line's Zeidy on top, the oldest at the bottom */
.tl-list.rev .tl-row:first-child .tl-spine::before{top:0}
.tl-list.rev .tl-row.rootrow .tl-spine::before{top:50%;bottom:0}
.tl-list.rev:not(.haspre) .tl-row:last-child .tl-spine::before{bottom:50%}
.tl-list.rev .tl-link.pre::before{top:0;bottom:12px}
.tl-dor{display:inline-block;font-size:11.5px;font-weight:700;color:#fff;background:var(--wine,#7a1f2b);border-radius:999px;padding:1px 7px;margin-left:4px;vertical-align:1px}
.tl-det{display:block;font-size:13.5px;color:var(--ink2,#3a4660);line-height:1.35;margin-top:2px}

/* v66: history strips (📜) — toggle + source link */
.tl-evtog{display:flex;justify-content:center;margin:2px 0 10px}
.tl-evbtn{font:inherit;font-size:13.5px;border:1px solid var(--gold,#b08d57);background:#fffaf0;color:var(--ink2,#3b4660);border-radius:999px;padding:6px 14px;cursor:pointer}
.tl-evbtn[aria-pressed="false"]{background:#fff;opacity:.85}
.tl-evbtn b{color:var(--gold,#b08d57)}
.tl-list.noev .tl-ev{display:none}
.tl-eic{margin-left:5px;font-size:13px}
.tl-esrc{display:block;font-size:11.5px;color:#8a7a5c;text-decoration:none;margin-top:2px;word-break:break-word}
@media (hover:hover){.tl-esrc:hover{text-decoration:underline}}

/* v68: Jewish year under the civil year */
.tl-yr .tl-hy,.tl-eyr .tl-hy{display:block;font-size:.72em;font-weight:500;opacity:.85;line-height:1.2;white-space:nowrap}

/* v85/v11: 🖨️ דורות print */
.tl-prt{display:flex;gap:8px;justify-content:center;margin:6px 0 4px;flex-wrap:wrap}
.tl-prbtn{font:inherit;font-size:15px;padding:6px 12px;border-radius:10px;border:1px solid #c9b48a;background:#fffaf0;color:#5a3e1b;cursor:pointer}
#tlprint{display:none}
@media print{
  html.tlprinting body > *:not(#tlprint){display:none !important}
  html.tlprinting #tlprint{display:block !important;font-family:'Frank Ruhl Libre','David','Times New Roman',serif;color:#2b1d0e;background:#fffdf6 !important}
  html.tlprinting body{background:#fffdf6 !important;background-image:none !important}
  #tlprint .tlp-head{text-align:center;margin:0 0 10pt;border-bottom:1px solid #c9b48a;padding-bottom:6pt}
  #tlprint .tlp-t{font-size:24pt;font-weight:700}
  #tlprint .tlp-s{font-size:14pt;color:#6b5332}
  #tlprint .tlp-lh{font-size:16pt;text-align:center;margin:4pt 0 8pt;color:#5a3e1b}
  #tlprint .tlp-break{break-before:page;page-break-before:always}
  #tlprint .tl-orn,#tlprint .tl-evtog,#tlprint .tl-prt,#tlprint .tl-tabs,#tlprint button{display:none !important}
  #tlprint .tl-card,#tlprint .tl-row{break-inside:avoid;page-break-inside:avoid;box-shadow:none !important}
  #tlprint a{color:inherit;text-decoration:none}
  .tl-prt{display:none !important}
}
