/* The timeline: the map (/timeline/) on the black stage, and the register (/timeline/register/) on paper.
   Loaded by these two pages only. Nothing here moves. */

/* ================================================================== the map */
.timeline-page main { padding: 0; }
.tl { height: 100vh; min-height: 560px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 430px); grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 8px clamp(14px, 2vw, 28px); padding: 60px clamp(12px, 1.6vw, 22px) 10px; }
.tl-map { position: relative; grid-column: 1; grid-row: 1 / -1; align-self: start; justify-self: center; width: 100%; max-width: calc((100vh - 60px - 22px - 222px) * 1.62); }
.tl-head, .tl-year, .tl-ctl, .tl-list { grid-column: 2; }
.tl-head h1 { margin: 0; font: italic 300 19px/1.2 var(--body); color: var(--dim-l); }

.tl-sheet { background: var(--paper) var(--grain); box-shadow: inset 0 0 46px rgba(60, 40, 15, .38), 0 0 0 1px rgba(0, 0, 0, .6); }
.tl-sheet svg { display: block; width: 100%; height: auto; direction: ltr; }
.tl-insets { display: grid; grid-template-columns: 26.4% 19.2% 22.6% minmax(0, 1fr); gap: 10px; margin-top: 10px; align-items: start; }
.tl-sheet .land { fill: #e6d8b9; fill-opacity: .62; stroke: #3b2a18; stroke-opacity: .62; stroke-width: .9; stroke-linejoin: round; }
.tl-sheet .lake { fill: #cdbb97; stroke: #3b2a18; stroke-opacity: .5; stroke-width: .7; }
.tl-sheet .river { fill: none; stroke: #3b2a18; stroke-opacity: .3; stroke-width: .8; stroke-linecap: round; }
.tl-sheet .front { fill: none; stroke: #3b2a18; stroke-opacity: .36; stroke-width: .6; stroke-dasharray: 3.2 2.4; stroke-linecap: round; }
.tl-sheet .frame { fill: none; stroke: #3b2a18; stroke-opacity: .34; stroke-width: .5; }
.tl-sheet .hl { stroke: #3b2a18; stroke-opacity: .62; stroke-width: .6; }
.tl-sheet .town { fill: #dccba9; stroke: #3b2a18; stroke-opacity: .55; stroke-width: .5; }
.tl-sheet .town.big { stroke-opacity: .8; stroke-width: .7; }
.tl-sheet .leader { stroke: #3b2a18; stroke-opacity: .45; stroke-width: .5; }
.tl-sheet .cart { fill: #dccba9; fill-opacity: .5; stroke: #3b2a18; stroke-opacity: .4; stroke-width: .5; }
.tl-sheet text { font-family: var(--body); font-style: italic; fill: var(--ink-dim); }
.tl-sheet .sea { font-size: 12px; letter-spacing: .22em; fill-opacity: .6; }
.tl-sheet .water { font-size: 8.5px; fill-opacity: .55; letter-spacing: .08em; }
.tl-sheet .st { font-size: 9.5px; font-style: normal; font-variant: small-caps; letter-spacing: .1em; fill-opacity: .8; paint-order: stroke; stroke: #dccba9; stroke-width: 2px; stroke-opacity: .7; }
.tl-sheet .pl { font-size: 9.5px; fill: var(--ink); paint-order: stroke; stroke: #dccba9; stroke-width: 2.5px; stroke-opacity: .8; }
.tl-sheet .pl.ref { fill: var(--ink-dim); fill-opacity: .78; stroke-opacity: .5; }
.tl-sheet .pl.land { letter-spacing: .12em; }
.tl-sheet .pl.lost { font-style: normal; font-variant: small-caps; letter-spacing: .06em; stroke: none; }
.tl-sheet .pl .ct { font-family: var(--mono); font-style: normal; font-size: .82em; fill: var(--ink-dim); }
.tl-sheet .lgt { fill: var(--ink); paint-order: stroke; stroke: #dccba9; stroke-width: 2.4px; stroke-opacity: .85; }
:root[lang="he"] .tl-sheet text { font-style: normal; letter-spacing: 0; }

/* the marks: one ink, and one accent under the hand or the keys */
.tl .mk { outline: none; cursor: default; }
.tl .mk .hit { fill: transparent; }
.tl .m.s { fill: var(--ink); stroke: #dccba9; stroke-width: .5; }
.tl .m.s.h { stroke: none; }
.tl .m.o { fill: #dccba9; fill-opacity: .6; stroke: var(--ink); stroke-width: 1.15; stroke-linejoin: round; }
.tl .m.f { fill: #dccba9; fill-opacity: .25; stroke: var(--ink); stroke-opacity: .85; stroke-width: .95; stroke-dasharray: 1.6 1.2; }
.tl .mk.hi .m, .tl .mk:hover .m, .tl .mk:focus .m { stroke: #9a3d12; stroke-width: 1.9; stroke-opacity: 1; stroke-dasharray: none; }
.tl .mk.hi .m.s.h, .tl .mk:hover .m.s.h, .tl .mk:focus .m.s.h { stroke: none; }
.tl .mk:focus-visible .hit { stroke: #9a3d12; stroke-width: 1; fill: rgba(154, 61, 18, .12); }
.tl .gl { display: inline-block; width: 14px; height: 14px; vertical-align: -3px; margin-inline-end: 5px; overflow: visible; }
.tl-tip { position: absolute; z-index: 3; width: 240px; padding: 7px 10px; background: var(--stage); border: 1px solid rgba(235, 227, 212, .25); font-size: 13px; line-height: 1.35; color: var(--ink-l); pointer-events: none; }

/* the key, a card of the same paper */
.tl-key { padding: 8px 11px 9px; color: var(--ink); font-size: 12px; line-height: 1.32; }
.tl-key h2 { margin: 0 0 4px; font: 400 10.5px var(--body); font-variant: small-caps; letter-spacing: .1em; color: var(--ink-dim); }
.tl-key ul { list-style: none; margin: 0; padding: 0; color: var(--ink-dim); font-style: italic; }
.tl-key li { padding: 1px 0; padding-inline-start: 19px; text-indent: -19px; }

/* the year, the strip of years, and the list beside the sheet */
.tl-year { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tl-big { font: 400 clamp(52px, 5.6vw, 72px)/1 var(--name); color: var(--gold); min-width: 4ch; text-align: center; margin: 0; }
.tl-year button { font: 300 20px/1 var(--body); color: var(--dim-l); background: none; border: 1px solid rgba(235, 227, 212, .2); border-radius: 2px; padding: 6px 13px 7px; cursor: pointer; }
.tl-year button:hover:not(:disabled), .tl-year button:focus-visible { color: var(--ink-l); border-color: var(--gold); outline: none; }
.tl-year button:disabled { opacity: .3; cursor: default; }
.tl-ctl label { display: block; font: 11.5px var(--body); letter-spacing: .09em; font-variant: small-caps; color: var(--faint-l); }
.tl-ctl input[type=range] { width: 100%; margin: 4px 0 0; accent-color: var(--gold); background: transparent; height: 22px; cursor: ew-resize; }
.tl-jump { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font: 12.5px var(--mono); }
.tl-jump button { font: inherit; color: var(--dim-l); background: none; border: 0; border-bottom: 1px solid rgba(235, 227, 212, .25); padding: 1px 0 2px; cursor: pointer; }
.tl-jump button:hover, .tl-jump button:focus-visible, .tl-jump button[aria-pressed="true"] { color: var(--gold); border-bottom-color: var(--gold); outline: none; }
.tl-list { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 0 8px; padding-inline-end: 4px; }
.tl-note { margin: 0; font-style: italic; color: var(--ink-l); font-size: 17px; line-height: 1.45; }
.tl-note .d { font: normal 12.5px var(--mono); color: var(--faint-l); margin-inline-end: 6px; }
.tl-count { margin: 0; color: var(--dim-l); font-size: 15px; }
.tl-places { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(235, 227, 212, .12); }
.tl-places li { padding: 7px 0 8px; border-bottom: 1px solid rgba(235, 227, 212, .09); font-size: 16px; line-height: 1.5; color: var(--ink-l); }
.tl-places h3 { margin: 0 0 1px; font: 400 17px var(--name); color: var(--gold); }
.tl-places h3 small { font: 300 13px var(--body); color: var(--faint-l); margin-inline-start: 6px; }
.tl-n { white-space: nowrap; border-radius: 2px; }
.tl-n.hi { background: rgba(201, 164, 106, .22); box-shadow: 0 0 0 3px rgba(201, 164, 106, .22); }
.tl-n a { text-decoration: none; border-bottom: 1px solid rgba(235, 227, 212, .28); }
.tl-n a:hover, .tl-n a:focus-visible { border-bottom-color: var(--gold); outline: none; }
.tl-n .tl-f { font-size: 12.5px; color: var(--gold); border-bottom-color: rgba(201, 164, 106, .5); margin-inline-start: 4px; }
.tl-n .tl-from { font-size: 12.5px; font-style: italic; color: var(--faint-l); margin-inline-start: 4px; }
.tl-places li.tl-lost, .tl-places li.tl-lost h3 { color: var(--dim-l); }
.tl-places .gl { margin-inline-end: 3px; }
.tl-places .gl .m.s { fill: var(--ink-l); stroke: none; }
.tl-places .gl .m.o { fill: none; stroke: var(--ink-l); }
.tl-places .gl .m.f { fill: none; stroke: var(--ink-l); }
.tl-reg { margin: 2px 0 0; font-size: 14.5px; color: var(--dim-l); }
.tl-reg a, .tl-note a { text-decoration: underline; text-decoration-color: rgba(201, 164, 106, .55); text-underline-offset: 3px; }
.timeline-page .foot { margin-top: 30px; }

@media (max-width: 820px) {
  /* a phone: the year and its slider stay under the thumb at the head of the page; all four sheets fit the screen beneath them */
  .tl { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 58px 10px 20px; }
  .tl-head { display: none; }
  .tl-year, .tl-ctl { position: sticky; z-index: 6; background: var(--stage); margin-inline: -10px; padding-inline: 10px; }
  .tl-year { order: 1; top: 57px; padding-block: 6px 8px; margin-bottom: -8px; }
  .tl-ctl { order: 2; top: 111px; padding-bottom: 7px; border-bottom: 1px solid rgba(235, 227, 212, .12); }
  .tl-map { order: 3; max-width: none; } .tl-list { order: 4; overflow: visible; }
  .tl-big { font-size: 40px; }
  .tl-year button { padding: 9px 18px 10px; }
  .tl-ctl label { display: none; }
  .tl-ctl input[type=range] { height: 30px; margin: 0; }
  .tl-jump { flex-wrap: nowrap; overflow-x: auto; gap: 0 14px; font-size: 14px; scrollbar-width: none; padding-bottom: 2px; }
  .tl-jump button { flex: none; padding: 3px 0 4px; }
  .tl-insets { grid-template-columns: 26.4fr 19.2fr 22.6fr; gap: 6px; margin-top: 6px; }
  .tl-key { grid-column: 1 / -1; font-size: 12.5px; }
  .tl-key ul { columns: 2; column-gap: 14px; }
  .tl-key li { break-inside: avoid; }
  .tl .mk .hit { r: 7px; }
}

/* ================================================================== the register */
.register-page .site-h { position: absolute; }          /* the register pins its own column heads */
.sheet.rg { max-width: 1500px; padding: 44px clamp(10px, 1.6vw, 26px) 30px; }
.rg-top { max-width: 760px; margin: 0 auto 22px; padding: 0 10px; text-align: center; }
.sheet .rg-top p { font-size: 17px; color: var(--ink-dim); margin: 6px 0 0; }
.rg-book { font-size: 14px; line-height: 1.38; font-weight: 400; border-top: 1px solid var(--line); }
.sheet .rg-book p, .sheet .rg-book li { font-size: inherit; }
.rg-row { display: grid; grid-template-columns: 84px repeat(10, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.rg-row > div { padding: 9px 9px 11px; border-inline-start: 1px solid var(--line); min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.rg-row > .yc { border-inline-start: 0; border-inline-end: 2px solid rgba(125, 79, 29, .5); padding-inline-start: 12px; }
.rg-row > .yc + div { border-inline-start: 0; }
.rg-book .y { font: 700 22px/1 var(--name); margin: 0; }
.sheet .rg-head { position: sticky; top: 0; z-index: 5; background: #cdb991 var(--grain-soft); border-bottom: 2px solid rgba(38, 27, 17, .6); align-items: end; box-shadow: 0 6px 10px -8px rgba(38, 27, 17, .6); }
.rg-head > div { padding-top: 10px; padding-bottom: 8px; }
.rg-head > .yc { font: 400 11px var(--body); font-variant: small-caps; letter-spacing: .08em; color: var(--ink-dim); }
.sheet .rg-head h2 { margin: 0; font: 400 16px/1.15 var(--name); }
.rg-book .e { margin: 0 0 9px; }
.rg-book .e:last-child { margin-bottom: 0; }
.rg-book .d { display: block; font: 11px/1.3 var(--mono); color: var(--ink-dim); margin-bottom: 1px; }
.rg-book b { font-weight: 400; font-variant: small-caps; }
.rg-book .e b:not(.keep) { display: none; }
.sheet .rg-book a { color: inherit; border: 0; text-decoration: underline; text-decoration-color: rgba(125, 79, 29, .8); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sheet .rg-book a.paper { text-decoration-style: dotted; text-decoration-color: rgba(38, 27, 17, .75); }
.sheet .rg-book a:hover, .sheet .rg-book a:focus-visible { color: var(--accent); }
/* the time: a band across the whole page */
.rg-band { display: grid; grid-template-columns: 84px minmax(0, 1fr); background: rgba(38, 27, 17, .84); color: #e6d8b9; border-bottom: 1px solid rgba(0, 0, 0, .5); }
.rg-band > div { padding: 9px 12px 10px; }
.rg-band .y { color: var(--gold); font-size: 20px; padding-top: 2px; }
.sheet .rg-band p { margin: 0; font: italic 300 16.5px/1.4 var(--body); max-width: 90ch; }
.rg-band p + p { margin-top: 3px; }
.rg-band .d { display: inline; font: normal 12px var(--mono); color: inherit; opacity: .7; margin-inline-end: 8px; }
.rg-band.fam, .rg-band.census { background: rgba(125, 79, 29, .2); color: var(--ink); }
.rg-band.fam .y, .rg-band.census .y { color: var(--ink); }
.sheet .rg-band.fam p { font-style: normal; font-weight: 400; font-size: 15.5px; }
.sheet .rg-band.census p { font-style: normal; font-weight: 400; font-size: 15.5px; font-variant: small-caps; letter-spacing: .05em; }
.rg-band.census ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 3px 22px; font-size: 14px; line-height: 1.4; }
.rg-band.census .at { color: var(--ink-dim); }
.rg-band.census b::after { content: ":"; }
:root[lang="he"] .rg-book b { font-weight: 700; }               /* Hebrew has no small capitals: the names stand in a heavier hand */
/* the years in which nothing is recorded */
.rg-skip { height: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font: 10.5px var(--mono); color: var(--ink-dim); letter-spacing: .1em;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(38, 27, 17, .12) 4px 5px); }
.rg-skip span { background: #d3c29d; padding: 0 9px; }
/* a household whose last entry is written: one line, then the column is struck through */
.rg-row > .close { font-style: italic; color: var(--ink-dim); font-size: 13.5px; background: rgba(38, 27, 17, .05); }
.rg-row > .gone { background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(38, 27, 17, .075) 7px 8px); }
.sheet .rg-closing { padding: 20px 12px 6px; margin: 0; text-align: center; font: italic 300 19px var(--body); color: var(--ink-dim); }
.rg-pick { display: none; }

@media (max-width: 1040px) {
  .sheet.rg { padding: 30px 0 20px; }
  .rg-pick { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 9px; background: rgba(7, 6, 5, .97); scrollbar-width: none; }
  .rg-pick button { flex: none; font: 300 15px var(--body); color: var(--dim-l); background: none; border: 1px solid rgba(235, 227, 212, .22); border-radius: 2px; padding: 6px 12px 7px; }
  .rg-pick button[aria-pressed="true"] { color: var(--stage); background: var(--gold); border-color: var(--gold); }
  .rg-book { font-size: 16px; line-height: 1.42; }
  .rg-row.rg-head { display: none; }
  .rg-row { display: block; position: relative; padding: 11px 14px 12px 0; padding-inline: 0 14px; }
  .rg-row > div { border: 0 !important; padding: 0; padding-inline-start: 80px; background: none !important; }
  .rg-row > .yc { position: absolute; inset-inline-start: 12px; top: 11px; padding: 0; }
  .rg-row::before { content: ""; position: absolute; inset-inline-start: 68px; top: 0; bottom: 0; border-inline-start: 2px solid rgba(125, 79, 29, .45); }
  .rg-row > div:empty, .rg-row > .gone, .rg-row > .close { display: none; }
  .rg-row > div[data-col] + div[data-col]:not(:empty) { margin-top: 9px; }
  .rg-book .e .d { font-size: 12.5px; }
  .rg-book:not([data-only]) .e b { display: inline; }
  .rg-band { grid-template-columns: 68px minmax(0, 1fr); }
  .sheet .rg-band p { font-size: 16px; }
  .rg-band.census ul { grid-template-columns: 1fr; font-size: 15.5px; }
  .rg-book[data-only] .rg-row > div[data-col]:not(.on), .rg-book[data-only] .rg-row.none, .rg-book[data-only] .census li.none { display: none; }
  .rg-book[data-only] .rg-row > .close.on { display: block; padding-top: 2px; font-size: 15.5px; }
  .rg-book[data-only] .e b { display: none; }
  .rg-book[data-only] .e b.keep { display: inline; }
}
/* the header is a size up on a desktop (site.css), so the map starts lower */
@media (min-width: 1100px) {
  .tl { padding-top: 72px; }
  .tl-map { max-width: calc((100vh - 72px - 22px - 222px) * 1.62); }
}
