/* Laika līnija „Jomu celiņi” (A70) — pārnests no prototipa 4b (arhivs/prototipi/ll/ll.css + celini.css); pamati — lapas.css +
   tema.css („Lasāmzāle”, A25). Izteiksme: dziļums (laikmetu slāņi, celiņi, punkti ar ēnu, izvēles stikls). */
.tl-galva { margin-bottom: 0; }
.tl-kluda { padding: 20px; background: #fdecec; border-left: 4px solid var(--karogs); }
.tl-maigs { color: var(--p-maigs); font-size: 14px; }
.tl-melnr { display: inline-block; font-size: 13px; color: var(--p-maigs); border: 1px dashed var(--p-linija); border-radius: 3px; padding: 1px 7px; }
.tl-bez { font-family: var(--f-v); font-size: 21px; margin: 0 0 4px; color: var(--p-maigs); }

/* ---------- filtri ---------- */
.tlf { margin: 22px 0 18px; }
.tlf__tel { display: flex; align-items: center; gap: 14px; }
.tlf__atv { display: none; }
.tlf__sk { margin: 0; font-size: 15px; color: var(--p-maigs); }
.tlf__v { display: grid; gap: 12px; margin-top: 8px; }
.tlf__grupa { display: grid; gap: 4px; }
.tlf__n { margin: 0; font-size: 13px; color: var(--p-maigs); }
.tlf__jomas, .tlf__avoti { display: flex; flex-wrap: wrap; gap: 6px; }
.tlf__rinda { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; }
.tlf-j, .tlf-a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 1px solid var(--p-linija); border-radius: 20px;
  background: var(--p-virsma); color: var(--p-teksts); font: inherit; font-size: 15px; cursor: pointer; }
.tlf-j__k { width: 12px; height: 12px; border-radius: 50%; background: var(--tema); }
.tlf-j[aria-pressed="false"], .tlf-a[aria-pressed="false"] { opacity: .5; background: transparent; }
.tlf-j[aria-pressed="false"] .tlf-j__k { background: none; box-shadow: inset 0 0 0 2px var(--tema); }
.tlf-a:disabled { opacity: .35; cursor: not-allowed; }
.tlf__c { font-size: 13px; color: var(--p-maigs); }
.tlf select { min-height: 40px; max-width: 260px; padding: 0 8px; border: 1px solid var(--p-linija); border-radius: 6px; background: var(--p-virsma); font: inherit; font-size: 15px; color: var(--p-teksts); }
.tlf__notirit { min-height: 40px; background: none; border: 0; font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--p-maigs); }
.tlf__aizv { display: none; }

/* ---------- celiņi ---------- */
.tc-lauks { background: var(--a-papirs); box-shadow: var(--l-ena); padding: 12px 8px 10px; border-bottom: 6px solid var(--karogs); }
.tc-lkr { position: relative; height: 62px; margin-bottom: 4px; }
.tc-lkp { position: absolute; top: 0; bottom: 0; display: grid; align-content: end; gap: 0; padding: 0 6px 4px; border: 0; border-left: 1px solid var(--a-linija); background: none;
  font: inherit; text-align: left; cursor: pointer; color: inherit; overflow: hidden; }
.tc-lkp__n { font-family: var(--f-v); font-size: 15px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-lkp--bez .tc-lkp__n { display: none; }
.tc-lkp--bez { padding: 0 3px 4px; }
.tc-lkp__g { font-size: 12px; color: var(--p-maigs); }
.tc-lkp:hover .tc-lkp__n { text-decoration: underline; text-underline-offset: 3px; }
.tc-lkp[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--karogs); }
.tc-lkp--viss { position: absolute; left: 0; width: 108px; border-left: 0; }
.tc-svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; user-select: none; }
.tc-svg:focus-visible { outline: 3px solid var(--p-fokuss); }
.tc-lk--0 { fill: #f3f0e9; } .tc-lk--1 { fill: #e9e5dc; }
.tc-bez { fill: rgba(35, 30, 22, .045); stroke: rgba(35, 30, 22, .12); stroke-dasharray: 3 3; }
.tc-cel { stroke-width: 1; opacity: .35; }
.tc-p { fill: var(--k); stroke: #fff; stroke-width: 1; filter: drop-shadow(0 1px 1.2px rgba(35, 30, 22, .35)); }
.tc-p--ap { fill: #fff; stroke: var(--k); stroke-width: 2; }
.tc-desm { stroke-width: 3; stroke-linecap: round; opacity: .55; }
.tc-g rect { fill: var(--karogs); }
.tc-g text { font: 700 10px var(--f-t); fill: var(--karogs); }
.tc-izv { fill: rgba(158, 48, 57, .08); stroke: var(--karogs); stroke-width: 1.5; pointer-events: none; }
.tc-ass { font: 12px var(--f-t); fill: var(--p-maigs); }
.tc-cn { font: 14px var(--f-t); fill: var(--p-teksts); }
.tc-cn--g { fill: var(--karogs); font-size: 13px; }
.tc-cn--nav { opacity: .35; }
.tc-leg { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 6px 6px 0; font-size: 13px; color: var(--p-maigs); }
.tc-leg span { display: inline-flex; align-items: center; gap: 6px; }
.tc-leg i { display: inline-block; }
.tc-leg__p { width: 11px; height: 11px; border-radius: 50%; background: var(--p-maigs); }
.tc-leg__p--ap { background: #fff; box-shadow: inset 0 0 0 2px var(--p-maigs); }
.tc-leg__d { width: 22px; height: 3px; background: var(--p-maigs); border-radius: 2px; opacity: .7; }
.tc-leg__g { width: 9px; height: 9px; background: var(--karogs); transform: rotate(45deg); }
.tc-leg__pad { margin-left: auto; }

/* ---------- izvēlētā laika saraksts ---------- */
.tc-s { margin-top: 26px; }
.tc-s__g { display: flex; align-items: center; gap: 12px; }
.tc-s__aizv { display: none; }
.tc-s__virs { margin: 0; font-size: 18px; }
.tc-s__virs b { font-family: var(--f-v); font-weight: 400; font-size: 30px; }
.tc-s__lk { background: var(--a-papirs); padding: 16px 20px; margin-top: 12px; max-width: 860px; box-shadow: var(--l-ena); }
.tc-h { font-family: var(--f-v); font-size: 22px; margin: 28px 0 12px; }
.tc-h span, .tc-gads h4 span { font-family: var(--f-t); font-size: 15px; color: var(--p-maigs); margin-left: 8px; }
.tc-galv { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.tc-gads { display: grid; grid-template-columns: 90px 1fr; gap: 0 16px; padding: 10px 0; border-top: 1px solid var(--a-linija); }
.tc-gads > .tl-vel { grid-column: 2; justify-self: start; }
.tc-gads h4 { font-family: var(--f-v); font-size: 26px; margin: 0; }
.tc-gads h4 span { display: block; margin: 2px 0 0; }

/* ---------- notikuma rinda ---------- */
.tl-saraksts { list-style: none; margin: 0; padding: 0; }
.tl-n { border-left: 4px solid var(--tema); background: var(--a-papirs); margin: 0 0 4px; }
.tl-n--atm { border-left-style: dashed; }
.tl-n__r { display: grid; grid-template-columns: 108px 1fr; gap: 2px 14px; width: 100%; padding: 9px 12px; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.tl-n__r:hover { background: color-mix(in srgb, var(--tema) 6%, transparent); }
.tl-n__kas { font-size: 17px; line-height: 1.4; }
.tl-n__z { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tl-dat { font-size: 15px; color: var(--p-maigs); white-space: nowrap; padding-top: 1px; }
.tl-n__r .tl-dat { white-space: normal; }   /* „12.–13. septembris” (133 px) neietilpa 108 px kolonnā un uzlīda tekstam (7. sesija, 27.10.) */
.tl-dat[data-prec="ap"], .tl-dat[data-prec="desmitgade"] { font-style: italic; }
.tl-dat[data-prec="desmitgade"]::after { content: ' ⟷'; font-style: normal; }
.tl-z { font-size: 13px; color: var(--p-maigs); display: inline-flex; align-items: center; gap: 5px; }
.tl-z__k { width: 9px; height: 9px; border-radius: 50%; background: var(--tema); }
.tl-z--atm { color: #7a4b00; }
.tl-z--st { color: var(--karogs); }
.tl-n__det { padding: 2px 14px 14px 134px; }
.tl-n .tl-atsk, .tl-n .tl-cit { margin: 0 14px 10px 134px; }
.tl-cit { font-size: 15px; } .tl-cit q { font-style: italic; }
.tl-av { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.tl-av li { display: grid; gap: 2px; font-size: 15px; }
.tl-av__v { font-size: 12px; color: var(--p-maigs); }
.tl-av q { font-style: italic; }
.tl-av__s { font-size: 14px; }
.tl-stp { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--karogs); border-radius: 6px; background: var(--p-virsma); color: var(--karogs);
  font-size: 15px; text-decoration: none; margin: 4px 6px 0 0; }
.tl-stp:hover { background: var(--karogs); color: #fff; }
.tl-vel { min-height: 40px; margin: 2px 0 8px; padding: 0 12px; border: 1px dashed var(--p-linija); border-radius: 6px; background: none; font: inherit; font-size: 15px; cursor: pointer; color: var(--p-maigs); }
.tl-sakl > .tl-n:nth-child(n+7) { display: none; }
.tl-izc { outline: 3px solid var(--karogs); outline-offset: 2px; }

/* ---------- galvenā notikuma kartīte ---------- */
.tl-g { position: relative; background: var(--a-papirs); padding: 18px 20px 16px; box-shadow: var(--l-ena); border-top: 5px solid var(--tema); }
.tl-g__m { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0 0 6px; }
.tl-g__m .tl-dat { color: var(--p-teksts); font-size: 15px; }
.tl-g__v { font-family: var(--f-v); font-size: 23px; line-height: 1.25; margin: 0 0 10px; }
.tl-g__cit { margin: 0 0 10px; padding: 0 0 0 14px; border-left: 2px solid var(--p-linija); font-size: 15px; }
.tl-g__cit p { margin: 0; font-style: italic; }
.tl-g__cit footer { font-size: 14px; margin-top: 4px; }
.tl-g__d summary { cursor: pointer; font-size: 15px; color: var(--p-maigs); min-height: 32px; }
.tl-g__d[open] summary { margin-bottom: 8px; }

@media (max-width: 767px) {
  .tlf { position: sticky; top: 0; z-index: 20; margin: 0 -16px 14px; padding: 8px 16px; background: var(--a-papirs); border-bottom: 1px solid var(--a-linija); }
  .tlf__atv { display: inline-flex; min-height: 48px; }
  .tlf__v { display: none; }
  .tlf--atverts .tlf__v { display: grid; position: fixed; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; padding: 18px 16px 20px; background: var(--a-papirs);
    box-shadow: 0 -10px 40px rgba(35, 30, 22, .35); border-radius: 14px 14px 0 0; z-index: 40; }
  .tlf__rinda { display: grid; gap: 12px; }
  .tlf select { max-width: none; width: 100%; min-height: 48px; }
  .tlf-j, .tlf-a { min-height: 48px; }
  .tlf__aizv { display: inline-flex; min-height: 48px; }
  body.tl-lapa-ciet { overflow: hidden; }
  .tc-lauks { margin: 0 -16px; padding: 10px 16px; box-shadow: none; }
  .tc-lkr { position: static; height: auto; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
  .tc-lkp, .tc-lkp--viss { position: static; flex: 0 0 auto; width: auto; max-width: 170px; min-height: 52px; border: 1px solid var(--a-linija); border-radius: 6px; padding: 4px 10px; background: var(--a-papirs); }
  .tc-lkp__n, .tc-lkp--bez .tc-lkp__n { display: -webkit-box; -webkit-line-clamp: 2; font-size: 14px; }
  .tc-celv { display: grid; grid-template-columns: repeat(6, 13.41%); padding-left: 18.44%; font-size: 10.5px; line-height: 1.1; text-align: center; position: sticky; top: 65px; z-index: 5; background: var(--a-papirs); padding-top: 4px; padding-bottom: 4px; }
  .tc-celv span { border-bottom: 3px solid var(--k); padding-bottom: 2px; overflow: hidden; overflow-wrap: anywhere; }
  .tc-svg { cursor: pointer; }
  .tc-leg__pad { margin-left: 0; width: 100%; }
  .tc-s { display: none; }
  .tc-s--atv { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: 12vh; z-index: 40; margin: 0; overflow: auto; padding: 0 16px 24px; background: var(--a-galds);
    border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(35, 30, 22, .4); }
  .tc-s__g { position: sticky; top: 0; z-index: 2; background: var(--a-galds); padding: 12px 0 8px; }
  .tc-s__aizv { display: inline-flex; align-items: center; justify-content: center; order: 2; margin-left: auto; width: 48px; height: 48px; flex: 0 0 48px; font-size: 28px; border: 1px solid var(--a-linija); border-radius: 50%; background: var(--a-papirs); cursor: pointer; }
  .tc-s__virs b { font-size: 24px; }
  .tc-galv { grid-template-columns: 1fr; }
  .tc-gads { grid-template-columns: 1fr; }
  .tc-gads > .tl-vel { grid-column: 1; }
  .tc-gads h4 span { display: inline; margin-left: 8px; }
  .tl-n__r { grid-template-columns: 1fr; padding: 10px 12px; }
  .tl-n__z { grid-column: 1; }
  .tl-n__det { padding: 2px 12px 12px; }
  .tl-n .tl-atsk, .tl-n .tl-cit { margin: 0 12px 10px; }
  .atsk__abas { grid-template-columns: 1fr; }
  .tl-stp, .tl-vel { min-height: 48px; }
}
