/* Austrian School visual timeline — readable, full-width, paper */
.tl-page{max-width:100%;padding:0 0 6vh}
.tl-hero{width:min(1120px,92vw);margin:110px auto 22px;padding:0 4px}
.tl-hero .kick{font-size:.78rem;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.tl-hero h1{font-family:var(--disp);font-weight:700;font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.15;margin:0 0 12px}
.tl-hero .sub{color:var(--m);font-size:1.05rem;max-width:62ch;line-height:1.6}
.tl-hero .counts{display:flex;flex-wrap:wrap;gap:18px;margin-top:22px}
.tl-hero .counts div{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--m)}
.tl-hero .counts b{display:block;font-family:var(--disp);font-size:1.7rem;font-weight:400;color:var(--gold);letter-spacing:0;text-transform:none}

.tl-toolbar{width:min(1400px,96vw);margin:0 auto 12px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.tl-toolbar .left,.tl-toolbar .right{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.tl-toolbar input[type=search]{font:inherit;padding:10px 16px;border-radius:999px;border:1px solid var(--gb);background:var(--glass);color:var(--ink);min-width:min(240px,70vw)}
.tl-toolbar input::placeholder{color:var(--m)}
.tl-seg{display:flex;gap:3px;padding:3px;border-radius:999px;border:1px solid var(--gb);background:var(--glass);flex-wrap:wrap}
.tl-seg button{font:inherit;font-size:.82rem;border:0;background:none;color:var(--m);padding:7px 12px;border-radius:999px;cursor:pointer}
.tl-seg button.on{background:var(--ink);color:var(--deep)}
.tl-zoom{display:flex;gap:6px}
.tl-zoom button{width:36px;height:36px;border-radius:50%;border:1px solid var(--gb);background:var(--glass);color:var(--ink);cursor:pointer;font-family:var(--disp);font-size:1.1rem}
.tl-hint{width:min(1400px,96vw);margin:0 auto 10px;font-size:.78rem;color:var(--m)}

/* Board: sticky names + scrollable chart */
.tl-board{
  width:min(100%,100vw);max-width:100%;margin:0;position:relative;border-radius:0;
  border:1px solid var(--gb);border-radius:12px;overflow:hidden;
  background:#f7efdc; /* site light paper */
  color:#2a1a12;
  display:grid;grid-template-columns:260px 1fr;
  min-height:min(82vh,900px);
  box-shadow:inset 0 0 0 1px rgba(42,26,18,.04);border-left:none;border-right:none;
}
html[data-theme=dark] .tl-board{
  background:#f7efdc; /* keep paper even in dark theme for legibility of the chart */
  color:#2a1a12;
}
.tl-names{
  position:sticky;left:0;z-index:5;
  background:linear-gradient(90deg,#f3e8c9 0%,#f7efdc 92%);
  border-right:1px solid rgba(42,26,18,.12);
  overflow:hidden;
  display:flex;flex-direction:column;min-height:0;
}
.tl-names-head{
  position:sticky;top:0;z-index:6;flex:none;
  height:56px;display:flex;align-items:flex-end;padding:0 12px 10px;
  background:linear-gradient(90deg,#f0e4bf 0%,#f7efdc 92%);
  border-bottom:1px solid rgba(42,26,18,.12);
  font-family:var(--disp);font-style:italic;font-size:.82rem;color:#6b5844;
  box-sizing:border-box;
}
.tl-names-body{flex:1;overflow:hidden;position:relative}
.tl-names-inner{position:relative}
.tl-name-row{
  display:flex;align-items:center;gap:10px;
  padding:0 10px 0 12px;box-sizing:border-box;
  cursor:pointer;border-left:3px solid transparent;
}
.tl-name-row:hover,.tl-name-row.on{background:rgba(154,109,20,.10);border-left-color:#9a6d14}
.tl-name-row .face{
  width:38px;height:38px;border-radius:50%;flex:none;
  object-fit:cover;border:1.5px solid #c6a35f;background:#3a2a20;
}
.tl-name-row .mono{
  width:38px;height:38px;border-radius:50%;flex:none;
  display:grid;place-items:center;
  font-family:var(--disp);font-weight:700;font-size:.85rem;
  color:#f4ead6;border:1.5px solid #c6a35f;
  background:radial-gradient(circle at 35% 30%,#2a1a12,#8a7a62 70%);
}
.tl-name-row .meta{min-width:0;line-height:1.15}
.tl-name-row .nm{
  font-family:var(--disp);font-weight:600;font-size:14.5px;color:#2a1a12;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;
}
.tl-name-row .lf{font-size:11px;color:#6b5844;margin-top:2px}

.tl-scroll{
  overflow:auto;position:relative;-webkit-overflow-scrolling:touch;
  background:#f7efdc;
  cursor:grab;
}
.tl-scroll.dragging{cursor:grabbing}
.tl-axis{
  position:sticky;top:0;z-index:4;
  height:56px;background:#f7efdc;
  border-bottom:1px solid rgba(42,26,18,.14);
  box-shadow:0 2px 8px rgba(42,26,18,.06);
}
.tl-axis svg,.tl-scroll > svg{display:block}

.tl-era-label{font-family:var(--disp);font-style:italic;fill:#5a4634}
.tl-year{font-family:var(--ui);fill:#6b5844}
.tl-bar{opacity:.92}
.tl-work{cursor:pointer}
.tl-link{fill:none;stroke:#8a6420;stroke-opacity:.12;pointer-events:none;stroke-width:1.4}
.tl-link.hi{stroke-opacity:.75;stroke-width:2.2}
.tl-link.inf{stroke-dasharray:5 4}

@media (prefers-reduced-motion:reduce){
  .tl-scroll,.tl-card,.tl-name-row{scroll-behavior:auto;transition:none!important}
}

@media (max-width:720px){
  .tl-board{grid-template-columns:148px 1fr;min-height:70vh;border-radius:8px}
    .tl-name-row{padding:0 6px 0 6px;gap:7px}
  .tl-name-row .face,.tl-name-row .mono{width:30px;height:30px}
  .tl-name-row .nm{font-size:12px;max-width:100px}
  .tl-name-row .lf{font-size:10px}
}

/* Detail card — always light house style (cream + dark text); legible in dark mode too */
.tl-card{
  position:fixed;z-index:80;
  right:max(16px, calc((100vw - 1440px)/2 + 16px));
  bottom:20px;
  width:min(420px, calc(100vw - 24px));
  max-height:min(72vh, 580px);
  overflow:auto;
  padding:20px 20px 18px;
  border-radius:14px;
  border:1px solid rgba(154,109,20,.45);
  background:#f7efdc; /* solid cream — never black */
  color:#2a1a12;
  box-shadow:0 22px 60px -12px rgba(0,0,0,.45), 0 0 0 1px rgba(42,26,18,.06);
  transform:translateY(16px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s, transform .18s;
}
html[data-theme=dark] .tl-card{
  /* Keep cream panel even when the page is dark — readable over the chart */
  background:#f7efdc;
  color:#2a1a12;
  border-color:rgba(154,109,20,.55);
  box-shadow:0 22px 60px -10px rgba(0,0,0,.65), 0 0 0 1px rgba(42,26,18,.08);
}
.tl-card.open{opacity:1;transform:none;pointer-events:auto}
.tl-card .x{
  position:absolute;top:10px;right:12px;width:36px;height:36px;
  border:1px solid rgba(42,26,18,.22);border-radius:50%;
  background:#efe4c4;color:#2a1a12;font-size:1.25rem;line-height:1;cursor:pointer;
}
.tl-card .who{display:flex;gap:12px;align-items:center;margin-bottom:12px;padding-right:36px}
.tl-card .who img,.tl-card .mono{width:56px;height:56px;border-radius:50%;object-fit:cover;border:1.5px solid #c6a35f;flex:none}
.tl-card .mono{display:grid;place-items:center;font-family:var(--disp);font-weight:700;background:radial-gradient(circle at 35% 30%,#2a1a12,#a99c86);color:#1b1206}
.tl-card .work-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:10px;padding-right:28px}
.tl-card .work-head .cover{
  flex:none;width:92px;height:auto;aspect-ratio:280/400;object-fit:cover;
  border:1px solid rgba(42,26,18,.2);border-radius:3px;background:#fff;
  float:none;margin:0;
}
.tl-card .work-head .meta{min-width:0;flex:1}
.tl-card h3{
  font-family:var(--disp);font-size:1.45rem;line-height:1.25;font-weight:700;
  margin:0 0 8px;color:#2a1a12;
}
.tl-card .life{
  color:#8a6420;font-style:italic;font-family:var(--disp);
  font-size:1.05rem;margin:0 0 10px;line-height:1.35;
}
.tl-card .pill{
  display:inline-block;margin:0 6px 0 0;padding:5px 10px;
  font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  border-radius:999px;background:rgba(154,109,20,.16);color:#8a6420;
  border:1px solid rgba(154,109,20,.35);font-weight:600;
}
.tl-card .pill.ext-pill{background:rgba(90,122,148,.14);color:#3d5a72;border-color:rgba(90,122,148,.4)}
.tl-card p{font-size:1rem;line-height:1.6;color:#2a1a12;opacity:1;margin:12px 0;clear:both}
.tl-card p b{color:#2a1a12;font-weight:700}
.tl-card .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;clear:both}
/* Primary gold button */
.tl-card a.btn.tl-btn-primary,
.tl-card .tl-btn-primary{
  text-decoration:none;font-size:.95rem;padding:10px 16px;
  background:linear-gradient(135deg,#c6a35f,#9a6d14);color:#1b1206!important;
  border:0;border-radius:999px;font-weight:600;cursor:pointer;display:inline-block;
}
/* Secondary light “More” button — never black/glass */
.tl-card .tl-btn-more,
.tl-card button.tl-btn-more{
  text-decoration:none;font-size:.95rem;padding:10px 16px;
  background:#efe4c4;color:#2a1a12!important;
  border:1px solid rgba(154,109,20,.45);border-radius:999px;
  font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;
}
.tl-card .tl-btn-more:hover{background:#e8d7a8}
.tl-card .tl-btn-more .chev{font-size:1.05em;color:#8a6420}
.tl-card .ext{font-size:.9rem;color:#6b5844}
.tl-card ul{margin:8px 0 0 18px;padding:0}
.tl-card li{margin:6px 0;font-size:.95rem;line-height:1.45;color:#2a1a12}
.tl-card li a{color:#8a6420;font-weight:600}
@media (max-width:720px){
  .tl-card{
    left:12px;right:12px;bottom:12px;width:auto;
    max-height:min(78vh, 620px);
    border-radius:16px;
  }
  .tl-card .work-head{flex-direction:row}
  .tl-card .work-head .cover{width:76px}
  .tl-card h3{font-size:1.2rem}
}

.tl-legend{width:min(1400px,96vw);margin:18px auto 0;display:flex;flex-wrap:wrap;gap:14px;font-size:.8rem;color:var(--m)}
.tl-legend span{display:inline-flex;align-items:center;gap:6px}
.tl-legend i{width:14px;height:14px;border-radius:3px;display:inline-block}
.tl-list{width:min(1120px,92vw);margin:28px auto 0;display:none}
.tl-list.on{display:block}
.tl-list h2{font-family:var(--disp);font-size:1.4rem;margin-bottom:12px}
.tl-list details{border-top:1px solid var(--gb);padding:10px 0}
.tl-list summary{cursor:pointer;font-family:var(--disp);font-size:1.05rem}
.tl-list ul{margin:8px 0 0 18px;color:var(--m);font-size:.9rem}
.tl-list a{color:var(--gold)}

.pv-draft{position:fixed;top:0;left:0;right:0;z-index:100;background:linear-gradient(90deg,#6b1e2a,#9a6d14);color:#fff;text-align:center;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;padding:6px 10px;font-weight:600}
body{padding-top:28px}

.tl-lines-btn{
  font:inherit;font-size:.82rem;padding:7px 14px;border-radius:999px;cursor:pointer;
  border:1px solid var(--gb);background:var(--glass);color:var(--m);
}
.tl-lines-btn.on{background:var(--ink);color:var(--deep);border-color:transparent}

/* tlblurb-center: title keeps --disp; blurb Manrope(GR)/Poppins(EN); whole hero centered */
.tl-hero{text-align:center}
.tl-hero .sub{margin-left:auto;margin-right:auto;font-style:normal;letter-spacing:normal}
html[lang="el"] .tl-hero .sub{font-family:"PL Home Manrope",var(--ui,system-ui),sans-serif;font-weight:500}
html:not([lang="el"]) .tl-hero .sub{font-family:"PL Home Poppins",var(--ui,system-ui),sans-serif;font-weight:400}
.tl-hero .counts{justify-content:center}
.tl-hero .counts div{text-align:center}
@font-face{font-family:"PL Home Manrope";src:url(/fonts/hs-manrope-vf-greek-latin.woff2?v=7cd7d026) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:"PL Home Poppins";src:url(/fonts/ns-poppins-400-latin.woff2?v=ff36646d) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* tl-tools-center: center Εργαλεία/Tools + date above title */
.tl-hero .gm{justify-content:center}
/* tl-ext-el: Greek bib + mises dual links for off-site works */
.tl-card a.tl-btn-secondary{
  display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;
  background:transparent;color:var(--ink,#1a1a1a);border:1px solid color-mix(in srgb, var(--ink,#1a1a1a) 28%, transparent);
  text-decoration:none;font:600 13px/1.2 system-ui,sans-serif
}
.tl-card a.tl-btn-secondary:hover{background:color-mix(in srgb, var(--ink,#1a1a1a) 6%, transparent)}
