/* The overview follows the shared site palette in both themes. */
html:root .timeline-page .timeline-main{max-width:1380px;padding-top:30px}
html:root .timeline-page .timeline-intro h1{font-size:32px;margin:9px 0}
html:root .timeline-page .timeline-intro p{font-size:14px;margin:8px 0}
html:root .timeline-page .timeline-destination{margin:18px 0;padding:12px 16px}
.tov-overview{border:1px solid var(--line,#dce1e4);border-radius:9px;padding:22px;background:var(--home-surface,#fff);color:var(--ink,#253e35)}
.tov-heading{display:flex;gap:14px;align-items:center;justify-content:space-between}
.tov-heading small{font-size:11px;color:var(--muted,#5c6770)}
.tov-heading h2{font-size:23px;letter-spacing:-.6px;margin:6px 0 0}
.tov-heading>span{font-size:12px;line-height:1.8;color:var(--muted,#5c6770)}
.tov-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:19px 0 17px}
html:root .tov-toolbar button{min-height:36px;min-width:36px;border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-surface,#fff);color:var(--ink,#253e35);font:inherit;font-size:12px;padding:6px 11px;cursor:pointer}
html:root .tov-toolbar button:disabled{opacity:.35;cursor:default}
.tov-control-divider{width:1px;height:20px;background:var(--line,#dce1e4);margin:0 3px}
.tov-toolbar output{font-size:11px;min-width:38px;text-align:center;color:var(--muted,#5c6770);font-variant-numeric:tabular-nums}
.tov-zoom{display:flex;align-items:center;width:100px}.tov-zoom input{width:100%;accent-color:var(--green,#006b85)}
.tov-viewport{width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-y pinch-zoom;scrollbar-width:thin;scrollbar-color:var(--muted,#5c6770) transparent;cursor:grab;border-bottom:1px solid var(--line,#dce1e4);padding-bottom:12px}
.tov-viewport.is-dragging,.tov-viewport.is-dragging button{cursor:grabbing;user-select:none}
.tov-track{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;box-sizing:border-box;gap:7px;margin:0;padding:0;list-style:none}
.tov-track>li{min-width:0;position:relative}
html:root .tov-track button{display:flex;position:relative;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;width:100%;min-width:0;min-height:176px;height:100%;border:1px solid var(--line,#dce1e4);border-top:4px solid var(--tov-color);border-radius:5px;background:var(--home-soft,#f4f6f5);padding:15px 12px 28px;color:var(--ink,#253e35);text-align:left;white-space:normal;font:inherit;cursor:pointer;overflow-wrap:anywhere}
html:root .tov-track button[aria-pressed=true]{background:var(--logos-accent-soft,#e6f0f0);border-color:var(--green,#006b85);box-shadow:inset 0 0 0 1px var(--green,#006b85)}
.tov-track button>strong{font-size:18px;line-height:1.5;letter-spacing:-.6px}
.tov-era-book{font-size:10px;line-height:1.6;min-height:32px;color:var(--muted,#5c6770)}
.tov-era-full{font-size:11px;line-height:1.6;color:var(--muted,#5c6770)}
.tov-era-flow{font-size:10px;line-height:1.8;color:var(--muted,#5c6770);margin-top:auto;padding-top:10px}
.tov-era-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:var(--tov-color);bottom:10px;left:12px}
.tov-track>li:not(:last-child):after{content:'→';position:absolute;z-index:1;bottom:6px;right:-7px;font-size:12px;color:var(--muted,#5c6770);pointer-events:none}
.tov-help,.tov-date-note{font-size:11px;color:var(--muted,#5c6770);line-height:1.8;margin:12px 0 0}.tov-date-note{font-size:10px;margin-top:4px}
.tov-selection-prompt{margin:18px 0;padding:24px;text-align:center;border:1px dashed var(--line,#dce1e4);font-size:14px;color:var(--ink,#253e35);border-radius:7px}.tov-selection-prompt span{display:block;font-size:12px;color:var(--muted,#5c6770);margin-top:8px;line-height:1.8}
.tov-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html:root .tov-ready .timeline-era-grid{display:block;margin-top:20px}
html:root .tov-ready .timeline-era-card[hidden],.tov-selection-prompt[hidden]{display:none}
html:root .tov-ready .timeline-era-card{padding:25px;background:var(--home-surface,#fff);border-radius:7px}
html:root .tov-ready .timeline-era-card>small{font-size:11px}
html:root .tov-ready .timeline-era-card>p{min-height:0;margin:10px 0;font-size:13px;line-height:1.8}
html:root .tov-ready .timeline-era-card h2{font-size:25px;margin:8px 0}
html:root .tov-ready .timeline-era-card>.timeline-era-preview{display:none}
html:root .tov-ready .timeline-era-card>button{display:inline-block;width:auto;margin:6px 14px 12px 0;padding:10px 15px}
.tov-details{margin-top:17px;border-top:1px solid var(--line,#dce1e4);padding-top:20px}
.tov-detail-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:25px}
.tov-groups{display:flex;flex-direction:column;gap:6px;max-height:530px;overflow-y:auto;padding:2px 7px 2px 2px;align-self:start;scrollbar-width:thin}
html:root .tov-groups button{display:block;min-height:55px;width:100%;border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-surface,#fff);padding:10px 12px;text-align:left;color:var(--ink,#253e35);font:inherit;font-size:12px;line-height:1.6;cursor:pointer}
.tov-groups button small{display:block;font-size:10px;color:var(--muted,#5c6770)}
html:root .tov-groups button[aria-pressed=true]{border-color:var(--green,#006b85);background:var(--logos-accent-soft,#e6f0f0)}
.tov-group-heading>small{font-size:11px;line-height:1.8;color:var(--green,#006b85)}
.tov-group-heading h3{font-size:21px;margin:6px 0 10px;line-height:1.5;color:var(--ink,#253e35)}
.tov-group-heading>p{font-size:12px;line-height:1.9;color:var(--muted,#5c6770);margin:8px 0}
.tov-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;align-items:start}
.tov-event{border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-surface,#fff);color:var(--ink,#253e35)}
.tov-event>summary{cursor:pointer;padding:14px 16px;list-style:none}
.tov-event>summary::-webkit-details-marker{display:none}
.tov-event summary>small{display:block;color:var(--green,#006b85);font-size:10px;line-height:1.8;margin-bottom:5px}
.tov-event summary>strong{display:block;font-size:13px;line-height:1.8}.tov-event summary>strong:after{content:' ＋';color:var(--green,#006b85);font-size:12px}.tov-event[open] summary>strong:after{content:' −'}
.tov-event summary>span{display:block;margin-top:6px;font-size:10px;line-height:1.8;color:var(--muted,#5c6770)}
.tov-event>div{padding:0 16px 15px}.tov-event p{font-size:12px;line-height:1.9;margin:8px 0;color:var(--muted,#5c6770)}
html:root :is(.tov-event,.tov-group-heading) button{font:inherit;font-size:11px;min-height:36px;padding:8px 11px;border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-surface,#fff);color:var(--green,#006b85);cursor:pointer}
.tov-more{font-size:12px;margin-top:16px;color:var(--ink,#253e35)}.tov-more>summary{cursor:pointer;padding:12px 0}
.tov-overview :focus-visible,.tov-details :focus-visible{outline:2px solid var(--green,#006b85);outline-offset:2px}
@media(max-width:900px){.tov-track button>strong{font-size:14px}.tov-era-book,.tov-era-flow{display:none}.tov-era-full{font-size:10px}html:root .tov-track button{min-height:125px;padding:12px 8px 25px}.tov-detail-layout{grid-template-columns:180px minmax(0,1fr)}.tov-events{grid-template-columns:1fr}}
@media(max-width:600px){html:root .timeline-page .timeline-main{padding:22px 12px}.tov-overview{padding:15px 10px}.tov-heading{display:block;padding:0 3px}.tov-heading h2{font-size:21px}.tov-heading>span{display:block;margin-top:8px;font-size:11px}.tov-toolbar{gap:5px;margin:15px 0}.tov-zoom{width:65px}.tov-toolbar output{min-width:34px}html:root .tov-toolbar button{font-size:11px;padding:6px 8px;min-height:38px;min-width:34px}.tov-control-divider{margin:0}.tov-track{gap:3px}html:root .tov-track button{padding:12px 3px 25px;min-height:105px;align-items:center}.tov-track button>strong{font-size:10px;line-height:1.7;letter-spacing:0;word-break:keep-all}.tov-era-full{display:none}.tov-era-dot{left:calc(50% - 4px)}.tov-track>li:not(:last-child):after{right:-5px;font-size:10px}.tov-viewport[data-expanded=true] .tov-track button{padding-inline:10px;align-items:flex-start}.tov-viewport[data-expanded=true] .tov-track button>strong{font-size:16px}.tov-viewport[data-expanded=true] .tov-era-full{display:block}.tov-viewport[data-expanded=true] .tov-era-dot{left:12px}.tov-help{font-size:10px}.tov-date-note{font-size:9px}.tov-detail-layout{grid-template-columns:minmax(0,1fr);gap:18px}.tov-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:195px;gap:5px;padding:2px 5px 2px 2px}.tov-groups button{font-size:11px}html:root .tov-ready .timeline-era-card{padding:18px 14px}.tov-group-heading h3{font-size:19px}.tov-selection-prompt{padding:20px 12px;font-size:13px}}

html:root .tov-back{font:inherit;font-size:11px;min-height:36px;margin:0 0 16px;padding:8px 12px;border:1px solid var(--line,#dce1e4);border-radius:5px;color:var(--green,#006b85);background:var(--home-surface,#fff);cursor:pointer}

.tov-person-search{position:sticky;top:-2px;z-index:1;display:block;padding-bottom:4px;background:var(--home-surface,#fff)}.tov-person-search input{box-sizing:border-box;width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-surface,#fff);color:var(--ink,#253e35);font:inherit;font-size:12px}.tov-no-person{font-size:11px;line-height:1.8;color:var(--muted,#5c6770)}
@media(max-width:600px){.tov-person-search,.tov-no-person{grid-column:1/-1}}

/* Public, one-click entry to each existing event table. */
.timeline-table-shortcuts{padding:20px 22px;margin:22px 0;border:1px solid var(--logos-accent-border,var(--line,#dce1e4));border-radius:12px;background:var(--logos-accent-soft,var(--home-soft,#f2f4f5))}.timeline-table-shortcuts h2{margin:0 0 6px;font-size:20px;color:var(--ink,#253e35)}.timeline-table-shortcuts p{margin:0;font-size:12px;line-height:1.8;color:var(--muted,#5c6770)}.timeline-table-shortcuts nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:16px}html:root .timeline-table-shortcuts button{font:inherit;font-size:13px;font-weight:600;line-height:1.6;min-height:46px;padding:10px 12px;border:1px solid var(--logos-accent-border,var(--line,#dce1e4));border-radius:7px;white-space:normal;background:var(--home-surface,#fff);color:var(--logos-accent-ink,#006b85);cursor:pointer}html:root .timeline-table-shortcuts button:hover{background:var(--logos-accent);color:var(--logos-on-accent,#fff)}.timeline-table-shortcuts button:focus-visible{outline:3px solid var(--logos-accent-ink,#006b85);outline-offset:3px}@media(max-width:600px){.timeline-table-shortcuts{padding:16px 14px;margin:18px 0}.timeline-table-shortcuts h2{font-size:18px}.timeline-table-shortcuts nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}html:root .timeline-table-shortcuts button{font-size:12px}}

/* The era menu and view tabs remain in place while the selected table scrolls. */
html:has(body.timeline-page){scrollbar-gutter:stable}
html:root .timeline-table-dialog[open]{width:min(1240px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);margin:auto}
html:root .timeline-table-dialog .rpt-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 20px 12px;background:var(--home-surface,#fff);color:var(--ink,#253e35);border-color:var(--line,#dce1e4)}
html:root .timeline-table-dialog .rpt-header h2{font-size:21px;line-height:1.5;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root .timeline-table-dialog .rpt-header small{line-height:1.5;font-size:10px}
.timeline-compare-menu{grid-column:1/-1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;min-width:0}
html:root .timeline-table-dialog .timeline-compare-menu button{font:inherit;font-size:11px;line-height:1.5;min-width:0;height:42px;padding:6px 7px;border:1px solid var(--line,#dce1e4);border-radius:6px;background:var(--home-soft,#f2f4f5);color:var(--ink,#253e35);white-space:normal;cursor:pointer}
html:root .timeline-table-dialog .timeline-compare-menu button[aria-pressed=true],html:root .timeline-table-shortcuts button[aria-pressed=true]{background:var(--logos-accent,#006b85);border-color:var(--logos-accent,#006b85);color:var(--logos-on-accent,#fff)}
html:root .timeline-table-dialog .timeline-compare-menu button:focus-visible{outline:3px solid var(--logos-accent-ink,#006b85);outline-offset:2px}
html:root .timeline-table-dialog .rpt-body{overscroll-behavior:contain;scrollbar-gutter:stable}
html:root .timeline-table-dialog .era-view-switch{position:sticky;top:-18px;z-index:10;padding:10px 0;margin-top:0;background:var(--home-surface,#fff);border-bottom:1px solid var(--line,#dce1e4)}
@media(max-width:700px){html:root .timeline-table-dialog[open]{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}html:root .timeline-table-dialog .rpt-header{padding:12px;gap:10px}html:root .timeline-table-dialog .rpt-header h2{font-size:18px}.timeline-compare-menu{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}html:root .timeline-table-dialog .timeline-compare-menu button{height:40px;font-size:10px;padding:4px}html:root .timeline-table-dialog .era-view-switch{top:-13px}}

/* Switching tables changes content in place; supporting notes stay below it. */
html:root .timeline-table-dialog .rpt-header>.era-view-switch{grid-column:1/-1;position:static;top:auto;padding:5px 0 0;margin:0;border:0;background:var(--home-surface,#fff)}
html:root .timeline-table-dialog .rpt-body{overflow-anchor:none;padding-top:12px}
html:root .timeline-table-dialog .era-table-scroll{height:min(58dvh,600px);max-height:min(58dvh,600px)}
.timeline-table-notes{font-size:12px;border-top:1px solid var(--line,#dce1e4);margin:14px 0 0;padding:12px 0;color:var(--muted,#5c6770)}.timeline-table-notes>summary{font-weight:600;color:var(--logos-accent-ink,#006b85);cursor:pointer}.timeline-table-notes>div{margin-top:12px}
.timeline-table-dialog .era-event-table caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Selected records stay outside the scrollable options, with adjacent navigation. */
.tov-era-pin{display:grid;grid-template-columns:auto minmax(110px,1fr) auto;align-items:center;gap:8px;width:min(100%,510px);min-height:56px}.tov-era-pin strong{font-size:12px;line-height:1.7;text-align:center;color:var(--logos-accent-ink,#006b85)}html:root .tov-era-pin button{font:inherit;font-size:11px;min-height:36px;padding:6px 9px;border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-surface,#fff);color:var(--ink,#253e35);cursor:pointer}html:root .tov-era-pin button:disabled{opacity:.4;cursor:default}
html:root .tov-groups{display:flex;flex-direction:column;overflow:visible;max-height:none;gap:8px;position:sticky;top:calc(var(--logos-header-height,130px) + 12px)}
.tov-person-pin{display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;height:92px;min-width:0;padding:10px;border:1px solid var(--logos-accent-border,var(--line,#dce1e4));border-radius:7px;background:var(--home-surface,#fff);color:var(--ink,#253e35);flex:none}.tov-person-pin>div:first-child{min-width:0}.tov-person-pin small{display:block;font-size:10px;line-height:1.6;color:var(--muted,#5c6770);margin-bottom:5px}.tov-person-pin strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.7;color:var(--logos-accent-ink,#006b85)}.tov-person-steps{display:flex;gap:4px;flex:none}html:root .tov-person-pin button{display:block;box-sizing:border-box;width:34px;height:36px;min-height:36px;padding:3px;text-align:center;font:inherit;font-size:17px;border:1px solid var(--line,#dce1e4);border-radius:5px;background:var(--home-soft,#f2f4f5);color:var(--logos-accent-ink,#006b85);cursor:pointer}html:root .tov-person-pin button:disabled{opacity:.35;cursor:default}.tov-person-pin-mobile{display:none}
html:root .tov-groups .tov-person-search{position:static;padding:0;flex:none}.tov-group-options{display:flex;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain;max-height:min(360px,calc(100dvh - var(--logos-header-height,130px) - 204px));min-height:70px;padding:2px 3px 2px 2px;scrollbar-width:thin}.tov-group-options>button{flex:none}
@media(max-width:900px){.tov-heading{flex-wrap:wrap}.tov-era-pin{width:100%}}@media(max-width:600px){.tov-era-pin{grid-template-columns:auto minmax(0,1fr) auto;gap:5px;margin-top:10px}.tov-era-pin strong{font-size:11px}html:root .tov-era-pin button{font-size:10px;padding:6px 7px}.tov-person-pin-desktop{display:none}.tov-person-pin-mobile{display:flex;position:sticky;top:calc(var(--logos-header-height,206px) + 6px);z-index:15;height:80px;margin:0 0 10px}.tov-person-pin-mobile strong{font-size:13px}html:root .tov-groups{position:static}.tov-group-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:195px;gap:5px}.tov-group-options .tov-no-person{grid-column:1/-1}}
.tov-group-options{height:min(360px,calc(100dvh - var(--logos-header-height,130px) - 204px))}@media(max-width:600px){.tov-group-options{height:195px}.timeline-page .tov-event[data-tov-record]{scroll-margin-top:96px}}

.tov-group-content{box-sizing:border-box;height:min(620px,calc(100dvh - var(--logos-header-height,130px) - 24px));min-height:300px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-top:12px;padding:2px 10px 12px 2px}
@media(max-width:600px){.tov-group-content{height:min(560px,calc(100dvh - var(--logos-header-height,206px) - 104px));min-height:240px;padding-right:5px}}
html:has(body.timeline-page){overflow-anchor:none}html:root .tov-groups{position:static}.tov-person-pin-desktop{position:sticky;top:calc(var(--logos-header-height,130px) + 12px);z-index:15}
html:has(body.timeline-page){scroll-behavior:auto}

html:root .tov-groups{align-items:stretch}
