/* Vremenska crta Tanaha. Boje i fontovi sajta (shared.css); vrpce kao u skici: Tora bordo, Proroci maslina, Spisi oker, hramovi terakota. */
.vc {
  --vc-bg: #f6f1e7; --vc-paper: #fbf8f1; --vc-ink: #2b2420; --vc-muted: #6e625a; --vc-rule: #ddd2c1;
  --vc-band-a: #efe7d8; --vc-band-b: #f5efe3;
  --vc-tora: #651829; --vc-tora-ink: #fff7f2; --vc-proroci: #69774b; --vc-proroci-ink: #fbfaf4;
  --vc-spisi: #c4923f; --vc-spisi-ink: #2b2016; --vc-hram: #b5523b;
  width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 72px; color: var(--vc-ink);
}
.vc * { box-sizing: border-box; }
.vc-top { display: grid; gap: 10px; max-width: 760px; margin-bottom: 26px; }
.vc-eyebrow { font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--vc-tora); }
.vc h1 { margin: 0; font: 500 clamp(32px, 4.6vw, 48px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.vc-he { font-family: "Times New Roman", serif; font-weight: 400; color: var(--vc-muted); font-size: .62em; margin-left: .3em; letter-spacing: 0; }
.vc-lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--vc-muted); }

.vc-legend { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; font-family: var(--sans); margin: 20px 0 14px; }
.vc-legend button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--vc-rule); border-radius: 8px; background: var(--vc-paper); min-width: 0; }
.vc-legend button b { font-size: 14.5px; font-weight: 700; }
.vc-legend button small { grid-column: 2; font-size: 12.5px; color: var(--vc-muted); }
.vc-legend button .vc-sw { grid-row: 1 / span 2; }
.vc-legend button:focus-visible { outline: 2px solid var(--vc-tora); outline-offset: 2px; }
.vc-legend button[aria-pressed="false"] { opacity: .45; }
.vc-legend button[aria-pressed="false"] b { text-decoration: line-through; }
.vc-keys { display: grid; gap: 6px; align-content: center; font-size: 12.5px; color: var(--vc-muted); padding: 4px 6px; }
.vc-keys > span { display: inline-flex; align-items: center; gap: 8px; }
.vc-sw { display: inline-block; width: 26px; height: 12px; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.vc-sw.t { background: var(--vc-tora); } .vc-sw.p { background: var(--vc-proroci); } .vc-sw.s { background: var(--vc-spisi); }
.vc-sw.h { height: 4px; clip-path: none; background: var(--vc-hram); border-radius: 2px; }
.vc-sw.d { background: repeating-linear-gradient(115deg, var(--vc-spisi) 0 6px, #d9b479 6px 9px); }
.vc-sw.r { height: 0; clip-path: none; border-top: 2px dashed var(--vc-muted); }

/* Široki zaslon: razdoblja kao stupci (nisu u mjerilu), knjige kao vrpce, hramovi kao linija pri dnu. */
.vc-scroller { overflow-x: auto; border: 1px solid var(--vc-rule); border-radius: 10px; background: var(--vc-paper); -webkit-overflow-scrolling: touch; }
.vc-tl { position: relative; min-width: 1100px; display: grid; grid-auto-rows: 30px; row-gap: 7px; padding-bottom: 18px; }
.vc-band { grid-row: 1 / 21; z-index: 0; }
.vc-band:nth-of-type(odd) { background: var(--vc-band-a); } .vc-band:nth-of-type(even) { background: var(--vc-band-b); }
.vc-band.on { background: #ead9c9; }
.vc-period { all: unset; box-sizing: border-box; cursor: pointer; font-family: var(--sans); }
.vc-tl .vc-period { z-index: 1; grid-row: 1 / span 3; align-self: stretch; padding: 12px 12px 8px 10px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px dashed var(--vc-rule); }
.vc-period b { font-weight: 700; font-size: 13.5px; line-height: 1.2; color: var(--vc-ink); }
.vc-period span { font-size: 12.5px; color: var(--vc-muted); font-variant-numeric: tabular-nums; }
.vc-period.on b { color: var(--vc-tora); }
.vc-period:focus-visible { outline: 2px solid var(--vc-tora); outline-offset: -3px; }

.vc-bk { all: unset; box-sizing: border-box; cursor: pointer; z-index: 2; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0 12px; margin: 0 2px; font: 700 13px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .15s ease, filter .15s ease; }
.vc-bk.t, .vc-chip.t { background: var(--vc-tora); color: var(--vc-tora-ink); }
.vc-bk.p, .vc-chip.p { background: var(--vc-proroci); color: var(--vc-proroci-ink); }
.vc-bk.s, .vc-chip.s { background: var(--vc-spisi); color: var(--vc-spisi-ink); }
.vc-bk.dash, .vc-chip.dash { background: repeating-linear-gradient(115deg, var(--vc-spisi) 0 10px, #d9b479 10px 14px); color: var(--vc-spisi-ink); }
.vc-bk:hover { filter: brightness(1.08); transform: translateY(-1px); }
.vc-bk:focus-visible { outline: 3px solid var(--vc-ink); outline-offset: 1px; }
.vc-bk.on { box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); filter: saturate(1.15); }
.vc .dim { opacity: .12; pointer-events: none; }

.vc-tm { all: unset; box-sizing: border-box; cursor: pointer; z-index: 2; align-self: end; margin: 0 6px; padding-bottom: 2px; font: 600 12.5px/1.25 var(--sans); color: var(--vc-hram); border-bottom: 4px double var(--vc-hram); }
.vc-tm.cont { border-image: linear-gradient(90deg, var(--vc-hram) 85%, transparent) 1; }
.vc-tm:focus-visible { outline: 2px solid var(--vc-hram); outline-offset: 2px; }
.vc-tm.on { color: var(--vc-ink); }

/* Uski zaslon: popis po razdobljima, a ne okomita crta (do pet vrpci jedna uz drugu ne bi se mogle pročitati). */
.vc-list { display: none; }
.vc-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vc-group { background: var(--vc-paper); border: 1px solid var(--vc-rule); border-radius: 10px; padding: 10px 12px 12px; }
.vc-group:has(.vc-period.on) { background: #ead9c9; }
.vc-list .vc-period { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; min-height: 44px; padding: 6px 2px; }
.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vc-chron { margin-bottom: 10px; }
.vc-chron .vc-chips { margin: 0; align-items: center; }
.vc-chron-note { font: 400 13px var(--sans); color: var(--vc-muted); }
.vc-chip { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 6px; font: 700 14px var(--sans); }
.vc-chip.h { background: none; color: var(--vc-hram); border-bottom: 4px double var(--vc-hram); border-radius: 0; padding: 6px 2px; font-weight: 600; }
.vc-chip.on { box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); }
.vc-chip.h.on { color: var(--vc-ink); box-shadow: none; }
.vc-chip:focus-visible { outline: 3px solid var(--vc-ink); outline-offset: 2px; }

.vc-detail { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; background: var(--vc-paper); border: 1px solid var(--vc-rule); border-radius: 10px; padding: 22px 24px; }
.vc-kicker { font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--k); color: color-mix(in srgb, var(--k) 45%, #1d1714); } /* boja skupine, potamnjena za kontrast 4,5 */
.vc-detail :is(h2, h3, h4) { font: 500 28px/1.15 var(--serif); margin: 4px 0 2px; text-wrap: balance; }
.vc-heb { font: 400 14px var(--sans); color: var(--vc-muted); }
.vc-detail p { font-size: 17px; line-height: 1.62; margin: 12px 0 0; max-width: 64ch; }
.vc-facts { display: grid; gap: 10px; align-content: start; margin: 0; font: 400 14px var(--sans); border-left: 1px solid var(--vc-rule); padding-left: 20px; }
.vc-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vc-muted); }
.vc-facts dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.vc-facts a { color: var(--vc-tora); font-weight: 600; text-underline-offset: 3px; }
.vc-note { font: 400 13px/1.55 var(--sans); color: var(--vc-muted); margin: 22px 0 0; max-width: 80ch; }
.vc-note a { color: var(--vc-tora); font-weight: 600; text-underline-offset: 3px; }

.vc-all { margin-top: 36px; border-top: 1px solid var(--vc-rule); padding-top: 18px; }
.vc-all summary { cursor: pointer; font: 600 16px var(--sans); color: var(--vc-tora); min-height: 44px; display: flex; align-items: center; }
.vc-all-h { font: 500 22px var(--serif); margin: 28px 0 6px; }
.vc-opis { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--vc-rule); }
.vc-opis h4 { font: 500 22px/1.2 var(--serif); margin: 4px 0 2px; }
.vc-opis p { font-size: 16px; line-height: 1.6; margin: 8px 0 0; max-width: 64ch; }
.vc-opis .vc-facts { font-size: 14px; }
.vc-opis .vc-facts, .vc-opis .vc-heb { margin-top: 0; }

@media (max-width: 900px) { /* do 900px popis umjesto široke crte (i na tabletu, veći dodirni ciljevi); isto u /js/vremenska-crta.js */
  .vc { width: calc(100% - 32px); padding: 36px 0 56px; }
  .vc-scroller { display: none; }
  .vc-list { display: block; }
  .vc-keys { flex-basis: 100%; }
  .vc-legend { gap: 8px; }
  .vc-legend button { flex: 1 1 calc(50% - 8px); }
  .vc-group .vc-detail { margin: 12px 0 0; border-color: var(--vc-tora); }
  .vc-detail, .vc-opis { grid-template-columns: 1fr; }
  .vc-detail { padding: 18px; }
  .vc-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--vc-rule); padding-top: 14px; }
  .vc-detail :is(h2, h3, h4) { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .vc-bk { transition: none; } .vc-bk:hover { transform: none; } }
/* Dodirni ciljevi na mobitelu i tabletu: najmanje 44 px (i usko mjesto poput "Gilgal", poveznice u opisu) */
@media (max-width: 900px), (pointer: coarse) {
  .vc-chip { min-width: 44px; justify-content: center; }
  dd a { display: inline-block; padding: 14px 0; margin-block: -14px; }
}
