/* Navigace zastavkami. Nacte se az za puvodnimi styly JR. */
.jrnav{box-sizing:border-box;margin:12px 0;padding:12px 16px;max-width:1215px;border:1px solid #c7c7c7;border-left:4px solid #c71925;background:#fff;font:14px/1.5 Arial,Helvetica,sans-serif;color:#222}
.jrnav p{margin:0 0 5px}.jrnav p:last-child{margin:0}.jrnav p>strong{margin-right:24px}.jrnav p>span{display:inline-block}.jrnav a,.time-table .stations a.jrnav-stop{color:#a3131e;text-decoration:underline;text-underline-offset:2px}.time-table .stations a.jrnav-stop:hover{color:#174f89;background:#fff0c2}.time-table .stations a.jrnav-stop:focus-visible,.jrnav a:focus-visible{outline:2px solid #174f89;outline-offset:2px}.time-table .stations [aria-current=location]{font-weight:bold}.jrnav .jrnav-notice{font-size:12px;color:#665200}.time-table .stations .jrnav-unavailable{cursor:help}.time-table .stations th em{font-style:italic}
/* Puvodni CSS odkazovalo na chybejici obrazky z Internet Archive. */
html{background:#e6e7e8}a#ci-logo span{background:none}p.icons a.back,p.icons a.back:hover{background:none;padding-left:5px}
body.jrnav-index{box-sizing:border-box;width:auto;max-width:960px;margin:24px auto;padding:0 20px;font:16px/1.6 Arial,sans-serif;background:#fff;color:#222}.jrnav-index h1{font-size:28px;line-height:1.3}.jrnav-index h2{font-size:21px}.jrnav-index a{color:#a3131e}.jrnav-index li span{color:#555}.jrnav-index section{border-top:1px solid #ccc;margin-top:24px;padding-top:12px}
@media print{.jrnav{display:none}.time-table .stations a.jrnav-stop{color:inherit;text-decoration:none}}

/* v2: klidne odkazy zastavek, zvyrazneni az pri ovladani. */
.time-table .stations a.jrnav-stop{color:inherit;text-decoration:none}
.time-table .stations a.jrnav-stop:hover,.time-table .stations a.jrnav-stop:focus-visible{color:#a3131e;text-decoration:underline;background:#fff0c2}
.jrnav-directions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.jrnav-directions a,.jrnav-directions span{display:inline-block;padding:6px 10px;border:1px solid #bbb;border-radius:3px;text-decoration:none;background:#f6f6f6;color:#333}
.jrnav-directions span[aria-current]{background:#a3131e;border-color:#a3131e;color:white}
.jrnav-directions a:hover{border-color:#a3131e;color:#a3131e}
.jrnav-footer-input{display:block;box-sizing:border-box;width:100%;margin-top:6px;padding:10px;font:inherit;border:1px solid #aaa;border-radius:3px}.jrnav-index fieldset{padding:16px;border:1px solid #ccc}.jrnav-index button{padding:10px 14px;font:inherit;cursor:pointer}

/* PDF ma tri sloupce provoznich dnu. */
.time-table .times table thead,.time-table .times table thead tr,.time-table .times table thead tr th{position:static;left:auto}
.time-table .times table th{padding:7px 4px;border:1px solid #ccc;font-weight:bold;text-align:center}
.time-table .times table td.hour{width:4%;font-weight:bold}
.time-table .times table td.minute{width:29.33%}
.time-table .times sup{font-size:.75em;margin-left:1px}
.time-table .times abbr{text-decoration:none;cursor:help}
.pdf-header{box-sizing:border-box;display:grid;grid-template-columns:138px minmax(0,1fr) auto;align-items:center;gap:28px;width:1215px;max-width:100%;margin:12px 0;padding:12px 16px;border:1px solid #c7c7c7;border-left:4px solid #c71925;background:#fff;font:14px/1.5 Arial,Helvetica,sans-serif}.pdf-header a#ci-logo{float:none;display:block;margin:0;width:138px;height:70px}.pdf-header .jrnav{margin:0;padding:0;border:0;background:transparent;min-width:0}.pdf-header .pdf-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;justify-self:end}.pdf-header .pdf-actions a{white-space:nowrap;color:#a3131e;text-decoration:underline}.time-table .notes ul{margin-top:12px}@media print{.pdf-actions{display:none!important}}
.time-table .stations tr.zone2 th,.time-table .stations tr.zone2 td{background:#e8e8e8}.time-table .stations abbr{cursor:help;text-decoration:none;margin-right:2px}.time-table .times abbr{text-decoration:none;cursor:help}.time-table .times .departure{white-space:nowrap}.time-table .times .departure-note{font-size:1em;font-weight:normal;vertical-align:baseline;margin-left:1px}.time-table .times .departure-note[title]{cursor:help}.time-table .times table thead,.time-table .times table thead tr,.time-table .times table thead tr th{position:static;left:auto}.time-table .times table th{padding:7px 4px;border:1px solid #ccc;font-weight:bold;text-align:center}.time-table .times table td.hour{width:4%;font-weight:bold}.time-table .times table td.minute{width:auto;font-weight:bold}.batch-footer{clear:both;padding:10px 6px;border-top:1px solid #ccc;white-space:pre-wrap;font:13px/1.5 Arial,sans-serif}

.time-table .notes li.note-gap{margin-top:1.3em}
.jr-footer{clear:both;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;width:1215px;max-width:100%;box-sizing:border-box;padding:10px 5px;font:12px/1.7 Arial,sans-serif;color:#606060}.jr-footer p#copy{float:none;width:auto;margin:0;padding:0}.jr-footer a{color:#a3131e}.jr-footer .jr-print{white-space:nowrap;font-size:14px;padding:0 5px}@media print{body>.pdf-header,body>.jr-footer{display:none!important}body>.time-table{margin-top:0!important}.time-table a{color:inherit;text-decoration:none}}

/* Screen-only adaptation; printing retains the original side-by-side timetable. */
@media screen and (max-width:1300px){
 html{overflow-x:hidden}body{box-sizing:border-box;width:100%;max-width:1280px;padding:0 16px 16px;margin:0 auto}
 .pdf-header,.jr-footer,.time-table{box-sizing:border-box;width:100%;max-width:100%}
 .time-table::after{content:"";display:block;clear:both}
 .time-table .stations{box-sizing:border-box;width:215px}
 .time-table .times{box-sizing:border-box;width:calc(100% - 215px);overflow-x:auto;-webkit-overflow-scrolling:touch}
 .time-table .times table{min-width:540px}.time-table.day-columns-4 .times table{min-width:640px}
 .pdf-header{gap:16px;grid-template-columns:138px minmax(0,1fr)}
 .pdf-header .pdf-actions{grid-column:2;align-items:flex-start;justify-self:start;gap:8px}
 .jr-footer p#copy{min-width:0}.jr-footer .jr-print{white-space:normal;text-align:right}
}
@media screen and (max-width:650px){
 body{padding:0 8px 12px;font-size:12px}
 .pdf-header{grid-template-columns:1fr;padding:12px;gap:12px;font-size:13px;margin:8px 0}
 .pdf-header a#ci-logo{width:110px;height:auto}.pdf-header a#ci-logo img{width:110px;height:auto}
 .pdf-header .pdf-actions{grid-column:1;gap:10px}.pdf-header .pdf-actions a{white-space:normal}
 .jrnav p>strong{display:block;margin-right:0}.jrnav-directions{gap:6px}
 .jrnav-directions a,.jrnav-directions span{padding:8px;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
 .time-table{display:flex;flex-direction:column;font-size:12px}
 .time-table .head{order:0;float:none;width:100%}.time-table .head h1{display:flex;align-items:center;font-size:15px;line-height:1.4}
 .time-table .head h1 .no{float:none;flex:0 0 60px;width:60px;font-size:30px;line-height:1.8}
 .time-table .head h1 .name{padding:8px;text-align:left}
 .time-table .times{order:1;float:none;display:block;width:100%;max-width:100%;padding-bottom:5px}
 .time-table .times::before{content:"Časy odjezdů · tabulku lze posouvat do stran ↔";display:block;padding:8px;color:#555;font:12px/1.4 Arial,sans-serif}
 .time-table .times table th{padding:6px 3px;font-size:11px}.time-table .times table td{padding:5px 3px;font-size:12px}
 .time-table .stations{order:2;float:none;display:block;width:100%;border-top:1px solid #ccc;margin-top:10px}
 .time-table .stations table thead,.time-table .stations table thead tr,.time-table .stations table thead tr th{position:static;left:auto}
 .time-table .stations table th,.time-table .stations table td{padding:7px 6px}
 .time-table .notes{order:3;float:none;clear:none;padding:10px 8px;overflow-wrap:anywhere}
 .time-table .batch-footer{order:4;padding:10px 8px;font-size:12px}
 .jr-footer{flex-direction:column;gap:12px;padding:12px 4px;font-size:11px}.jr-footer .jr-print{font-size:14px;text-align:left;padding:6px 0}
}
