/* CSS Document */

* { padding:0px; margin:0px; }

/*  tagy      */
HTML { color: honeydew; font-family: var(--dm-font-family); background-color: #000000; padding:0; margin: 0; font-size: var(--dm-font-size-standard); }
BODY 	{  padding: 0; margin: 0; background-color: black; background-repeat: no-repeat; background-position: center top; }
FORM 	{ padding:0; margin:0; }
INPUT, BUTTON 	{ background-color: black; color:white; margin:0px; padding: 0px; border: 1px solid white; }
SELECT 	{ background-color: black; color:white; margin:0px; padding: 0px; border: 1px solid white; }
TEXTAREA { background-color: black; color:white; margin:0px; padding: 0px; border: 1px solid white; }
IFRAME	{ border:1px solid white; }

INPUT[type=text] { border-radius: 6px; }
/*INPUT[type=button],INPUT[type=reset], BUTTON	{ border-radius: 6px; color: var(--dm-color-link); padding-left: 4px; padding-right: 4px; }
#editor INPUT[type=button]:hover,INPUT[type=reset]:hover	{ color: black; background-color: var(--dm-color-link); cursor:pointer; }*/
#editor TEXTAREA, SELECT	{ border-radius: 6px; }


A			{ font-weight:bold; }
A:link		{ color: var(--dm-color-link); text-decoration: none; }
A:visited	{ color: var(--dm-color-link); text-decoration: none; }
A:hover		{ text-decoration: underline; }
A:active	{ color: #00FF33; text-decoration: underline; }
A.edit		{ color: var(--dm-color-edit-link); font-weight:normal; }
A.intralink	{ color: green !important;  }
A.redirect	{ color: #fce; }
A.redirectH { color: #f55; }		  /* skrytej redirect */
A.redirectD { color: #deb; }		  /* dilovej redirect */
A.lh		{ position:relative; top:-0.5em; font-size:10px; font-weight:normal;}
A.secure	{ background-position: center right; background-repeat: no-repeat; padding-right: 16px;}
A.external	{ background-position: center right; background-repeat: no-repeat; padding-right: 16px;}




/*  new layout */
#container { display: flex; flex-direction: column; }
#header { /*border: 1px dotted green;*/ display: none; height:110px; order: 1;
    background-repeat: no-repeat;
    align-items: stretch;
}
#headerMob { /*border: 1px dotted orange;*/ display: flex; flex-direction: column; order: 2;
    height:82px; background-repeat: no-repeat; background-position: center; background-size: 66%; }
#headerMobTop { display: flex; height:62px; }
#headerMobNav { display: flex; font-size:8pt; line-height: 14pt; height:20px;}
#middle { /*border: 1px dotted darkred;*/ display:flex; flex-direction: column; order: 5; }
#menu   { /*border: 1px dotted deepskyblue;*/ width: 100%; min-width: 225px; font-size: var(--dm-font-size-menu); order: 3;
    box-sizing: border-box;

}

#content { /*border: 1px dotted plum;*/ width: 100%; order: 2;}
#footer {  /*border: 1px dotted slateblue;*/
    font-size: 8pt; text-align: center; border-top: 1px dotted gray; padding-top: 5px;
    order: 20;
}


#leftcol IFRAME { border:none; }

#clearer { clear: both; text-align:center; }


#return { height:60px; width:525px; position:absolute; left:0px; top:0px; cursor:pointer; }

#return A	{ height:59px; width:524px; display:block; }

#sites	{ /*font-size:10px;*/ margin-left:auto; margin-right:auto; position:absolute; top:2px; left:320px; }
#sites A { font-weight: normal !important; color:white !important; }



#headerRight { text-align: right; flex-grow: 1; margin-right: 12px; font-size: 10pt; height:110px; display:flex; justify-content: space-between; flex-direction: column; box-sizing: border-box; padding-top: 6px; padding-bottom: 7px; }
#headerLeft { text-align: left; flex-grow: 1; margin-left: 12px; font-size:10pt; height:110px; display:flex; justify-content: space-between;flex-direction: column; box-sizing: border-box; padding-top: 6px; padding-bottom: 7px;}
.headerLogoLink A { display: block; width: 500px; height: 72px; }
.headerBreadcrumb { font-size: 9pt; line-height: 1.25em; opacity: .92; }
.headerRightLine { min-height: 18px; }
.headerSearch FORM { display: inline-block; }
.headerSearch INPUT[type=text] { padding: 2px 4px; }
.headerSearch INPUT[type=button] { padding-left: 5px; padding-right: 5px; }

.headerIcon { width: 56px; height: 56px;}



#whisper {
    visibility: hidden;
    z-index: 1000;
    position: absolute;
    right: 61px;
    top: 104px;
    display: block;
    font-size: 10pt;
}




/*   levej sloupec  OK  */

.leftinfo,
.leftinfobottom {
    text-align: center;
    margin: 10px 10px 12px 10px;
}
.leftinfotitle {
    font-weight: bold;
    display: block;
    padding: 5px 0 4px 0;
    margin: 0;
    text-align: center;
}
.lefthr {
    height: 1px;
    margin: 10px 12px;
    background: rgba(128,128,128,.32);
}

.date { margin-top: 3px; }

.dmMenuStatusSection {
    margin: 12px 0 16px 0;
    padding-top: 2px;
}

.dmMenuInfoBox {
    margin: 6px 10px 8px 10px;
    padding: 7px 8px;
    border: 1px solid rgba(128,128,128,.34);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
    text-align: center;
    font-size: 92%;
    line-height: 1.35em;
}

.dmMenuInfoBox .date {
    margin: 2px 0;
    padding: 2px 0;
    border-bottom: 1px dotted rgba(128,128,128,.22);
}

.dmMenuInfoBox .date:last-child {
    border-bottom: 0;
}

.dmMenuRss {
    margin: 7px 10px 0 10px;
    text-align: center;
    font-size: 92%;
}

.dmMenuRss A {
    display: block !important;
    padding: 5px 7px !important;
    border: 1px solid rgba(128,128,128,.30);
    border-radius: 6px;
    background: rgba(255,255,255,.025);
    font-weight: normal !important;
}

.dmMenuRss A:hover {
    background: rgba(255,255,255,.10);
}


/* nove menu */
/*#menu		{ margin-bottom:8px; }*/
#menu A		{ text-decoration: none; /*color: #f90;*/ font-weight:normal; display: inline-block; padding: 1px 3px; border-radius: 4px; }
#menu A:hover { text-decoration: none; background-color: rgba(255,255,255,.10); }
#menu A.secure,
#menu A.external {
    padding-right: 22px;
    background-position: right 5px center;
    background-repeat: no-repeat;
}
.dmSideMenu { box-sizing: border-box; }
.dmMenuColumns { display: flex; }
.dmMenuSection { box-sizing: border-box; }
.menuItems	{ margin-left:18px; margin-right:10px; margin-bottom:10px;margin-top: 7px; line-height: 145%; list-style: none; padding-left: 0; }
.menuItems LI { margin-top: 1px; margin-bottom: 1px; }
.menuL2		 { margin-left:12px; }
.menuL2Title { line-height: 17px; margin-left:12px; margin-top: 6px; opacity: .78; font-weight: bold; font-size: 90%; }
.menuTitle	{ margin-left:10px; margin-right:10px; margin-top:12px; padding-bottom:3px; border-bottom: 1px solid rgba(128,128,128,.35); font-weight:bold; letter-spacing:.02em; font-size: 100%; line-height: 1.25em; }

#mainMenu { flex-grow: 1; }
#suberMenu {  border-left: 1px dotted gray; flex-grow: 1; }

/* footer  OK */

.itemedited	{ text-align:center; font-style: italic; padding-bottom:0.2em; }



span.hilite {background:yellow; }

#login, .logdiv, #searchbox, #tools {  text-shadow: 2px 2px #000000; }

.hilite1 {background:#ffff66; color:black; }
.hilite2 {background:#a0ffff; color:black; }
.hilite3 {background:#99ff99; color:black; }
.hilite4 {background:#ff9999; color:black; }
.hilite5 {background:#ff66ff; color:black; }
.hilite6 {background:#880000; color:white; }
.hilite6 {background:#00aa00; color:white; }
.hilite6 {background:#886800; color:white; }



/* novinky           */
#welcome	{ text-align:justify; border:1px solid #444; }
#welcome P	{ margin-bottom:0.5em; }
.pad1		{ padding:1%; }

#news_news	{ text-align:left; border:1px solid #444; width:300px; float:left; }
#news_news A	{ font-weight:normal;}

#news_aktual { margin-left:310px; text-align:left;  }
.news_dil	{  border:1px solid #444; min-height:175px; }

.news_img	{ width:100px; margin:2px 6px 2px 2px; float:left; border:0px; max-height:145px; }
.news_h		{ margin-top:5px; margin-bottom:4px; font-weight:bold; }
.news_text	{ text-align:justify; margin: 2px 15px 2em 5px; line-height:1.2em; }
.news_more	{ text-align:right; font-weight:normal;font-size:10.8em; }
.news_more A { font-weight:normal; }


.news_sp	{ height:15px; }

.news_title { vertical-align:top;text-align:center;color:white;font-weight:bold;overflow: hidden; height:18px; background-repeat: repeat-x; }

.news_item	{  }
.news_dat	{ width:3em; font-size:10.8em; }
.news_line	{ margin-left:20px; }
.news_line A { font-weight:normal; }
.news_deCtn { display:inline-block; margin:2px; }
.news_no    { font-weight: bold; text-align: center; }



#homePage { display: flex; flex-direction: column; }
#homePage H2 { text-align: center; border-bottom: 1px solid #444; padding:2px; font-size: 125%; font-weight: bold;
    /*    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
        background: rgb(49,34,28);*/
    /*    background: linear-gradient(90deg, rgba(49,34,28,1) 0%, rgba(51,24,19,1) 20%, rgba(228,135,54,1) 56%, rgba(136,74,56,1) 100%);*/
    /*    background: rgb(53,32,29); background: linear-gradient(90deg, rgba(53,32,29,1) 0%, rgba(100,36,20,1) 38%, rgba(195,117,61,1) 100%);*/

    color:black; background-color: white;

    /*animation: blink 1s steps(1) infinite;*/

}


#news {  display: flex; flex-direction: column;   }
#newsChanges { font-size: 11pt; min-width: fit-content; border: 1px solid #444; margin-right: 4px;}
#newsChanges A { font-weight: normal;}
#newsIssues { display: flex; flex-direction: column;  }

.newsBooks { display: flex; flex-direction: column; justify-content: space-around; align-items: stretch; }
.newsBook  { border-right: 1px dotted gray; text-align: justify; flex-grow: 1; flex-basis: 100%; flex-shrink: 1; padding: 2px 8px 2px 4px;}
.newsBook:last-of-type  { border-right: 0; }
.newsBook IMG	{ height:145px; margin:2px 6px 2px 2px; float:left; border:0px; }

.newsBookOnly  { border-right: 1px dotted gray; padding: 2px 4px; text-align: center; font-weight: bold; width:33%; }
.newsBookOnly:last-of-type  { border-right: 0; }
.newsBookOnly IMG	{ height:145px; margin:2px 6px 2px 2px; border:0px; max-height: 145px; }

.newsBookTitle { margin-bottom: 5px; }
.newsBookNote { text-align: center; font-size: 10pt; margin-bottom: 5px; }
.newsTranslateNote { text-align: center; font-size: 11pt; margin-top: 5px; margin-bottom: 5px; }

.newsRow  { border: 1px solid #444; margin-bottom: 4px; }
.newsRow:last-of-type { margin-bottom: 0px; }

.newsWelcome { padding: 8px 8px;}
.newsWelcome P { margin-bottom: 0.3em; text-align: justify; }
.newsMore	{ text-align:right; font-weight:normal;font-size:10pt; }
.newsMore A { font-weight:normal; }

.newsNewsDate { font-size: 10pt; }

#rightcol		{ width: 150px; margin:15px 0px 0 0; position: absolute; right: 0; top: 0; }


#prekladometr { border: 1px solid #444; width:137px; font-size:11px;}
#prekladometr A { font-weight:normal; }
.preklad	{ margin-left:2px; margin-top:3px; width: 220px; }
.prekladProgress { text-align: right; }
.prekladTitle { margin-left: 5px; }

#prekladometr3 { display: flex; justify-content: center; align-items: stretch; margin-top: 5px; font-size: 10pt;
    flex-wrap: wrap;
}
.prekladometr3col { border: 1px solid #444; margin-right: 20px;  margin-bottom: 5px; }

.prekladometrFase { text-align: center; border-bottom: 1px solid #444; padding:2px; font-size: 125%; font-weight: bold;
    color:black; background-color: white;
}


.odkazy		{ border: 1px solid #444; width:137px; font-size:111px; margin-top: 15px; text-align:center; margin-bottom:0.5em; }

#annoucment { border: 1px dotted red; color: white; background-color: darkred; margin: 1em; padding: 1em; text-align: center; font-weight: bold; }
#dgbtest { background-color: darkred; position: absolute; top: 0px; left: 50%; width:150px; height:50px; text-align: center; font-weight: bold; padding-top: 20px; }


/*    prostredni sloupec - spolecny  */

.title 		{ font-size:24pt; font-weight:bold; text-align:center;  }
.title2		{ font-size:20pt; font-weight:bold; text-align:center;  }

.subtitle2	{ font-size:20pt; font-weight:bold; text-align:center;  }
.subtitle 	{ font-size:16pt; font-weight:bold; text-align:center;  }

.welcometext 	{ margin-left:15px; margin-right:15px; text-align:justify; }

.loading		{ font-style:italic;  }
#status			{ margin-left:3em; }
.deniedInfo		{ text-align:center; padding:50px; margin:200px 200px; color:white; background-color:#6b130e; border:2px dotted red; font-weight:bold; }




/*   seznamy, se zvyraznovanim             OK          */
.list 			{ border:1px solid #414141; border-collapse:collapse; }
.list TD		{ text-align:left; padding:1px 5px 1px 5px; border:1px solid #414141; }
.list TH		{ background-color: #313131;  text-align:center; vertical-align:middle; border:1px solid #414141; }
.list TR		{ border:1px solid #414141; }
.list TR:hover  { background-color: #1f1f1e; }




.searchtitle	{ font-size:110%; font-weight:bold; margin-top:1em; margin-bottom:4px; }
.searchres		{ text-align:left; padding-left:50px; }
.searchres LI	{ margin-bottom:5px; }
.searchres A	{ font-weight:normal; }
.searchmatch	{ color:#f33; }
.searchnavig	{ margin-top:8px;}


/* mozna vymazat? */
.searchitem		{ font-weight:bold; padding-top:10px; }
.searchrel		{ font-size:190%; font-weight:normal; margin-left:25px; }
.searchintro	{ font-size:180%; padding-left:15px; padding-top:3px; padding-bottom:8px; }
.searchhigh		{ color:red; }

.searchpage .searchintro2 {
    margin: 0.6em 0 1em 0;
}


.searchResultTitle {
    font-weight: bold;
    margin-bottom: 2px;
}

.searchResultMeta {
    font-size: 85%;
    opacity: 0.75;
    margin-bottom: 3px;
}

.searchmatch {
    font-weight: bold;
}
.searchfilters {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;

    margin: 6px 0 8px 0;
    padding: 4px 6px;

    border: 1px solid rgba(128,128,128,0.30);
    font-size: 90%;
    white-space: nowrap;
}

.searchfilters strong {
    margin-right: 2px;
}

.searchfilters select {
    max-width: 180px;
    margin: 0;
    font-size: 95%;
}

.searchfilters a {
    margin-left: 4px;
}

/*  Itemy      OK        */
.itemprev		{ margin-left: 15px; text-align: left; flex-grow: 0; }
.itemprev A		{ font-weight:normal !important; }
.itemnext		{ text-align:right; flex-grow: 0;}
.itemnext A		{ font-weight:normal !important; }
.itemhead		{ text-align:center; flex-grow: 2; flex-basis: 50%; }
.itemcontainer  { margin-left:1%; margin-right:1%; text-align:justify; margin-top: 5px; }
.itemtext		{ text-align: justify; margin-top:1em; margin-left:5px; }

.itemTitle      { display: flex; justify-content: space-between; margin-top: 15px; margin-bottom: 10px; }




/* dily                */
#dilycatcon		{ margin:auto; text-align:center; }
#dilycatcon A	{ display:block; }
#dilycatcon A:hover	{ background-color:#ffffff; color:black; }
.dilypiccat		{ height:140px; border:0px; }
.dilycat		{ text-align:center; height:200px; width:150px; display:block; float:left; }
.dilypicsm IMG	{ height:140px; border:0px; margin-right:20px; float:left; margin-left:20px; }
.dilyinfo		{ text-align:justify; height:150px; }
.dilyinfoprehled { display: flex; flex-wrap: wrap; }
.dilyinfo2      { width: 600px; min-height: 180px; flex-grow: 1; margin:10px; padding: 3px; }
.dilyinfo2:hover { background-color: #111111; /*color: black;*/ }
/*.dilyinfo2:hover A { color: orangered !important; }*/
.dilyinfo2title { font-weight: bold; margin-bottom: 2px; }
.dilyinfo2more  { float: right; }

.dilysvazek		{ margin:0; padding:0.2em 0 0.1em 0; }
.dilyautor		{ margin:0; padding:0; }
.dilyde			{ margin:0; padding:0.1em 0 0 0; font-size:11em; }
.dilycz			{ margin:0; padding:0.4em 0 0.3em 0; font-size:12.3em; }
.dilysubinfo	{ text-align:center; font-size:10.85em; padding-bottom:0.8em; }
.dilytit		{ font-size: 11em; font-weight:bold; }
.dilypost		{ text-align:left; padding:0px 30px 30px 30px; font-size:10pt; }
.dilypostnad	{ font-weight:bold; padding-top:1em; }
.dilyodkazy		{ text-align:justify; margin: 2em 4% 15px 4%; font-size:10pt; }
.dilyimg		{ height:290px; border:0px; }
.dilyilu		{ height:260px; border:0px; }

.dilyilluitem  { display:block; border:1px solid gray; padding:1px; margin:1px 0 1px 8px; float:right; clear:right; line-height:0px; }
.dilyilluitem IMG {  width:96px; }
.dilyillunadpis { display:block; float:right; width:96px; padding:1px; margin:1px 0 1px 8px; text-align:center !important; font-size:111px; }

.dilycoveritem { height:96px; margin:1px; border:1px solid gray; padding:1px; }
.dilycoverlist { float:right;  padding:1px; margin-right:0px; display:block; clear:right; margin-left:4px; font-size:19px; text-align:center; }
.dilycoverlist H6 { font-size:19px; }


#dil2Tbl          { clear:left;  }
#dil2Tbl    TH   { padding-right:10px !important;}

#dil2covers       { clear: both; float:right; margin-left: 10px; padding-left:10px; padding-bottom: 10px; margin-bottom: 10px; border-left: 1px dotted gray; border-bottom: 1px dotted gray; }
#dil2maincovers IMG   { height:290px; padding:1px; border: 1px solid gray;  }
#dil2othercover IMG  { height:100px; border: 1px solid gray; padding: 1px; }
#dil2subinfo        { margin-top:1em; margin-bottom: 1em; line-height: 200%; }

.dil2cvrcpr         { text-align: center; font-size:9pt;}
#dily2ilus          { float:right; clear:right; margin-left: 10px; padding-left: 10px; border-left: 1px dotted gray; }
#dily2ilus IMG      { width: 96px; padding: 1px !important; margin: 1px !important; border: 1px solid gray !important;}
#dily2ilus A        { display: block; }
.dily2illunadpis   { text-align: center; font-weight: bold; padding:1px; margin:1px 0 1px 8px; font-size:10pt; }
.dil2cz     { font-size:13pt; font-weight:bold;}
.dil2de     { font-size: 10pt;}
.dil2sepr       { height: 10pt; }


#cykl2subinfo { margin: 1em 5em; }
.cyklTitleNo  { font-size: 110pt; }

.cyklGalleryNo  { font-weight: bold; text-align: center;}
.cyklGalleryNo:hover, .cyklGalleryNo:hover A { background-color: white; color:black !important;}
.cyklGalleryNo A { color: white;}

.cyklGalleryItem { display: inline-block; padding:4px; text-align: center; }
.cyklGalleryItem { color:white !important; }
.cyklGalleryItem IMG { height: 290px; }


.portalList { margin-left: 2em; column-width: 300px; text-align: left; }
.portalCategory { border-bottom: 1px dotted gray; }
.portalCategoryName { margin-top: 8px; border-bottom: 1px dotted #333;}

.gallery { display: flex; flex-wrap: wrap; justify-content: space-around;}


#itemtext H2~TABLE { margin-top: 1em; }
#itemtext H3~TABLE { margin-top: 1em; }


#requestAddition { display: block; float:right; width: 250px; border:1px solid gold; padding:4px; text-align: center; cursor: pointer; background-color: #31070e; margin-left: 1em; }



/* slovnik                */

.slovnikcat		{ font-size:16pt; font-weight:bold; text-align:center;margin-top:1em; }
#slovnikcatlist { display: flex; flex-wrap: wrap; justify-content: center; }

.slovniklist	{ break-before: avoid-column; padding-left:20px; }

.slovnikcount	{ font-size:11pt; text-align:center;  margin-top:20px; margin-bottom: 15px; }

.redirinfo		{ font-size:9pt; color:gray; }

.slovnikcatcont { margin-bottom: 25px; margin-left: 50px; margin-right:20px; }
.slovnikcatletter { font-weight:bold;font-size:20pt; margin:0.4em; }
.slovnikletterlisting { flex: 1 1 0px; min-width: 200px; }

.slovnikCategoryList { /*column-width: 250px; margin-left: auto; margin-right: auto;*/ margin-top: 25px; margin-left: 30px; display:flex; flex-wrap: wrap; align-content: center; justify-content: space-around; }

.slovnikCategoryRegister { margin: 10px 20px 5px 20px; border: 1px solid #414141; padding: 5px; overflow: hidden; }
.slovnikRefList { margin: 10px 20px 5px 20px; border: 1px solid #414141; padding: 5px; overflow: hidden; }
.slovnikRefs { font-size:80%; vertical-align: super; color: #626262 }
.slovnikRefs A { font-weight: normal !important; }

/*    extinfo  */
.extinfo 		{ float:right; clear:right; margin-left:15px; margin-top:15px; }

.extinfohash	{ width:406px;border:1px solid #414141; border-collapse:collapse; }
.extinfohashimg		{ width:400px;  }

.extinfotab		{ width:330px;border:1px solid #414141; border-collapse:collapse; font-size: 10pt; }
.extinfotab TH		{ color:white; background-color:#313131; font-weight:bold; border:1px solid #414141; text-align:left; height:25px; padding-left:25px; vertical-align: middle;}
.extinfotab TD		{ height:22px;border:1px solid #414141; padding:1px 2px 1px 2px; background-color:black; }

.extinfoimg1		{ width:330px;border: solid 1px #313131; border-collapse:collapse; }
.extinfoimgtip	{ text-align:center; font-size:19px; color:yellow; }
.extinfopic		{ border:0px; padding-top:4px; }

.extinfotooltip { margin:2px;padding:2px;cursor:default;position:absolute;background-color:#fffd98;color:black;font-family:Tahoma;font-size:112px;z-index:100;visibility:hidden; display:block; }

.extinfobar		{ text-align:right; width:98%; margin-top:3px; margin-bottom:4px; font-size: 10pt; }
.extinfobar A	{ font-weight:normal; }
#extinfodatehash	{ display:none; }

#tagListShow { color: var(--dm-color-link); float:left; cursor: pointer; font-size: 10pt; margin-top:3px; margin-bottom:4px; position:relative; }
#tagListTable { border: 1px solid crimson; position: absolute; top: 20px; left: 50px; font-weight:normal; font-size: 90%; text-align: left; background-color: black; padding: 20px; display: none; width:1000px; }
#tagListTable SPAN { cursor: pointer; }
#tagListTable SPAN:hover { color: crimson; }


.chronoline		{ margin-left:auto; margin-right:auto; }
.chronoperioda	{ font-size:1150%; font-weight:bold;clear:both; text-align:center; }
.chronolink		{ width:170px; text-align:center; }

.chronotable { margin-left:auto; margin-right:auto; }
.chronotable TABLE	{ border:1px solid #414141; border-collapse:collapse;  }
.chronotable TH		{background-color: #313131;  text-align:center; vertical-align:middle; border:1px solid #414141;}
.chronotable TD		{vertical-align:top;  text-align:center; border:1px solid #414141; padding:5px;}
.chronotable A		{font-weight:normal; font-size:111px; }
.chronotable TR		{ border:1px solid #414141; }

.chronopre		{ width:170px; }
.chronopost		{ width:230px; }


.chronomain	{ width:850px; height:2000px; margin-left:auto; margin-right:auto; position:relative; }
.chronotop 	{ width:850px; height:552px; background-image:url('/pics/dm/chronoline/top.png'); background-repeat:no-repeat; position:absolute; top:0px; left:0px; }
.chronohelix	{ width:850px; height:1000px; background-image:url('/pics/dm/chronoline/helix.png'); position:absolute; top:552px; left:0px; background-repeat: repeat-y; }
.chronocircles	{ width:850px; height:2000px; background-image:url('/pics/dm/chronoline/circle.png'); position:absolute; top:0px; left:0px;  z-index:-100; }
.chronocircle	{ position:absolute; width:107px; height:107px; display:block; z-index:10;}
.chronotext		{ position:absolute; display:block; z-index:20; width:150px; height:50px; color:#333; }

.chronoSekce { width:600px; margin-left: auto; margin-right: auto; margin-bottom: 25px; }
.chronoSekce H2 { width: 100%; border-bottom: 1px dotted gray; text-align: center; }
.chronoYear { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-around;  }
.chronoYear A { padding-right: 15px; /*flex: 1 1 0px;*/  }


.chronoMegaList {   margin-left: auto; margin-right: auto; margin-bottom: 25px; display:flex;  flex-wrap: wrap; max-width: 700px; align-items: flex-start;justify-content: space-between; }
    .chronoPeriod {  width:333px; display: flex; flex-direction: column;   }
    .chronoPeriod H2  { border-bottom: 1px dotted gray; text-align: center; margin-top: 2em; }
    .chronoYears  { display: flex; flex-wrap: wrap; justify-content: space-around;  }
        .chronoYear     { display: inline-block;  text-align: center; flex-grow: 1; flex-basis: 30%; }
        .chronoYear A  { font-weight: normal;}


#poradna	{ margin-left:auto; margin-right:auto; width:500px; }

.portitle	{ margin-bottom:2px; background-color: #222; padding: 3px; border: 1px solid #444; }
.pordotaz	{ border-bottom: 1px dotted gray; width:470px; padding:2px; border-left: 1px dotted gray; }
.porodpov	{ border-top: 1px dotted gray; margin-left:30px; margin-top:8px; padding: 2px 2px 10px;border-right: 1px dotted gray; }
.poruser	{ font-size:90%; font-style: italic; width:120px; text-align:center; margin-left:auto; margin-right:0px;  background-color: #222; padding: 3px; border: 1px solid #444;}
.porotaz	{ font-size:125%; font-weight: bold; padding: 2px;}
.portazatel	{ font-size:90%; font-style: italic; padding:5px;}
.portazname	{ color:yellow; }
.porform	{ width:488px; margin:0 auto 20px auto; background-color: #222; padding:5px; border:1px solid #444; }
.porformline { margin-top:3px; }

.porform INPUT { padding: 2px; }
.porform INPUT[type=text]:hover { border-color: steelblue;  }
.porform INPUT[type=button]:hover { color: black; background-color: white; cursor: pointer; }
.porform TEXTAREA { border-radius: 6px; padding: 2px;}

.porlabel { font-size:80%;color:crimson; }
.poranswering:hover { cursor: pointer; border-color: steelblue; background-color: white; color:black;  }

.poradna_txt { width:100%;height:120px; border-radius: 6px; padding: 2px; }




#cpl			{ font-size:10px; color:black; height:0px; text-align:center; margin:0; }
.piccpr			{ font-size:10.7em; }

/*		pravej sloupec			*/
.rightinfotitle 	{ font-weight:bold; display:block; padding-top:5px; padding-bottom:5px; }
.rightinfo  { background-color: #191970; border: white 1px solid; color: white; text-align: center; margin-bottom:1px; }

#rightcol A { font-weight:normal; }

/*  spolecny             */

.floatR { float:right; }
.floatL	{ float:left; }
.r		{ text-align: right !important; }
.l		{ text-align: left !important; }
.c		{ text-align: center !important; }
DIV.c P { text-align: center !important;}
.j		{ text-align: justify; }

.nw     { white-space: nowrap; }

.hr 	{ width:95%; margin-left:auto; margin-right:auto; height:3px; margin-top:2px; margin-bottom:2px; background-repeat: repeat-x; }
.spacer { height:20px; }
.diamond { text-align: center; margin-top: 5px; margin-bottom: 5px; font-weight: bold;}


.center { margin-left:auto; margin-right:auto; }

.b		{ font-weight:bold; }
.i		{ font-style: italic; }

.vm		{ vertical-align: middle !important;}
.vt		{ vertical-align: top; }
.vb		{ vertical-align: bottom; }

.cl		{ clear:left; }
.cr		{ clear:right; }
.cb		{ clear:both; }

.w600	{ width: 600px; }
.w500	{ width: 500px; }
.w450	{ width: 450px; }
.w400	{ width: 400px; }
.w300	{ width: 300px; }
.w250	{ width: 250px; }
.w200	{ width: 200px; }
.w150	{ width: 150px; }
.w130	{ width: 130px !important; }
.w120	{ width: 120px }
.w100	{ width: 100px; }
.w90	{ width: 90px; }
.w80	{ width: 80px; }
.w70	{ width: 70px; }
.w60	{ width: 60px; }
.w50	{ width: 50px; }
.w40	{ width: 40px; }
.w30	{ width: 30px; }
.w20	{ width: 20px; }
.w16	{ width: 16px; }

.h200	{ height: 200px !important;}
.h80	{ height: 80px; }
.h35	{ height: 35px; }
.h20	{ height: 20px; }
.h16	{ height: 16px; }
.h15	{ height: 15px; }


.f9		{ font-size:19px; }

.noborder { border: 0px; }


/*		administratorska cast		*/

#contextmenu    {position:absolute;border:2px #666666 solid;background-color:#F3F3EF;font-family:Tahoma;cursor:default;font-size:12px;z-index:100;color:black;
    pbackground-image:url('/pics/edit/menu_back.png');background-repeat:repeat-y; line-height:20px; visibility:hidden; }

#contextmenu HR {color:#bbbbbb;padding:0px;margin:0px;height:1px;}
.menuheader     {text-align:center;font-weight:bold;background-color:black;color:white;font-size:10px; height:12px; line-height:14px; }
.menudouble     { display: flex; }

.menuitem       {color:black;padding-left:20px;padding-right:8px;border:1px dotted #eaeaea;}
.menuitem:hover { background-color:#c2d6f2;border:1px solid #5296f7;}

.menuitemShort  {color:black; border:1px dotted #eaeaea; min-width: 80px; display: inline-block; flex-grow: 1; }
.menuitemShort:hover { background-color:#c2d6f2;border:1px solid #5296f7; }

.menuitemLeft { padding-left:20px; padding-right: 8px;}
.menuitemRight { padding-right:20px; padding-left: 8px; text-align: right;}


.menuitemhover  {background-color:#c2d6f2;border:1px solid #5296f7;padding-left:20px;padding-right:8px;}


.icon			{ float:left;position:relative; left:-19px;margin-right:-16px;border:0px;width:16px;height:16px; top:2px; }
.iconR			{ float:right;position:relative; right:-19px; border:0px;width:16px;height:16px; top:2px; }

.icon2			{ width:16px; height:16px; border:0px; vertical-align:middle; }
.icon3			{ width:16px; height:16px; border:0px; vertical-align:middle; margin-right:3px; }


.optTp1			{ padding-left:18px; background-image:url('/pics/edit/ae/tp1.png'); background-repeat:no-repeat;  }
.optTp2			{ padding-left:18px; background-image:url('/pics/edit/ae/tp2.png'); background-repeat:no-repeat;  }
.optTp3			{ padding-left:18px; background-image:url('/pics/edit/ae/tp3.png'); background-repeat:no-repeat;  }
.optTp10		{ padding-left:18px; background-image:url('/pics/edit/ae/tp10.png'); background-repeat:no-repeat;  }
.optTp11		{ padding-left:18px; background-image:url('/pics/edit/ae/tp11.png'); background-repeat:no-repeat;  }


.stat 			{ border:1px solid #414141; border-collapse:collapse; margin-left:auto; margin-right:auto; font-size:10pt; }
.stat TD		{ text-align:left; padding:1px 5px 1px 5px; border: 1px dotted gray;}
.stat TD.r		{ text-align:right; }
.stat TH		{ background-color: #313131; color:white; text-align:center; vertical-align:middle;border:1px solid #414141; }

/*.stat TR:hover	 	{ background-color: red; #222222; }	*/	/* zatim nepouzito */

.stati			{ font-size:75%; color:gray; position:relative; top:-3px; }
.statinc		{ color:green; }
.statdec		{ color:red; }
.statntr		{ color:gray; }


.editbox { padding-bottom:0px;  }

/*.editboxtitle { font-weight:bold; }*/
.editboxtoolbar { height:22px; background-image:url('/pics/edit/back.png');display:block;float:right; }
.editform		{ margin-left:10px; margin-right:10px; line-height:2em; }
.editboxinserttable {position:absolute;right:0px;top:20px; width:300px; background:#F9F8F7 url('/pics/edit/vbar.png') center 4px no-repeat;  border:1px solid #666; padding:16px 8px 3px 8px; font-size:12px; line-height: 20px;}
.editboxinserttable A { font-weight:normal !important; color:black !important;}
.editboxinserttable A:hover { background-color:black !important; color:white !important; }
.ebs			{ font-size:80%; line-height:18px;}

.editchr { font-size:10px; color: gray; float:right; font-weight: normal; margin-right: 5px; margin-top: 3px; }

#editimage		{ text-align:center; margin-top:10px; }
#editimage IMG	{ width:100px;height:100px; margin:5px; }
.editimg		{ background-color:#010120; width:110px; height:140px;float:left; }
.editimg:hover	{ background-color:#202070; }

.editimg2		{ background-color:#010120; width:110px; height:160px;float:left; margin:5px; }

.editwarning	{ text-align:center; margin:10px; background-color:#400; border:1px dashed red; padding:5px; }
.editwarning A	{ color:#ff00ff !important; }

#editimgupload	{ margin:10px; border-collapse: collapse; border:1px solid #777;	}
#editimgupload TH	{ padding-left:15px;font-weight:bold; background-color:#242424; height:25px; vertical-align:middle; text-align:center;}
#editimgupload TD	{ vertical-align:top; background-color:#080808; padding-left:3px; }

.editline		{ margin-top:8px; margin-bottom:2px; }


#editor	TABLE		{ width:100%; }
#editor TD			{ border:1px solid #252525; width:25%;	}
#editor TH			{ background-color:#333; border:1px solid #333; width:25%; border-radius: 6px; }
#editor INPUT[type=text]		{ width:100%; padding: 2px; }
#editor INPUT[type=checkbox]	{ margin:3px; }
#editor INPUT[type=button],INPUT[type=reset]	{ margin:4px; padding: 4px 8px;  }
/*#editor INPUT[type=button]:hover,INPUT[type=reset]:hover	{ color: black; background-color: white; }*/
#editor INPUT[type=file]		{ width:100%; }
#editor TEXTAREA, SELECT	{ width:100%; padding: 1px; border-radius: 6px; }
#editor LABEL		{ padding-left:0.5em; }

.dilUploader { display: block; border: 1px solid #1f1f1e; margin-right: 2px; text-align: center; width: 100px; }
.dilUploader IMG { height: 110px; margin-top: 3px; }
.dilUploader LABEL { padding: 4px;  cursor: pointer; color: var(--dm-color-link); }
.dilUploader LABEL:hover { text-decoration: underline;}
.dilUploaderDim { font-size: 10px;}
.dilUploaderAuflage { background-color:#333; }
#ajax_error { color: white; background-color: crimson; font-size: 16pt; }

.diff-context		{ color: #eee; background:#222; vertical-align:top; }
.diff-deletedline	{ color: #ffa; background:#222; vertical-align:top; }
.diff-addedline		{ color: #cfc; background:#222; vertical-align:top; }
.diffchange			{ color:red; font-weight:bold; vertical-align:top; }
.diff-otitle		{ font-weight:bold; text-align:center; vertical-align:top; }
.diff-ntitle		{ font-weight:bold; text-align:center; vertical-align:top; }
.diff				{ font-size:12px; text-align:left; margin-top:12px; vertical-align:top; }
.diff-delim			{ background:#222; text-align:center; vertical-align:top; padding-bottom:20px; padding-top:20px; font-size:12px; border-bottom:1px gray dotted; border-top:1px gray dotted;  }
.diff-token			{ text-align:center; }
.diff-same			{ text-align:center; font-size:16px; font-weight:bold; background:#222; }



#trinfo { text-align:center; clear:both; margin-top:2em; font-size:10pt; font-style:italic;  }
#trinfo SPAN { font-weight:bold; }
#trinfo A { font-weight:normal !important;}

.trinfoDL { color:#dd3946; margin:20px; }
.trinfoDL SPAN { font-weight:bold; color: honeydew; }
.mchntrnslt { border-left: 2px dotted darkred; padding-left: 4px !important; }
.alternative { border-left: 2px dotted dodgerblue; padding-left: 6px !important; }
.alternativeInfo { color:#dd3946; margin:20px; font-style: italic; }

/*   text              */

#itemtext		{ text-align: justify; margin-top:1em; line-height:1.3em; }


#itemtext H1,
#itemtext H2,
#itemtext H3,
#itemtext H4,
#itemtext H5,
#itemtext H6 {
    margin: 1.15em 0 0 0;
    padding-top: 0;
    padding-bottom: 0.06em;
    line-height: 1.18em;
}

#itemtext H1	{ font-size:190%; padding-bottom:0.12em; }
#itemtext H2	{
    position: relative;
    margin-top: 1.45em;
    padding-bottom: 0.18em;
    font-size:170%;
}

#itemtext H2::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, .32) 0%,
        rgba(255, 255, 255, .22) 42%,
        rgba(255, 255, 255, .08) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
}
#itemtext H3	{ font-size:135%; }
#itemtext H4	{ font-size:120%; }
#itemtext H5	{ font-size:105%; }
#itemtext H6	{ font-size:88%; }

/* Nadpisy jdoucí přímo za sebou tvoří jednu skupinu: bez mezery mezi nimi. */
#itemtext H1 + H2,
#itemtext H1 + H3,
#itemtext H1 + H4,
#itemtext H1 + H5,
#itemtext H1 + H6,
#itemtext H2 + H2,
#itemtext H2 + H3,
#itemtext H2 + H4,
#itemtext H2 + H5,
#itemtext H2 + H6,
#itemtext H3 + H2,
#itemtext H3 + H3,
#itemtext H3 + H4,
#itemtext H3 + H5,
#itemtext H3 + H6,
#itemtext H4 + H2,
#itemtext H4 + H3,
#itemtext H4 + H4,
#itemtext H4 + H5,
#itemtext H4 + H6,
#itemtext H5 + H2,
#itemtext H5 + H3,
#itemtext H5 + H4,
#itemtext H5 + H5,
#itemtext H5 + H6,
#itemtext H6 + H2,
#itemtext H6 + H3,
#itemtext H6 + H4,
#itemtext H6 + H5,
#itemtext H6 + H6 {
    margin-top: 0;
}

/* H2 je hlavní nadpis sekce; pokud za ním následuje podnadpis, necháme po lince malou mezeru. */
#itemtext H2:has(+ H2),
#itemtext H2:has(+ H3),
#itemtext H2:has(+ H4),
#itemtext H2:has(+ H5),
#itemtext H2:has(+ H6) {
    margin-bottom: 0.28em;
}

#itemtext H1:first-child,
#itemtext H2:first-child,
#itemtext H3:first-child,
#itemtext H4:first-child,
#itemtext H5:first-child,
#itemtext H6:first-child {
    margin-top: 0;
}

#itemtext UL, #itemtext OL { margin: 0 0 0 2em;  }
/*#itemtext UL 	{ line-height: 1.5em; margin: 0.3em 0 0 2em; padding:0; }*/
/*#itemtext OL 	{ line-height: 1.5em; margin: 0.3em 0 0 2em; padding:0; }*/
/*margin-left:50px;margin-bottom:0.8em;*/

#itemtext UL LI:first-child { margin-top:0.1em; }


#itemtext LI { margin-bottom: 0.1em; line-height: 1.2em; }

/*#itemtext LI UL {margin-bottom: 0.0em; }*/
/*#itemtext LI OL {margin-bottom: 0.0em; }*/
#itemtext .tree { margin-left:1em; margin-bottom:1em; }

#itemtext .cite	{ margin: 1em 2em;font-size:95%; }
#itemtext .disamb	{ margin-left:2em; margin-bottom:1em; }

#itemtext DIV.hr	{ width:95%; margin-left:auto; margin-right:auto; height:3px; margin-top:10px; margin-bottom:10px; background-repeat: repeat-x; }

#itemtext TD	{ text-align:left; padding:0px 2px; }
#itemtext TH	{ color:white; background-color:#313131; font-weight:bold; text-align:center; height:25px; padding-left:2px; vertical-align: middle;}

#itemtext IMG		{ border:0; margin:0; padding:0; }
.imagebox	{ padding:3px;border:1px solid gray; margin-bottom:4px; }
.imagebox IMG { border:0; }
.image	{ border:1px solid gray; margin:2px; }
.imagecopy { font-size:9pt; text-align:center; }
.imagepopis { font-size:9pt; text-align:center; }
.imagezoom { width:15px; height:11px; display:block; float:right; }
#itemtext .illu		{ border:1px solid gray; float:right; margin-left:8px; margin-bottom:4px; padding:0px; font-size:19px; text-align:center; }

#itemtext HR		{ height: 1px; color: #444; background-color: #444; border: 0px solid #444; margin:15px auto 15px auto; padding:0; text-align:center; }

#itemtext P		{ text-indent:1em;margin-bottom:0.8em; }
#itemtext P.pd	{ margin-bottom:1.6em; }
#itemtext P.np	{ margin-bottom:0;	}

#itemtext PRE,CODE	{ font-size:114px; background-color:#222; border:1px dashed gray; margin:4px; }

#itemtext TD P		{ text-indent:0px !important;}

#itemtext TABLE.bor		{ border:1px solid #414141 !important; }
#itemtext TABLE.bor TD  { border:1px solid #414141 !important; }
#itemtext TABLE.bor TH  { border:1px solid #414141 !important; }

TD.heftList IMG { height: 50px; }
TD.heftList2 IMG { height: 110px; }

#toctable	{ border:1px solid gray; background-color: #151515; padding:5px; /*float:left; clear:left;*/ font-size:9pt; }
#toctable UL	{ list-style:none; margin: 0; padding: 0; line-height:1em; }

#toctable A	{ font-weight:normal !important; }

#toccont	{  }

.toclev1	{ margin-left:0.5em; }
.toclev2	{ margin-left:1.5em; }
.toclev3	{ margin-left:2.5em; }
.toclev4	{ margin-left:3.5em; }
.toclev5	{ margin-left:4.5em; }
.toclev6	{ margin-left:5.5em; }
.toctit		{ font-weight:bold; text-align:center; font-size:9pt; }
#toctoggle	{ font-size:9pt; color: var(--dm-color-link); }

/*
#preview 	  { visibility:hidden; z-index:100; width:300px;height:116px; background-color:#c7d0d9; color:black;
				position:absolute; display:block; text-align:justify; top:0px;
				font-size:10px;line-height:12px;padding:3px;border:1px solid white; overflow:hidden;
			  }
*/

/*      kviz   */
.quiz_no			{ margin-top:10px;font-size:1120%;font-weight:bold; margin-bottom:5px; border-bottom:1px solid #666; }
.quiz_ques			{ margin-left:5%;margin-right:5%; margin-bottom:10px;  }
.quiz_delim			{ height:5px; background-color:#555; }
.quiz_name			{ text-align:center; vertical-align:middle; padding-right:30px; }
.quiz_sel			{ width: 64px; }


.leftad { display:block; width: 120px; height:240px; background-color:#222; border:1px solid white; margin:10px 0px 10px 20px; }
.middlad	{ display:block; width:728px; height:90px; background-color:#222; border:1px solid white; margin-left:auto;	margin-right:auto; margin-top:1em;	position:relative; clear:right; }


#settings TD	{ height:32px; vertical-align:middle; }
.sl	{ font-weight:bold; }
.sp	{ font-size:80%; }


/* galors */
.galorsla	{ font-family:"Perry Rhodan Standard FS"; font-weight:normal; font-size:1150px; margin-top:20px; margin-bottom:20px;}
.galorssm { font-family:"Perry Rhodan Standard FS"; font-weight:normal; font-size:175px; margin-left:15px; margin-right:15px; float:left;}
.galorsG { color:blue; }
.galorsA { color:red; }
.galorsL { color:yellow; }
.galorsO { color:blue; }
.galorsR { color:green; }
.galorsS { color:red; }

.search { margin-top:0px; float:left; width:230px; line-height:18px; }
.searchopt { margin-top:15px;margin-right:15px; text-align:left; line-height:18px; font-size:111px; margin-left:450px; }
.searchoptl { width:160px; display:block;float:left; }

.infoline { height:24px; background-color:#005; border-top:1px solid #aaa; clear:both; text-align:left; margin-top:18px; padding-top:5px; padding-left:15px; padding-right:15px; }
.infoinfo { float:right; }


.items { margin:15px; text-align:left; }
.item  { margin-bottom:20px; }
.itemdil { font-size:12em; color:yellow; font-weight:bold; font-variant:small-caps; }
.itempage { font-style:italic; width:88px;float:left; margin-left:-88px; }
.itemres { margin-left:100px; }
.itemoc { margin-top:4px; }

/*.prefooter { background-color:#004; border-top:1px solid #888;  border-bottom:1px solid #888; height:30px; margin-bottom:20px; margin-top:30px; }*/

.highlight { color:red; }

.anlink { width: 200px; display:block; line-height:16px; float:left; }
.anok { color:green; }
.anno { color:red; }


.catDily { font-size:90%; color: var(--dm-color-cat-dily);}
.catSlovnik { font-size:90%; color: var(--dm-color-cat-slovnik);}
.catCykly { font-size:90%; color: var(--dm-color-cat-cykly);}
.catChronologie { font-size:90%; color: var(--dm-color-cat-chronologie);}
/*.catAutori { font-size:90%; color:#E987E9;}*/
.catCat		{ font-size:90%; color:white; }
.catImage	{ font-size:90%; color: var(--dm-color-cat-image); }


.imageback {  border:1px solid gray;  }
.imageback IMG { border:0px solid black; margin:0; padding:0; }
.imagedimens	{ margin-top:5px; margin-bottom:5px; }
.imagetab		{ padding-top:20px; padding-bottom:20px; }
.imagetab TH	{ background-color: #333; width:110px; padding:5px; }
.imagetab TD	{ border: 1px solid #333; padding:5px; }

.propertytab	{ padding-top:2px; padding-bottom:2px; }
.propertytab TH	{ background-color: #333; width:8px; padding:2px; border-radius: 6px; }
.propertytab TD	{ border: 1px solid #333; padding:2px; border-radius: 6px; }
.propertytab INPUT { padding: 2px; }

#dialog {     position: absolute;  z-index: 100000; visibility: hidden; background-color: rgba(0, 0, 0, 0.7); top: 0; left: 0; height: 100%; width: 100%; }

#dialogHead BUTTON { padding: 6px; margin-top: 3px; margin-right: 3px; }
#dialogHead { display: flex; align-items: center; justify-content: space-between; background-color: #333333;}
#dialogTitle { font-size: 20px; }

#dialogFooter { text-align: center; padding: 5px; }
#dialogFooter INPUT { padding: 5px 15px; }
#dialogFooter INPUT:hover, #dialogHead BUTTON:hover { color: black; background-color: var(--dm-color-link); cursor:pointer;  }
#dialogFade { /*background-color: black; opacity: 100%;*/ }
#dialogForm { width: 50vw; margin-left: auto; margin-right: auto; margin-top: 10vh; background-color: black; border: 1px solid gray; border-radius: 6px; }

.debugError			{ margin-top:5px; border:1px dashed red; padding:5px; background-color:#403000; }
.debugError	LI		{ margin-left:50px; }
.debugErrorNo		{ color:red; font-weight:bold; }
.debugErrorDescr	{}
.debugErrorTitle	{ margin-bottom:5px; margin-left:50px; margin-right:50px; font-weight:bold; font-size:112px; background-color:#605000; padding:10px; border:1px dotted gray; }
.debugDump			{ font-size:112px; width:90% }
.debugStack			{}
.debugTitle			{ margin-left:10px; font-size:113px; margin-bottom:5px; }
.debugErrorStack	{ margin-bottom:5px; margin-left:50px; margin-right:50px; font-weight:bold; font-size:112px; background-color:#605000; padding:10px; border:1px dotted gray; }
.debugFile			{ color:violet; }
.debugLine			{ color:deeppink; }
.debugVariable		{ color:yellowgreen; }



.epetranTable	INPUT	{ border:1px solid #333; }
.epetranTable	SELECT	{ border:1px solid #333;}

/* preklady nove  */

.prklItem { display: inline-block; padding:8px; text-align: center; }
.prklItem A { color:white !important; }
.prklItem:hover { background-color: white;}
.prklItem:hover A { color:black !important;}
.prklItem:hover IMG { opacity:1; }
.prklIcon { height: 168px; }
.prklIconHtv { opacity: 0.9; }
.prklIconOng { opacity: 0.4; }
.prklIconIsu { background-color:black;}
.prklBGDone     { background-color: #003500;}
.prklBGOng      { background-color: #171751; }
.prklBGIssu     { background-color: #44170b; }

.prklTbl 			{ border:1px solid gray; border-collapse:collapse; margin-left:auto; margin-right:auto; }
.prklTbl TD		    {  text-align:left; padding:1px 5px 1px 5px; border:1px dotted gray;  }
.prklTbl TD.r		{ text-align:right; }
.prklTbl TH		    {  background-color: #313131; color:white; text-align:center; vertical-align:middle;border:1px solid gray; padding-left: 6px; padding-right: 6px;}
.prklTbl TR.deleted TD { text-decoration: line-through; }

.prklAdd            { float:right; font-size:10px; color: #00d100 !important; font-weight: normal; text-align:center; line-height: 14px; }

.prklFile           { text-align: center; display: inline-block; line-height: 10px; margin-right: 15px; margin-top: 3px; }
.prklFile A         { font-size: 10px; font-weight: normal; }
.prklFileIcon       { width:16px; height:16px; }
.prklFileSize       { font-size: 10px; color:yellow !important; }
.prklFileType       { font-size: 10px; }


#prklData SELECT:disabled { color:#555555; border:1px solid gray;}
#prklData INPUT:hover, TEXTAREA:hover, SELECT:hover { border: 1px solid steelblue; }
#prklData INPUT[type="button"]:hover { color:black; background-color: white; cursor: pointer; }
#prlkData INPUT[type=text] { padding: 12px; }


.prklModal { display: none; position: fixed; z-index: 11110000000000000000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgb(0,0,0); background-color: rgba(0,0,0,0.6); }
.prklModalHead { font-weight:bold; background-color: #260000; text-align: left; border-bottom: 1px solid gray; padding:10px; line-height: 20px; }
.prklModalContent {    background-color: black; margin: 15% auto; border: 2px solid white; width: 400px; color: #f0fff0; }
.prklModalInner { margin: 10px;}
.prklClose { color: white; font-size: 20px; font-weight: bold; float:right;}
.prklClose:hover, .prklClose:focus { color: green; text-decoration: none; cursor: pointer; }
.prklDisabled { color: #555555; }


.prklFSout { border:1px gray dotted;line-height:1.5em;padding-left: 10px; }
.prklFSinner { border:1px gray dotted;line-height:1.7em; padding:5px;margin-bottom:5px;margin-right:10px; }
.prklInput { padding: 2px; }
.prklSelect { padding: 1px; width: 125px; }
.prklText { width:80%;height:64px;margin-left:15px; border-radius: 6px; padding:1px; }
.prklTbl TD { border: 1px solid gray; border-radius: 6px; }

/*  tisknuti */
@media print {

    BODY { color:black !important; background-color: white !important;   }

    A { text-decoration:none; font-weight:normal; color:black; }
    A:link { color:black; }
    A:visited { color:black; }
    A.edit		{ color:black !important;}


    #tools 			{ display:none; }

    #prefooter		{ display:none; }

    DIV#header		{ display:none; }
    DIV#leftcol		{ display:none; width:0px; height:0px; }
    DIV#undermain	{ background-image: none; background-color: transparent; }
    DIV#maincol		{ margin-left:0px; margin-top:0px; }

    DIV#footer		{ font-size:17px;}

    DIV#cpl			{ font-size:110pt; color:black; font-style: italic; height:1em; }

    #footer			{ display:none; }

    .itemcontainer { background-color: white; font-size:12pt;}
    .itemprev		{ display:none; }
    .itemnext		{ display:none; }
    .itemhead		{ margin-left:auto; margin-right:auto; }

    .extinfoimgtip	{ display:none; }

    #toctable		{ display:none; }

    .AD	{ display:none; }


}



@media only screen and (max-width: 600px)
{
    #annoucment, #dgbtest { background-color: orange; }
    #dgbtest { height: 30px; padding-top: 2px;}
    #menu { border-top: 1px dotted gray; }



}


@media only screen and (min-width: 600px)
{
    /* For tablets: */
    #annoucment, #dgbtest { background-color: #1c56a1; }
    #headerMob { background-repeat: no-repeat; background-position: center; background-size: auto; }
    #menu { border-top: 1px dotted gray; }

    .newsBooks { flex-direction: row; }

}

@media only screen and (min-width: 768px)
{
    /* For desktop: */

    #container { min-height: 100vh; align-content: stretch; }
    #middle { flex-direction: row-reverse; flex-grow: 2; }
    #menu { width:225px; min-width:225px; flex: 0 0 225px; border-right: 1px dotted gray; border-top: none; }
    #annoucment, #dgbtest { background-color: #00bb00; }

    #header { display: flex; }
    #headerMob { display: none; }
    #whisper { top:104px; }
    #suberMenu { display: none; }

    #news { flex-direction: row; }
    .newsBooks { flex-direction: row; }


}

@media only screen and (min-width: 1900px)
{
    #container { width: 1800px; margin-left:auto; margin-right: auto; min-height: 100vh; }
    #annoucment, #dgbtest { background-color: wheat; }

    #header { display: flex; }
    #headerMob { display: none; }
    #suberMenu { display: none; }
    #middle { border-left: 1px dotted gray; border-right: 1px dotted gray; min-height: 1vh; }
    #footer { border: 1px dotted gray; }
    #menu { width:225px; min-width:225px; flex: 0 0 225px; border-right: 1px dotted gray;  border-top: none;}

    #news { flex-direction: row; }
    .newsBooks { flex-direction: row; }
}

.parserError {
    background: #7b1d1d;
    color: #fff;
    border: 1px solid #b66;
    padding: 6px 8px;
    margin: 6px 0;
}




.dm-context-menu {
    z-index: 9999;
    min-width: 220px;
}

.dm-context-menu .menuitem {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    padding: 3px 8px;
}

.dm-context-menu .menuitem:hover,
.dm-context-menu .menuitem:focus {
    background: #d9ecff;
    border: 1px solid #003b7a;
    outline: none;
}

.dm-context-menu .menuheader {
    font-weight: bold;
    padding: 4px 8px 2px 8px;
}

.dm-context-menu hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 4px 0;
}

.dm-context-menu .menuitem {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    padding: 3px 8px;
    box-sizing: border-box;
}

.dm-context-menu .dm-context-menu-icon,
.dm-context-menu .dm-context-menu-icon-spacer {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.dm-context-menu .dm-context-menu-icon {
    object-fit: contain;
}

.dm-context-menu .dm-context-menu-label {
    flex: 1 1 auto;
}

.dm-error-page {
    max-width: 820px;
    margin: 30px auto;
}

.dm-error-card {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid #8898aa;
    border-radius: 8px;
    background: linear-gradient(180deg, #f6f8fb 0%, #e8edf4 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dm-error-icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #26384d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

.dm-error-content {
    flex: 1 1 auto;
}

.dm-error-kicker {
    margin-bottom: 4px;
    color: #52677f;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.dm-error-content h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    line-height: 1.2;
    color: #1d2d3f;
}

.dm-error-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: #26384d;
}

.dm-error-details {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #66798d;
}

.dm-error-http-code {
    margin-top: 8px;
    font-size: 11px;
    color: #7b8998;
}

.dm-error-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dm-error-action {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #2d4d73;
    border-radius: 4px;
    background: #e7f1ff;
    color: #1d2d3f !important;
    text-decoration: none;
    font-weight: bold;
}

.dm-error-action:hover {
    background: #cfe4ff;
    border-color: #14375d;
    color: #1d2d3f !important;
}

.dm-error-imagebox {
    margin-top: 18px;
    text-align: center;
}

.dm-error-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #8898aa;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* barevné varianty */

.dm-error-page-denied .dm-error-icon,
.dm-error-page-login .dm-error-icon,
.dm-error-page-level .dm-error-icon {
    background: #5b2230;
}

.dm-error-page-notfound .dm-error-icon,
.dm-error-page-article .dm-error-icon {
    background: #334f75;
}

.dm-error-page-deleted .dm-error-icon {
    background: #4c4c4c;
}

.dm-error-page-locked .dm-error-icon {
    background: #4e3b73;
}

.dm-error-page-maintenance .dm-error-icon {
    background: #58612f;
}

.dm-error-page-system .dm-error-icon,
.dm-error-page-warning .dm-error-icon {
    background: #7a3d16;
}

.dm-error-debug {
    max-width: 820px;
    margin: 18px auto 30px auto;
    padding: 16px 18px;
    border: 1px solid #6f5847;
    border-radius: 8px;
    background: #1b1714;
    color: #ddd1c7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dm-error-debug h2 {
    margin: 0 0 12px 0;
    color: #f2b35d;
    font-size: 18px;
}

.dm-error-debug dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 12px;
    margin: 0 0 14px 0;
}

.dm-error-debug dt {
    color: #bda48e;
    font-weight: bold;
}

.dm-error-debug dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dm-error-debug code,
.dm-error-debug pre {
    color: #f0d7bb;
}

.dm-error-debug pre {
    max-height: 420px;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border: 1px solid #4a3b31;
    border-radius: 6px;
    background: #100d0b;
    white-space: pre-wrap;
}
/* SELENE autolink modal */
.dm-selene-toolbutton {
    height: 18px;
    margin: 0 2px;
    padding: 0 5px;
    vertical-align: top;
    border: 1px solid #666;
    border-radius: 3px;
    background: #111;
    color: var(--dm-color-link);
    font-size: 10px;
    line-height: 16px;
    cursor: pointer;
}

.dm-selene-toolbutton:hover {
    background: var(--dm-color-link);
    color: #000;
}

.dm-selene-modal {
    position: fixed;
    z-index: 1000000;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 2vw;
    box-sizing: border-box;
}

.dm-selene-panel {
    width: min(1100px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #777;
    border-radius: 8px;
    background: #050505;
    color: honeydew;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.dm-selene-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #252525;
    border-bottom: 1px solid #555;
}

.dm-selene-title {
    font-size: 16px;
    font-weight: bold;
}

.dm-selene-close {
    padding: 3px 9px;
    font-size: 18px;
    line-height: 18px;
}

.dm-selene-summary {
    padding: 8px 10px;
    border-bottom: 1px dotted #555;
    color: #d8d8d8;
    font-size: 90%;
}

.dm-selene-toolbar,
.dm-selene-footer {
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px dotted #444;
}

.dm-selene-footer {
    border-top: 1px dotted #444;
    border-bottom: 0;
    justify-content: center;
}

.dm-selene-toolbar button,
.dm-selene-footer button {
    padding: 5px 12px;
}

.dm-selene-primary {
    font-weight: bold;
}

.dm-selene-list {
    overflow: auto;
    padding: 4px 10px 10px 10px;
}

.dm-selene-empty {
    padding: 20px;
    text-align: center;
    color: #ccc;
    font-style: italic;
}

.dm-selene-block-title {
    margin: 12px 0 5px 0;
    padding: 3px 6px;
    border-bottom: 1px dotted #555;
    color: var(--dm-color-link);
    font-size: 14px;
}

.dm-selene-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0;
    padding: 6px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #111;
    cursor: pointer;
}

.dm-selene-row:hover {
    border-color: #777;
    background: #181818;
}

.dm-selene-row input[type="checkbox"] {
    margin-top: 4px;
}

.dm-selene-row-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dm-selene-main-line {
    font-size: 13px;
}

.dm-selene-found {
    color: #fff;
}

.dm-selene-replacement {
    font-size: 11px;
    color: #ffd37a;
    background: #222;
    border: 1px solid #333;
    padding: 1px 4px;
    border-radius: 3px;
}

.dm-selene-meta {
    color: #aaa;
    font-size: 11px;
}

.dm-selene-context {
    color: #d0d0d0;
    font-size: 12px;
    line-height: 1.35em;
}

.dm-selene-context mark {
    background: #ffd37a;
    color: #000;
    padding: 0 2px;
}

.dm-selene-confidence-medium .dm-selene-meta {
    color: #d7b16a;
}

/* SELENE autolink progress */
.dm-selene-progress-panel {
    width: min(620px, 96vw);
}

.dm-selene-progress-body {
    padding: 22px 24px 24px 24px;
    text-align: center;
}

.dm-selene-progress-status {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dm-color-link);
}

.dm-selene-progress-detail {
    min-height: 18px;
    margin-bottom: 14px;
    color: #cfcfcf;
    font-size: 12px;
}

.dm-selene-progress-bar-outer {
    width: 100%;
    height: 16px;
    border: 1px solid #777;
    border-radius: 8px;
    background: #111;
    overflow: hidden;
}

.dm-selene-progress-bar-inner {
    width: 0;
    height: 100%;
    background: var(--dm-color-link);
    transition: width 0.15s linear;
}

.dm-selene-progress-percent {
    margin-top: 8px;
    color: #d8d8d8;
    font-size: 12px;
}

.dm-selene-progress-hint {
    margin-top: 16px;
    color: #999;
    font-size: 11px;
    font-style: italic;
}

/* SELENE autolink match types */
.dm-selene-row.dm-selene-match-exact {
    border-color: #2f9b58;
}

.dm-selene-row.dm-selene-match-exact:hover {
    border-color: #43c773;
}

.dm-selene-row.dm-selene-match-suffix {
    border-color: #2d72b8;
}

.dm-selene-row.dm-selene-match-suffix:hover {
    border-color: #4b9bea;
}

.dm-selene-row.dm-selene-match-missing,
.dm-selene-row.dm-selene-missing {
    border-color: #b83b3b;
}

.dm-selene-row.dm-selene-match-missing:hover,
.dm-selene-row.dm-selene-missing:hover {
    border-color: #e15a5a;
}

.dm-selene-row.dm-selene-confidence-medium:not(.dm-selene-match-missing):not(.dm-selene-missing) {
    border-color: #9b7a2f;
}

.dm-selene-row.dm-selene-confidence-medium:not(.dm-selene-match-missing):not(.dm-selene-missing):hover {
    border-color: #d2a73e;
}

.dm-selene-row.dm-selene-match-known-form,
.dm-selene-row.dm-selene-known-form {
    border-color: #8d56c5;
}

.dm-selene-row.dm-selene-match-known-form:hover,
.dm-selene-row.dm-selene-known-form:hover {
    border-color: #b37af0;
}

/* SELENE Autolink – odvozené tvary názvů na -ové */

.dm-selene-row.dm-selene-match-derived-ove,
.dm-selene-row.dm-selene-derived-ove {
    border-color: #1b9a9a;
}

.dm-selene-row.dm-selene-match-derived-ove:hover,
.dm-selene-row.dm-selene-derived-ove:hover {
    border-color: #28c7c7;
}

.dm-selene-row.dm-selene-match-derived-ove .dm-selene-meta {
    color: #9edede;
}


/* SELENE Autolink – diagnostický režim */

.dm-selene-diagnostics {
    margin: 8px 12px;
    padding: 8px 10px;
    border: 1px solid #55718f;
    background: rgba(20, 35, 55, 0.35);
    font-size: 12px;
    line-height: 1.45;
}

.dm-selene-diagnostics-main {
    font-weight: bold;
    margin-bottom: 4px;
}

.dm-selene-diagnostics-line {
    margin-top: 2px;
}

.dm-selene-diagnostics-warn {
    color: #ffcc66;
}

.dm-selene-rejected-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 12px;
    padding: 3px 7px;
    border: 1px solid #777;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-size: 12px;
}

.dm-selene-rejected-list {
    margin-top: 14px;
    border-top: 1px dashed #777;
    padding-top: 8px;
}

.dm-selene-rejected-title {
    color: #ffcc66;
}

.dm-selene-rejected-block-title {
    margin: 8px 0 4px 0;
    font-size: 12px;
    color: #bbb;
}

.dm-selene-row.dm-selene-rejected {
    border-color: #777;
    opacity: 0.78;
    background: rgba(120, 120, 120, 0.10);
}

.dm-selene-row.dm-selene-rejected .dm-selene-meta {
    color: #d0d0d0;
}

.dm-selene-row.dm-selene-rejected mark {
    background: #554400;
    color: #fff0aa;
}


/* SELENE autolink match types - přidej do main.css */
.dm-selene-row.dm-selene-match-exact {
    border-color: #2f9b58;
}

.dm-selene-row.dm-selene-match-exact:hover {
    border-color: #43c773;
}

.dm-selene-row.dm-selene-match-suffix {
    border-color: #2d72b8;
}

.dm-selene-row.dm-selene-match-suffix:hover {
    border-color: #4b9bea;
}

.dm-selene-row.dm-selene-match-missing,
.dm-selene-row.dm-selene-missing {
    border-color: #b83b3b;
}

.dm-selene-row.dm-selene-match-missing:hover,
.dm-selene-row.dm-selene-missing:hover {
    border-color: #e15a5a;
}

.dm-selene-row.dm-selene-confidence-medium:not(.dm-selene-match-missing):not(.dm-selene-missing) {
    border-color: #9b7a2f;
}

.dm-selene-row.dm-selene-confidence-medium:not(.dm-selene-match-missing):not(.dm-selene-missing):hover {
    border-color: #d2a73e;
}

.dm-selene-row.dm-selene-match-known-form,
.dm-selene-row.dm-selene-known-form {
    border-color: #8d56c5;
}

.dm-selene-row.dm-selene-match-known-form:hover,
.dm-selene-row.dm-selene-known-form:hover {
    border-color: #b37af0;
}

/* SELENE Autolink – odvozené tvary ras/národů */

.dm-selene-row.dm-selene-match-derived-ove,
.dm-selene-row.dm-selene-match-derived-ide,
.dm-selene-row.dm-selene-match-derived-ane {
    border-left: 4px solid #00a8a8;
}

.dm-selene-row.dm-selene-derived-ove,
.dm-selene-row.dm-selene-derived-ide,
.dm-selene-row.dm-selene-derived-ane {
    box-shadow: inset 0 0 0 1px rgba(0, 168, 168, 0.35);
}


/* SELENE Autolink – letopočty a chronologické zápisy */

.dm-selene-row.dm-selene-match-chrono,
.dm-selene-row.dm-selene-chrono {
    border-left: 4px solid #b36b00;
}

.dm-selene-row.dm-selene-match-chrono.dm-selene-confidence-high {
    box-shadow: inset 0 0 0 1px rgba(179, 107, 0, 0.35);
}

.dm-selene-row.dm-selene-match-chrono.dm-selene-confidence-medium {
    box-shadow: inset 0 0 0 1px rgba(179, 107, 0, 0.2);
}

/* SELENE Autolink UI refresh + obecná tlačítka pro DM */

.dm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 28px;
    padding: 5px 12px;
    border: 1px solid #6b7280;
    border-radius: 6px;
    background: linear-gradient(#f8fafc, #dce3ec);
    color: #111827;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 2px rgba(0,0,0,.20);
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .08s ease;
}

.dm-button:hover,
.dm-button:focus {
    background: linear-gradient(#ffffff, #cbd5e1);
    border-color: #2563eb;
    color: #000000;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 2px rgba(37,99,235,.22), 0 2px 5px rgba(0,0,0,.24);
}

.dm-button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.25), 0 1px 1px rgba(0,0,0,.15);
}

.dm-button-primary {
    border-color: #1d4ed8;
    background: linear-gradient(#3b82f6, #1d4ed8);
    color: #ffffff;
}

.dm-button-primary:hover,
.dm-button-primary:focus {
    border-color: #1e40af;
    background: linear-gradient(#60a5fa, #2563eb);
    color: #ffffff;
}

.dm-button-secondary {
    border-color: #64748b;
    background: linear-gradient(#f8fafc, #cbd5e1);
}

.dm-button-small {
    min-height: 24px;
    padding: 4px 9px;
    font-size: 11px;
}

.dm-button-icon {
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.dm-selene-head {
    align-items: center;
}

.dm-selene-title {
    font-size: 16px;
    font-weight: 700;
}

.dm-selene-filter-row,
.dm-selene-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 8px 0;
}

.dm-selene-filter-row {
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, .6);
    border-radius: 8px;
    background: rgba(15, 23, 42, .04);
}

.dm-selene-filter-button {
    opacity: .55;
    border-left-width: 5px;
}

.dm-selene-filter-button.dm-selene-filter-active {
    opacity: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 0 0 2px rgba(59,130,246,.18), 0 1px 3px rgba(0,0,0,.25);
}

.dm-selene-filter-button.dm-selene-match-exact { border-left-color: #2f9e44; }
.dm-selene-filter-button.dm-selene-match-suffix { border-left-color: #1c7ed6; }
.dm-selene-filter-button.dm-selene-match-known-form { border-left-color: #845ef7; }
.dm-selene-filter-button.dm-selene-match-derived-ove,
.dm-selene-filter-button.dm-selene-match-derived-ide,
.dm-selene-filter-button.dm-selene-match-derived-ane { border-left-color: #0ca678; }
.dm-selene-filter-button.dm-selene-match-chrono { border-left-color: #f08c00; }
.dm-selene-filter-button.dm-selene-match-missing { border-left-color: #e03131; }

.dm-selene-toolbar {
    padding: 7px;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
}

.dm-selene-diagnostics-toggle,
.dm-selene-rejected-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(100, 116, 139, .7);
    border-radius: 6px;
    background: rgba(241, 245, 249, .85);
    color: #111827;
    font-size: 12px;
    cursor: pointer;
}

.dm-selene-diagnostics-toggle:hover,
.dm-selene-rejected-toggle:hover {
    border-color: #2563eb;
    background: #ffffff;
}

.dm-selene-diagnostics {
    margin: 8px 0;
    padding: 8px 10px;
    border: 1px dashed #64748b;
    border-radius: 8px;
    background: rgba(15, 23, 42, .06);
}

.dm-selene-summary {
    margin-bottom: 6px;
    font-weight: 600;
}

.dm-selene-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}
/* Volitelné jemné doladění modernizovaných slovníkových výpisů. */
.slovnikCategoryListModern {
    clear: both;
}

.slovnikCategoryListModern .slovnikLetterGroup {
    margin-bottom: 1.1rem;
}

.slovnikLetterJump {
    margin-top: .65rem;
}

.slovnikLetterJump span {
    opacity: .8;
    margin-right: .35rem;
}

.slovnikListItem {
    line-height: 1.45;
    text-align: left;
}

.slovnikListIcon {
    margin-right: .25rem;
    vertical-align: middle;
}

.slovnikListMeta {
    font-size: 78%;
    opacity: .55;
}

.slovnikListMetaCategory {
    font-size: 72%;
    opacity: .42;
    margin-left: .25rem;
}

.slovnikListMetaCategory::before {
    content: '· ';
}

.slovnikempty {
    padding: 1rem;
    opacity: .8;
    text-align: center;
}

.slovnikCategoryListModern .slovniklist,
.slovnikCategoryListModern .slovnikListItem {
    text-align: left;
}

.slovnikListMetaCategory {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
}
/* Volitelné jemné doladění modernizovaných slovníkových výpisů. */
.slovnikCategoryListModern {
    clear: both;
}

.slovnikCategoryListModern .slovnikLetterGroup {
    margin-bottom: 1.1rem;
}

.slovnikLetterJump {
    margin-top: .65rem;
}

.slovnikLetterJump span {
    opacity: .8;
    margin-right: .35rem;
}

.slovnikListItem {
    line-height: 1.45;
}

.slovnikListIcon {
    margin-right: .25rem;
    vertical-align: middle;
}

.slovnikListMeta {
    font-size: 78%;
    opacity: .55;
}

.slovnikListMetaCategory {
    font-size: 72%;
    opacity: .42;
    margin-left: .25rem;
}

.slovnikListMetaCategory::before {
    content: '· ';
}

.slovnikempty {
    padding: 1rem;
    opacity: .8;
    text-align: center;
}

/* Modernizovaná hlavní stránka slovníku. */
.slovnikMainModern {
    --slovnik-card-bg: rgba(255,255,255,.035);
    --slovnik-card-border: rgba(255,255,255,.12);
    --slovnik-muted: rgba(255,255,255,.62);
}

.slovnikMainHero {
    display: flex;
    gap: 1.2rem;
    align-items: stretch;
    justify-content: space-between;
    margin: 1rem 0 1.35rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}

.slovnikMainHeroText {
    max-width: 58rem;
}

.slovnikMainHeroText h2,
.slovnikMainSectionHeader h2 {
    margin: 0 0 .35rem;
}

.slovnikMainHeroText p,
.slovnikMainSectionHeader p {
    margin: 0;
    color: var(--slovnik-muted);
    line-height: 1.45;
}

.slovnikMainStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(7rem, 1fr));
    gap: .55rem;
    min-width: 18rem;
}

.slovnikMainStat {
    padding: .65rem .75rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(0,0,0,.16);
    text-align: center;
}

.slovnikMainStatValue {
    font-size: 145%;
    font-weight: 700;
    line-height: 1.1;
}

.slovnikMainStatLabel {
    margin-top: .15rem;
    font-size: 75%;
    opacity: .72;
}

.slovnikMainSectionHeader {
    margin: 1.5rem 0 .8rem;
}

.slovnikMainGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .9rem;
}

.slovnikMainCard {
    overflow: hidden;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 13px;
    background: var(--slovnik-card-bg);
}

.slovnikMainCardHeader {
    display: flex;
    gap: .6rem;
    align-items: center;
    justify-content: space-between;
    padding: .72rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}

.slovnikMainCardHeader h3 {
    margin: 0;
    font-size: 105%;
}

.slovnikMainBadge,
.slovnikMainCategoryCount,
.slovnikMainTagCount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1em;
    padding: .08rem .38rem;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: 78%;
    white-space: nowrap;
}

.slovnikMainCategoryItems {
    list-style: none;
    margin: 0;
    padding: .45rem .6rem .65rem;
}

.slovnikMainCategoryItem {
    margin: .16rem 0;
}

.slovnikMainCategoryItem a {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: center;
    padding: .32rem .38rem .42rem;
    border-radius: 8px;
    text-decoration: none;
}

.slovnikMainCategoryItem a:hover {
    background: rgba(255,255,255,.06);
}

.slovnikMainCategoryName {
    min-width: 0;
    text-align: left;
}

.slovnikMainCategoryBar {
    position: absolute;
    left: .38rem;
    right: .38rem;
    bottom: .18rem;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
}

.slovnikMainCategoryBar::after {
    content: '';
    display: block;
    width: var(--slovnik-cat-weight, 0%);
    height: 100%;
    border-radius: inherit;
    background: rgba(255,255,255,.32);
}

.slovnikMainCategoryItemEmpty {
    opacity: .55;
}

.slovnikMainTagsHeader {
    margin-top: 1.8rem;
}

.slovnikMainTags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}

.slovnikMainTagGroup {
    padding: .75rem;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.slovnikMainTagGroup h3 {
    margin: 0 0 .45rem;
    opacity: .85;
}

.slovnikMainTagList {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.slovnikMainTag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 100%;
    padding: .22rem .42rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: rgba(0,0,0,.12);
    text-decoration: none;
}

.slovnikMainTag:hover {
    background: rgba(255,255,255,.07);
}

.slovnikMainTagName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .slovnikMainHero {
        display: block;
    }

    .slovnikMainStats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        margin-top: .9rem;
    }
}

/* Abecední rozcestník na hlavní stránce slovníku. */
.slovnikMainLetterPanel {
    display: grid;
    grid-template-columns: minmax(15rem, 22rem) 1fr;
    gap: 1rem;
    align-items: center;
    margin: 0 0 1.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--slovnik-card-border);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.slovnikMainLetterText h2 {
    margin: 0 0 .3rem;
}

.slovnikMainLetterText p {
    margin: 0;
    color: var(--slovnik-muted);
    line-height: 1.4;
}

.slovnikMainLetters {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    justify-content: flex-start;
}

.slovnikMainLetter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.05rem;
    padding: .18rem .48rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0,0,0,.13);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.slovnikMainLetter:hover {
    background: rgba(255,255,255,.075);
}

@media (max-width: 760px) {
    .slovnikMainLetterPanel {
        display: block;
    }

    .slovnikMainLetters {
        margin-top: .75rem;
    }
}
/* Modernější, ale střídmý rozcestník chronologie */
.chronoMainModern {
    --chrono-border: rgba(170, 150, 95, .24);
    --chrono-bg: rgba(22, 20, 24, .70);
    --chrono-bg-soft: rgba(255, 255, 255, .025);
    --chrono-text-soft: rgba(235, 225, 205, .62);
    --chrono-accent: #d4b46a;
    --chrono-accent-soft: rgba(212, 180, 106, .10);
}

.chronoMainHero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, .85fr);
    gap: .85rem;
    align-items: stretch;
    padding: 1rem 1.1rem;
    margin-bottom: .8rem;
    border: 1px solid var(--chrono-border);
    border-radius: 12px;
    background: var(--chrono-bg);
}

.chronoMainHeroText h1 {
    margin: .1rem 0 .35rem;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: .02em;
}

.chronoMainHeroText p {
    margin: 0;
    max-width: 64em;
    color: var(--chrono-text-soft);
    font-size: .93rem;
    line-height: 1.45;
}

.chronoMainKicker,
.chronoPeriodKicker {
    color: var(--chrono-accent);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.chronoMainStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

.chronoMainStatBox {
    padding: .68rem .75rem;
    border: 1px solid rgba(170, 150, 95, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .026);
}

.chronoMainStatValue {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ead79f;
    line-height: 1.15;
}

.chronoMainStatLabel {
    margin-top: .12rem;
    color: var(--chrono-text-soft);
    font-size: .76rem;
}

.chronoMainJump {
    margin: 0 0 .8rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 12px;
    background: var(--chrono-bg-soft);
}

.chronoMainSectionHeader {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .85rem;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: .55rem;
}

.chronoMainSectionHeader h2 {
    margin: 0;
    color: #ead79f;
    font-size: 1rem;
}

.chronoMainSectionHeader p {
    margin: 0;
    color: var(--chrono-text-soft);
    font-size: .8rem;
}

.chronoMainJumpLinks {
    display: flex;
    flex-wrap: wrap;
    gap: .32rem;
}

.chronoMainJumpLinks a {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .30rem .52rem;
    border: 1px solid rgba(212, 180, 106, .18);
    border-radius: 999px;
    background: rgba(212, 180, 106, .045);
    text-decoration: none;
}

.chronoMainJumpLinks a:hover,
.chronoYearPill:hover {
    border-color: rgba(212, 180, 106, .45);
    background: rgba(212, 180, 106, .10);
}

.chronoMainJumpLinks span {
    padding: .02rem .32rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .18);
    color: var(--chrono-text-soft);
    font-size: .70rem;
}

.chronoMainTimeline {
    display: grid;
    gap: .65rem;
}

.chronoPeriodCard {
    position: relative;
    overflow: hidden;
    padding: .75rem .85rem .85rem;
    border: 1px solid var(--chrono-border);
    border-radius: 12px;
    background: var(--chrono-bg);
}

.chronoPeriodCard::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: rgba(212, 180, 106, .50);
}

.chronoPeriodHead {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem .8rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: .62rem;
    padding-left: .25rem;
}

.chronoPeriodHead h2 {
    margin: .06rem 0 0;
    color: #ead79f;
    font-size: 1.12rem;
}

.chronoPeriodMeta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .05rem;
    color: var(--chrono-text-soft);
    font-size: .76rem;
}

.chronoPeriodMeta strong {
    color: #ead79f;
    font-size: 1.08rem;
    line-height: 1;
}

.chronoYearGrid {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
}

.chronoYearPill {
    display: inline-flex;
    align-items: center;
    min-height: 1.62rem;
    padding: .22rem .42rem;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 8px;
    background: rgba(0, 0, 0, .16);
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
}

.chronoYearPill span {
    line-height: 1.08;
}

.chronoMainEmpty {
    padding: .9rem;
    border: 1px dashed var(--chrono-border);
    border-radius: 10px;
    color: var(--chrono-text-soft);
    text-align: center;
}

@media (max-width: 760px) {
    .chronoMainHero {
        grid-template-columns: 1fr;
    }

    .chronoMainStats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chronoPeriodMeta {
        align-items: flex-start;
    }
}

@media (max-width: 460px) {
    .chronoMainStats {
        grid-template-columns: 1fr;
    }
}

/* Moderní, ale střídmý přehled sérií na Kategorie:Seznam sérií */
.seriesOverviewModern {
    text-align: left;
}

.seriesOverviewHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
    margin: 0 0 1.2rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(180, 180, 180, .18);
    background: rgba(255, 255, 255, .025);
    border-radius: .45rem;
}

.seriesOverviewHero h1 {
    margin: 0 0 .35rem 0;
    font-size: 1.75rem;
    line-height: 1.15;
}

.seriesOverviewHero p {
    margin: 0;
    max-width: 46rem;
    opacity: .78;
    line-height: 1.45;
}

.seriesOverviewStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(5.6rem, 1fr));
    gap: .45rem;
    min-width: 13rem;
}

.seriesOverviewStat {
    padding: .48rem .62rem;
    border: 1px solid rgba(180, 180, 180, .15);
    background: rgba(0, 0, 0, .12);
    border-radius: .35rem;
    text-align: center;
}

.seriesOverviewStatValue,
.seriesOverviewStatLabel {
    display: block;
}

.seriesOverviewStatValue {
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.15;
}

.seriesOverviewStatLabel {
    margin-top: .16rem;
    font-size: .74rem;
    opacity: .62;
}

.seriesOverviewGroups {
    display: grid;
    gap: .95rem;
}

.seriesOverviewGroup {
    padding: .85rem .95rem .95rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(255, 255, 255, .018);
    border-radius: .45rem;
}

.seriesOverviewGroup h2 {
    margin: 0 0 .7rem 0;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(180, 180, 180, .14);
    font-size: 1.14rem;
    line-height: 1.2;
}

.seriesOverviewCards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: .7rem;
}

.seriesOverviewCard {
    display: flex;
    gap: .75rem;
    align-items: center;
    min-height: 8.1rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(0, 0, 0, .10);
    border-radius: .38rem;
    text-decoration: none;
}

.seriesOverviewCard:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(180, 180, 180, .28);
}

.seriesOverviewCover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: auto;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: .25rem;
    background: rgba(0, 0, 0, .22);
}

.seriesOverviewCover img {
    display: block;
    height: 120px;
    width: auto;
    max-width: none;
    max-height: 120px;
}

.seriesOverviewCoverMissing {
    width: 4.8rem;
    font-weight: bold;
    opacity: .55;
}

.seriesOverviewCardBody {
    display: block;
    min-width: 0;
}

.seriesOverviewCode {
    display: inline-block;
    margin-bottom: .18rem;
    padding: .06rem .32rem;
    border: 1px solid rgba(180, 180, 180, .18);
    border-radius: .22rem;
    font-size: .72rem;
    line-height: 1.2;
    opacity: .65;
}

.seriesOverviewName {
    display: block;
    margin-bottom: .22rem;
    font-size: 1.03rem;
    font-weight: bold;
    line-height: 1.22;
}

.seriesOverviewMeta {
    display: block;
    font-size: .78rem;
    line-height: 1.35;
    opacity: .58;
}

.seriesOverviewMetaLine {
    display: block;
}

.seriesOverviewMetaLineSecondary {
    margin-top: .12rem;
}

.seriesOverviewCardMissing {
    opacity: .7;
}

.seriesOverviewEmpty {
    padding: 1rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .4rem;
    opacity: .7;
}

@media (max-width: 760px) {
    .seriesOverviewHero {
        display: block;
    }

    .seriesOverviewStats {
        margin-top: .8rem;
        min-width: 0;
    }

    .seriesOverviewCards {
        grid-template-columns: 1fr;
    }
}

/* Moderní, ale střídmý přehled sérií na Kategorie:Seznam sérií */
.seriesOverviewModern {
    text-align: left;
}

.seriesOverviewHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.4rem;
    margin: 0 0 1.2rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(180, 180, 180, .18);
    background: rgba(255, 255, 255, .025);
    border-radius: .45rem;
}

.seriesOverviewHero h1 {
    margin: 0 0 .35rem 0;
    font-size: 1.75rem;
    line-height: 1.15;
}

.seriesOverviewHero p {
    margin: 0;
    max-width: 46rem;
    opacity: .78;
    line-height: 1.45;
}

.seriesOverviewStats {
    display: grid;
    grid-template-columns: repeat(2, minmax(5.6rem, 1fr));
    gap: .45rem;
    min-width: 13rem;
}

.seriesOverviewStat {
    padding: .48rem .62rem;
    border: 1px solid rgba(180, 180, 180, .15);
    background: rgba(0, 0, 0, .12);
    border-radius: .35rem;
    text-align: center;
}

.seriesOverviewStatValue,
.seriesOverviewStatLabel {
    display: block;
}

.seriesOverviewStatValue {
    font-size: 1.15rem;
    font-weight: bold;
    line-height: 1.15;
}

.seriesOverviewStatLabel {
    margin-top: .16rem;
    font-size: .74rem;
    opacity: .62;
}

.seriesOverviewGroups {
    display: grid;
    gap: .95rem;
}

.seriesOverviewGroup {
    padding: .85rem .95rem .95rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(255, 255, 255, .018);
    border-radius: .45rem;
}

.seriesOverviewGroup h2 {
    margin: 0 0 .7rem 0;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(180, 180, 180, .14);
    font-size: 1.14rem;
    line-height: 1.2;
}

.seriesOverviewCards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
    gap: .7rem;
}

.seriesOverviewCard {
    display: flex;
    gap: .75rem;
    align-items: center;
    min-height: 8.1rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(0, 0, 0, .10);
    border-radius: .38rem;
    text-decoration: none;
}

.seriesOverviewCard:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(180, 180, 180, .28);
}

.seriesOverviewCover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: auto;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: .25rem;
    background: rgba(0, 0, 0, .22);
}

.seriesOverviewCover img {
    display: block;
    height: 120px;
    width: auto;
    max-width: none;
    max-height: 120px;
}

.seriesOverviewCoverMissing {
    width: 4.8rem;
    font-weight: bold;
    opacity: .55;
}

.seriesOverviewCardBody {
    display: block;
    min-width: 0;
}

.seriesOverviewCode {
    display: inline-block;
    margin-bottom: .18rem;
    padding: .06rem .32rem;
    border: 1px solid rgba(180, 180, 180, .18);
    border-radius: .22rem;
    font-size: .72rem;
    line-height: 1.2;
    opacity: .65;
}

.seriesOverviewName {
    display: block;
    margin-bottom: .22rem;
    font-size: 1.03rem;
    font-weight: bold;
    line-height: 1.22;
}

.seriesOverviewMeta {
    display: block;
    font-size: .78rem;
    line-height: 1.35;
    opacity: .58;
}

.seriesOverviewMetaLine {
    display: block;
}

.seriesOverviewMetaLineSecondary {
    margin-top: .12rem;
}

.seriesOverviewCardMissing {
    opacity: .7;
}

.seriesOverviewEmpty {
    padding: 1rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .4rem;
    opacity: .7;
}

@media (max-width: 760px) {
    .seriesOverviewHero {
        display: block;
    }

    .seriesOverviewStats {
        margin-top: .8rem;
        min-width: 0;
    }

    .seriesOverviewCards {
        grid-template-columns: 1fr;
    }
}

/* Moderní přehled cyklů hlavních sérií */
.cycleOverviewModern {
    text-align: left;
}

.cycleOverviewHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    margin: 0 0 1rem 0;
    padding: .9rem 1rem;
    border: 1px solid rgba(180, 180, 180, .18);
    background: rgba(255, 255, 255, .02);
    border-radius: .4rem;
}

.cycleOverviewHero h1 {
    margin: 0 0 .3rem 0;
    font-size: 1.65rem;
    line-height: 1.15;
}

.cycleOverviewHero p {
    margin: 0;
    max-width: 48rem;
    opacity: .76;
    line-height: 1.42;
}

.cycleOverviewStats {
    display: grid;
    grid-template-columns: repeat(3, minmax(4.8rem, 1fr));
    gap: .42rem;
    min-width: 16rem;
}

.cycleOverviewStat {
    padding: .45rem .58rem;
    border: 1px solid rgba(180, 180, 180, .15);
    background: rgba(0, 0, 0, .10);
    border-radius: .32rem;
    text-align: center;
}

.cycleOverviewStatValue,
.cycleOverviewStatLabel {
    display: block;
}

.cycleOverviewStatValue {
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.15;
}

.cycleOverviewStatLabel {
    margin-top: .12rem;
    font-size: .72rem;
    opacity: .62;
}

.cycleOverviewGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.cycleOverviewCard {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: start;
    padding: .72rem .85rem;
    border: 1px solid rgba(180, 180, 180, .16);
    background: rgba(0, 0, 0, .09);
    border-radius: .38rem;
}

.cycleOverviewCard:hover {
    background: rgba(255, 255, 255, .032);
    border-color: rgba(180, 180, 180, .26);
}

.cycleOverviewCover {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    min-height: 120px;
    border-radius: .25rem;
    overflow: hidden;
    background: rgba(0, 0, 0, .20);
}

.cycleOverviewCover img {
    display: block;
    height: 120px;
    width: auto;
    max-width: none;
    max-height: 120px;
}

.cycleOverviewCoverMissing {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.8rem;
    height: 120px;
    font-weight: bold;
    opacity: .5;
}

.cycleOverviewBody {
    min-width: 0;
}

.cycleOverviewNumber {
    display: inline-block;
    margin-bottom: .2rem;
    padding: .06rem .34rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .22rem;
    font-size: .74rem;
    line-height: 1.2;
    opacity: .65;
}

.cycleOverviewCard h2 {
    margin: 0 0 .42rem 0;
    font-size: 1.12rem;
    line-height: 1.22;
}

.cycleOverviewFacts {
    display: grid;
    gap: .22rem;
    margin: 0 0 .55rem 0;
    font-size: .86rem;
    line-height: 1.35;
}

.cycleOverviewFact {
    display: grid;
    grid-template-columns: 5.4rem minmax(0, 1fr);
    gap: .45rem;
}

.cycleOverviewFactLabel {
    opacity: .52;
}

.cycleOverviewFactValue {
    min-width: 0;
}

.cycleOverviewSep {
    opacity: .45;
}

.cycleOverviewRangeDash {
    display: inline-block;
    padding: 0 .18rem;
    opacity: .62;
}

.cycleOverviewMuted {
    opacity: .45;
}

.cycleOverviewIntro {
    margin-top: .35rem;
    font-size: .92rem;
    line-height: 1.48;
    opacity: .9;
}

.cycleOverviewIntro p:first-child {
    margin-top: 0;
}

.cycleOverviewIntro p:last-child {
    margin-bottom: 0;
}

.cycleOverviewMore {
    margin-top: .48rem;
    font-size: .82rem;
    opacity: .7;
    text-align: right;
}

.cycleOverviewEmpty {
    padding: 1rem;
    border: 1px solid rgba(180, 180, 180, .16);
    border-radius: .35rem;
    opacity: .7;
}

@media (max-width: 980px) {
    .cycleOverviewGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cycleOverviewHero {
        display: block;
    }

    .cycleOverviewStats {
        margin-top: .75rem;
        min-width: 0;
    }

    .cycleOverviewCard {
        grid-template-columns: 1fr;
    }

    .cycleOverviewCover {
        justify-content: flex-start;
    }

    .cycleOverviewFact {
        grid-template-columns: 1fr;
        gap: .05rem;
    }
}
/* Modernější portál cyklu / série */
.cyklusPortalModern {
    margin-top: .8rem;
}

.cyklusPortalHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    margin-bottom: .8rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.035);
}

.cyklusPortalHero h2 {
    margin: .1rem 0 .25rem;
    font-size: 1.28rem;
    line-height: 1.2;
}

.cyklusPortalHero p {
    margin: 0;
    font-size: .9rem;
    opacity: .72;
}

.cyklusPortalEyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .56;
}

.cyklusPortalActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    min-width: 220px;
}

.cyklusPortalAction a {
    display: inline-block;
    padding: .22rem .55rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    font-size: .82rem;
    text-decoration: none;
    white-space: nowrap;
}

.cyklusPortalAction a:hover {
    background: rgba(255,255,255,.07);
}

.cyklusPortalFacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .55rem;
    margin-bottom: 1rem;
}

.cyklusPortalFact {
    padding: .6rem .7rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.cyklusPortalFactLabel {
    margin-bottom: .25rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .52;
}

.cyklusPortalFactValue {
    font-size: .92rem;
    line-height: 1.35;
}

.cyklusPortalFactAuthorsWide {
    grid-column: span 2;
}

.cyklusPortalMuted {
    opacity: .62;
    font-size: .82rem;
}

.cyklusPortalRelated {
    margin-top: .85rem;
}

.cyklusPortalSectionTitle {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.cyklusPortalSectionTitle h2 {
    margin: 0;
    font-size: 1.08rem;
}

.cyklusPortalSectionTitle span {
    font-size: .78rem;
    opacity: .55;
}

.cyklusPortalRelatedLayout {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

.cyklusPortalRelatedLayoutWithDictionary {
    grid-template-columns: minmax(240px, .75fr) minmax(0, 1.45fr);
    align-items: start;
}

.cyklusPortalRelatedColumn {
    display: grid;
    gap: .75rem;
    min-width: 0;
}

.cyklusPortalTypeBlock {
    padding: .75rem .85rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 9px;
    background: rgba(255,255,255,.024);
}

.cyklusPortalTypeBlock h3 {
    margin: 0 0 .55rem;
    font-size: 1rem;
}

.cyklusPortalCategoryBlock {
    margin-top: .55rem;
}

.cyklusPortalCategoryBlock:first-of-type {
    margin-top: 0;
}

.cyklusPortalCategoryBlock h4 {
    margin: .35rem 0 .25rem;
    font-size: .82rem;
    font-weight: normal;
    opacity: .65;
}

.cyklusPortalList {
    margin: 0;
    padding-left: 1.05rem;
    columns: 2 13rem;
    column-gap: 1.25rem;
}

.cyklusPortalRelatedColumnMinor .cyklusPortalList {
    columns: 1;
}

.cyklusPortalRelatedColumnDictionary .cyklusPortalList {
    columns: 2 14rem;
}

.cyklusPortalList li {
    break-inside: avoid;
    margin: .08rem 0;
    line-height: 1.28;
}

.cyklusPortalEmpty {
    margin: .5rem 0 0;
    opacity: .65;
}

@media (max-width: 1100px) {
    .cyklusPortalFacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cyklusPortalRelatedLayoutWithDictionary {
        grid-template-columns: minmax(220px, .82fr) minmax(0, 1.25fr);
    }
}

@media (max-width: 760px) {
    .cyklusPortalHero {
        display: block;
    }

    .cyklusPortalActions {
        justify-content: flex-start;
        margin-top: .65rem;
        min-width: 0;
    }

    .cyklusPortalFacts,
    .cyklusPortalRelatedLayoutWithDictionary {
        grid-template-columns: 1fr;
    }

    .cyklusPortalFactAuthorsWide {
        grid-column: auto;
    }

    .cyklusPortalList {
        columns: 1;
    }
}

/* Modernější galerie coverů / ilustrací cyklu nebo série */
.cyklusGalleryModern {
    margin-top: .8rem;
}

.cyklusGalleryHero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(255,255,255,.03);
}

.cyklusGalleryHero h2 {
    margin: .08rem 0 .25rem;
    font-size: 1.22rem;
    line-height: 1.2;
}

.cyklusGalleryHero p {
    margin: 0;
    font-size: .9rem;
    opacity: .72;
}

.cyklusGalleryEyebrow {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .56;
}

.cyklusGalleryHeroActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
    min-width: 190px;
}

.cyklusGalleryHeroActions a,
.cyklusGalleryTab {
    display: inline-block;
    padding: .24rem .58rem;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.035);
    font-size: .82rem;
    text-decoration: none;
    white-space: nowrap;
}

.cyklusGalleryHeroActions a:hover,
.cyklusGalleryTab:hover {
    background: rgba(255,255,255,.07);
}

.cyklusGalleryTabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .65rem;
}

.cyklusGalleryTabActive {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    font-weight: bold;
}

.cyklusGalleryFacts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    margin-bottom: .75rem;
}

.cyklusGalleryFact {
    padding: .5rem .65rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.022);
}

.cyklusGalleryFactLabel {
    margin-bottom: .2rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .52;
}

.cyklusGalleryFactValue {
    font-size: .9rem;
    line-height: 1.3;
}

.cyklusGalleryFrame {
    padding: .7rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
}

.cyklusGalleryGrid {
    display: flex;
    flex-wrap: wrap;
    gap: .72rem;
    align-items: flex-start;
}

.cyklusGalleryGrid .cyklGalleryNo {
    flex: 0 1 auto;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    padding: .55rem .45rem .45rem;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    background: rgba(0,0,0,.11);
    text-align: center;
    line-height: 1.25;
}

.cyklusGalleryGrid .cyklGalleryNo a.cyklGalleryItem {
    display: inline-block;
    max-width: 100%;
    text-align: center;
}

.cyklusGalleryGrid .cyklGalleryNo img,
.cyklusGalleryGrid .cyklGalleryNo a.cyklGalleryItem img {
    display: block;
    height: 290px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 290px !important;
    margin: 0 auto .35rem;
    object-fit: contain;
}

.cyklusGalleryGridIllus {
    justify-content: flex-start;
}

.cyklusGalleryGridIllus .cyklGalleryNo img,
.cyklusGalleryGridIllus .cyklGalleryNo a.cyklGalleryItem img {
    height: 290px !important;
    width: auto !important;
    max-width: none !important;
    max-height: 290px !important;
}

.cyklusGalleryGrid .cyklGalleryNo > a:last-child {
    display: inline-block;
    margin-top: .15rem;
    font-size: .85rem;
    opacity: .75;
}

.cyklusGalleryEmpty {
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
    opacity: .7;
}

@media (max-width: 900px) {
    .cyklusGalleryFacts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cyklusGalleryHero {
        display: block;
    }

    .cyklusGalleryHeroActions {
        justify-content: flex-start;
        margin-top: .65rem;
        min-width: 0;
    }

    .cyklusGalleryFacts {
        grid-template-columns: 1fr;
    }
}

/* Moderní přehled přesměrování */
.redirectOverviewModern {
    text-align: left;
}

.redirectOverviewHero {
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    padding: .9rem 1rem;
    margin-bottom: .8rem;
    background: rgba(255,255,255,.035);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.redirectOverviewHero h1 {
    margin: 0 0 .25rem;
    font-size: 1.45rem;
    line-height: 1.2;
}

.redirectOverviewHero p {
    margin: 0;
    opacity: .72;
    max-width: 48rem;
}

.redirectOverviewStats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.redirectOverviewStat {
    min-width: 6rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .38rem .55rem;
    background: rgba(0,0,0,.15);
    text-align: center;
}

.redirectOverviewStatValue {
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.15;
}

.redirectOverviewStatLabel {
    margin-top: .08rem;
    font-size: .72rem;
    opacity: .62;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.redirectOverviewWarning,
.redirectOverviewEmpty {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .55rem .7rem;
    margin-bottom: .8rem;
    background: rgba(0,0,0,.16);
    opacity: .86;
}

.redirectJumpBar {
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: .45rem .55rem;
    margin-bottom: .8rem;
    background: rgba(0,0,0,.14);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.redirectJumpBar span {
    margin-right: .2rem;
    font-size: .8rem;
    opacity: .62;
}

.redirectJumpBar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    min-height: 1.45rem;
    padding: .08rem .35rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255,255,255,.035);
}

.redirectOverviewGrid {
    column-count: 3;
    column-gap: .8rem;
}

.redirectLetterCard {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    break-inside: avoid;
    margin: 0 0 .8rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.028);
    overflow: hidden;
}

.redirectLetterHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .4rem .58rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.16);
}

.redirectLetterTitle {
    font-weight: 700;
    font-size: 1.05rem;
}

.redirectLetterCount {
    font-size: .76rem;
    opacity: .58;
}

.redirectList {
    list-style: none;
    margin: 0;
    padding: .32rem .45rem .45rem;
}

.redirectItem {
    padding: .34rem .15rem .38rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.redirectItem:last-child {
    border-bottom: 0;
}

.redirectSourceLine {
    display: flex;
    align-items: baseline;
    gap: .38rem;
    min-width: 0;
}

.redirectSource {
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.redirectBadge {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    padding: .02rem .34rem;
    font-size: .64rem;
    line-height: 1.45;
    opacity: .5;
}

.redirectBadgeHidden {
    opacity: .75;
}

.redirectTargetLine {
    margin-top: .16rem;
    padding-left: .28rem;
    display: flex;
    align-items: baseline;
    gap: .32rem;
    font-size: .82rem;
    opacity: .72;
}

.redirectArrow {
    flex: 0 0 auto;
    opacity: .55;
}

.redirectTarget {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.redirectTargetMissing {
    opacity: .65;
    font-style: italic;
}

@media (max-width: 1180px) {
    .redirectOverviewGrid {
        column-count: 2;
    }
}

@media (max-width: 760px) {
    .redirectOverviewHero {
        display: block;
    }

    .redirectOverviewStats {
        justify-content: flex-start;
        margin-top: .65rem;
    }

    .redirectOverviewGrid {
        column-count: 1;
    }
}



/* -------------------------------------------------------------------------
   Homepage modernizace - phase 4
   Konzervativní přestylování úvodní stránky bez změny HTML/PHP logiky.
   ------------------------------------------------------------------------- */

#homePage {
    gap: .85rem;
    padding: .35rem .55rem 1rem;
}

#homePage h2 {
    color: var(--dm-color-link, #ffcc66);
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    border-left: 3px solid var(--dm-color-link, #ffcc66);
    text-align: left;
    font-size: 115%;
    line-height: 1.2;
    padding: .48rem .72rem .42rem;
    margin: 0;
    letter-spacing: .01em;
}

#homePage > .newsRow:first-of-type h2 {
    text-align: center;
    border-left: 0;
    color: honeydew;
    background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.10), rgba(255,255,255,.04));
}

.newsRow,
#newsChanges {
    border: 1px solid rgba(160,160,160,.24);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
    overflow: hidden;
}

.newsRow {
    margin-bottom: .85rem;
}

.newsRow:last-of-type {
    margin-bottom: 0;
}

.newsWelcome {
    padding: .9rem 1rem 1rem;
    line-height: 1.45;
}

.newsWelcome p {
    margin-bottom: .55em;
}

#news {
    gap: .85rem;
    align-items: flex-start;
}

#newsChanges {
    margin-right: 0;
    min-width: 0;
    font-size: 10.5pt;
}

#newsChanges > div {
    padding: .6rem .7rem .72rem;
}

#newsChanges table {
    width: 100%;
    border-collapse: collapse;
}

#newsChanges td {
    padding: .12rem .1rem;
    vertical-align: top;
}

#newsChanges tr:hover td {
    background: rgba(255,255,255,.055);
}

.newsNewsDate {
    display: inline-block;
    min-width: 2.6rem;
    color: rgba(255,255,255,.72);
    font-size: 8.5pt;
    text-align: right;
    white-space: nowrap;
}

#newsIssues {
    gap: .85rem;
    width: 100%;
}

.newsBooks {
    gap: .72rem;
    padding: .72rem;
    justify-content: stretch;
    align-items: stretch;
}

.newsBook,
.newsBookOnly {
    border: 1px solid rgba(160,160,160,.18);
    border-radius: 10px;
    background: rgba(0,0,0,.22);
    padding: .62rem .72rem;
    box-sizing: border-box;
    min-width: 0;
}

.newsBook {
    text-align: justify;
    flex-basis: 0;
}

.newsBook:last-of-type,
.newsBookOnly:last-of-type {
    border-right: 1px solid rgba(160,160,160,.18);
}

.newsBook:hover,
.newsBookOnly:hover {
    border-color: rgba(255,255,255,.32);
    background: rgba(255,255,255,.055);
}

.newsBook img,
.newsBookOnly img {
    border-radius: 5px;
    box-shadow: 0 6px 16px rgba(0,0,0,.34);
}

.newsBookTitle {
    margin-bottom: .35rem;
    font-size: 105%;
}

.newsBookNote,
.newsTranslateNote {
    color: rgba(255,255,255,.74);
}

.newsMore {
    margin-top: .4rem;
    padding-top: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

#annoucment {
    border-radius: 10px;
    border: 1px solid rgba(255,130,130,.45);
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}

@media only screen and (min-width: 768px) {
    #news {
        display: grid;
        grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
        align-items: flex-start;
    }

    #newsChanges {
        position: sticky;
        top: .75rem;
    }
}

@media only screen and (max-width: 767px) {
    #homePage {
        padding-left: .35rem;
        padding-right: .35rem;
    }

    .newsBooks {
        padding: .55rem;
    }

    .newsBook,
    .newsBookOnly {
        padding: .55rem;
    }
}

/* DM layout phase 5: homepage cards, search and login forms */
.newsBooks {
    flex-wrap: wrap;
    align-items: stretch;
}

.newsBook,
.newsBookOnly {
    min-width: 260px;
    flex: 1 1 280px;
}

.newsBookOnly {
    width: auto;
}

@media only screen and (max-width: 980px) {
    .newsBook,
    .newsBookOnly {
        min-width: 240px;
    }
}

@media only screen and (max-width: 560px) {
    .newsBook,
    .newsBookOnly {
        min-width: 100%;
        flex-basis: 100%;
    }
}

.searchbutton,
#searchbox input[type=button],
.headerSearch input[type=button],
#headerMobNav img[alt="hledat"],
.loginButton,
#dialogFooter input,
#dialogHead button {
    border: 1px solid rgba(138,190,255,.55);
    border-radius: 8px;
    background: rgba(67,116,170,.20);
    color: var(--dm-color-link);
    padding: 4px 10px;
    min-height: 24px;
    box-sizing: border-box;
    font-weight: normal;
    cursor: pointer;
}

.searchbutton:hover,
#searchbox input[type=button]:hover,
.headerSearch input[type=button]:hover,
.loginButton:hover,
#dialogFooter input:hover,
#dialogHead button:hover {
    background: rgba(138,190,255,.24);
    border-color: rgba(180,215,255,.78);
    color: white;
}

.headerSearch form {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.headerSearch label,
.loginMini label,
.loginMenuForm label {
    color: rgba(255,255,255,.72);
    font-size: 92%;
}

.headerSearch input[type=text],
.loginInput,
#searchtext,
#searchtext2,
#login input[type=text],
#login input[type=password],
.loginMenuForm input[type=text],
.loginMenuForm input[type=password] {
    border: 1px solid rgba(160,160,160,.42);
    border-radius: 8px;
    background: rgba(0,0,0,.42);
    color: honeydew;
    padding: 4px 7px;
    min-height: 24px;
    box-sizing: border-box;
}

.headerSearch input[type=text]:focus,
.loginInput:focus,
#searchtext:focus,
#searchtext2:focus,
#login input[type=text]:focus,
#login input[type=password]:focus,
.loginMenuForm input[type=text]:focus,
.loginMenuForm input[type=password]:focus {
    outline: none;
    border-color: rgba(138,190,255,.78);
    background: rgba(0,0,0,.62);
}

.loginMiniForm {
    display: inline-block;
}

.loginMini {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
}

.loginToggle {
    display: inline-block;
    padding: 4px 9px !important;
    border: 1px solid rgba(128,128,128,.34);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}

.loginToggle:hover {
    background: rgba(255,255,255,.10);
}

.loginExpanded {
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    padding: 5px 6px;
    border: 1px solid rgba(128,128,128,.34);
    border-radius: 10px;
    background: rgba(0,0,0,.30);
}

#log1[style*="block"] {
    display: inline-flex !important;
}

.loginMini .loginInput {
    width: 82px !important;
}

.loginMini .loginButton {
    width: auto !important;
}

.loginMenuForm li {
    margin-bottom: 5px;
}

.loginMenuForm label {
    display: block;
    margin-bottom: 2px;
}

.loginMenuForm input[type=text],
.loginMenuForm input[type=password],
.loginMenuForm .loginButton {
    width: 100% !important;
}

#dialog {
    background-color: rgba(0,0,0,.76);
    backdrop-filter: blur(2px);
}

#dialogForm {
    width: min(620px, calc(100vw - 32px));
    margin: 9vh auto 0 auto;
    background: #050505;
    border: 1px solid rgba(160,160,160,.36);
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0,0,0,.65);
    overflow: hidden;
}

#dialogHead {
    background: rgba(255,255,255,.055);
    border-bottom: 1px solid rgba(160,160,160,.24);
    padding-left: 12px;
}

#dialogTitle {
    font-size: 16px;
    font-weight: bold;
}

#dialogFooter {
    border-top: 1px solid rgba(160,160,160,.18);
    padding: 9px;
}

/* --- Layout phase 6: readable header forms, softer menu/footer separators --- */
.headerSearch input[type=text],
.loginInput,
#searchtext,
#searchtext2,
#login input[type=text],
#login input[type=password],
.loginMenuForm input[type=text],
.loginMenuForm input[type=password] {
    border-color: rgba(150,190,230,.68);
    background: rgba(0,8,16,.92);
    color: #f3fff8;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.045), 0 1px 7px rgba(0,0,0,.45);
}

.headerSearch input[type=text]:hover,
.loginInput:hover,
#searchtext:hover,
#searchtext2:hover,
#login input[type=text]:hover,
#login input[type=password]:hover,
.loginMenuForm input[type=text]:hover,
.loginMenuForm input[type=password]:hover {
    border-color: rgba(185,220,255,.84);
    background: rgba(0,10,20,.96);
}

.headerSearch input[type=text]:focus,
.loginInput:focus,
#searchtext:focus,
#searchtext2:focus,
#login input[type=text]:focus,
#login input[type=password]:focus,
.loginMenuForm input[type=text]:focus,
.loginMenuForm input[type=password]:focus {
    border-color: rgba(205,230,255,.95);
    background: rgba(0,12,24,.98);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 2px rgba(85,150,220,.22), 0 2px 9px rgba(0,0,0,.55);
}

.searchbutton,
#searchbox input[type=button],
.headerSearch input[type=button],
#headerMobNav img[alt="hledat"],
.loginButton,
#dialogFooter input,
#dialogHead button {
    border-color: rgba(155,205,255,.78);
    background: linear-gradient(180deg, rgba(31,76,122,.98), rgba(13,38,68,.98));
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 7px rgba(0,0,0,.50);
}

.searchbutton:hover,
#searchbox input[type=button]:hover,
.headerSearch input[type=button]:hover,
.loginButton:hover,
#dialogFooter input:hover,
#dialogHead button:hover {
    border-color: rgba(210,235,255,.96);
    background: linear-gradient(180deg, rgba(45,98,150,.98), rgba(20,55,94,.98));
    color: #ffffff;
}

.loginExpanded,
.loginToggle {
    border-color: rgba(150,190,230,.42);
    background: rgba(0,8,16,.72);
    box-shadow: 0 2px 10px rgba(0,0,0,.30);
}

#menu {
    background: linear-gradient(90deg, rgba(255,255,255,.018), rgba(255,255,255,.010));
}

#suberMenu {
    border-left: 1px solid rgba(150,170,190,.16);
    box-shadow: inset 8px 0 14px -16px rgba(140,190,255,.60);
}

#footer,
.dmFooter {
    border-top: 1px solid rgba(150,170,190,.20);
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    color: rgba(240,255,245,.76);
    padding: 13px 16px 15px 16px;
    margin-top: 16px;
    line-height: 1.45em;
    box-shadow: inset 0 8px 18px -22px rgba(140,190,255,.70);
}

.dmFooter a,
#footer a {
    font-weight: normal;
}

.dmFooterMeta {
    font-size: 92%;
    opacity: .72;
    margin-bottom: 6px;
}

.dmFooterLegal {
    max-width: 980px;
    margin: 0 auto;
    font-size: 96%;
}

.itemedited {
    padding: 4px 8px 8px 8px;
    margin-bottom: 7px;
    border-bottom: 1px solid rgba(150,170,190,.12);
    color: rgba(240,255,245,.82);
}

@media only screen and (min-width: 600px) {
    #menu {
        border-top: 1px solid rgba(150,170,190,.18);
        box-shadow: inset 0 9px 15px -20px rgba(140,190,255,.60);
    }
}

@media only screen and (min-width: 768px) {
    #menu {
        border-right: 1px solid rgba(150,170,190,.20);
        border-top: none;
        box-shadow: inset -10px 0 18px -20px rgba(140,190,255,.75);
    }
}

@media only screen and (min-width: 1900px) {
    #middle {
        border-left: 1px solid rgba(150,170,190,.14);
        border-right: 1px solid rgba(150,170,190,.14);
    }

    #footer,
    .dmFooter {
        border: 1px solid rgba(150,170,190,.18);
        border-top-color: rgba(150,170,190,.24);
        border-radius: 0 0 8px 8px;
    }

    #menu {
        border-right: 1px solid rgba(150,170,190,.20);
        border-top: none;
    }
}


/* --- Layout phase 8: modern search whisper without meta labels --- */
#whisper,
.dmWhisper {
    width: min(460px, calc(100vw - 22px));
    max-width: calc(100vw - 22px);
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(150,190,230,.38);
    border-radius: 12px;
    background: rgba(0,8,16,.96);
    color: #f3fff8;
    box-shadow: 0 18px 36px rgba(0,0,0,.68), inset 0 1px 0 rgba(255,255,255,.045);
    backdrop-filter: blur(3px);
    overflow: hidden;
}

#whisper.dmWhisperVisible {
    visibility: visible;
}

#whisper .dmWhisperItem {
    display: block;
    padding: 8px 10px;
    margin: 0 0 3px 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: honeydew;
    cursor: pointer;
    line-height: 1.22em;
    transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}

#whisper .dmWhisperItem:last-child {
    margin-bottom: 0;
}

#whisper .dmWhisperItem:hover,
#whisper .dmWhisperItem.h {
    border-color: rgba(145,200,255,.42);
    background: rgba(38,86,132,.46);
    transform: translateX(2px);
}

#whisper .dmWhisperTitle {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5pt;
    line-height: 1.35em;
}

#whisper .dmWhisperTitle a {
    font-weight: bold;
}







#whisper .dmWhisperItem a {
    text-decoration: none;
}

#whisper .dmWhisperItem:hover a,
#whisper .dmWhisperItem.h a {
    text-decoration: none;
}

@media only screen and (max-width: 600px) {
    #whisper,
    .dmWhisper {
        width: calc(100vw - 18px) !important;
        max-width: calc(100vw - 18px);
        border-radius: 10px;
        padding: 5px;
    }

    #whisper .dmWhisperItem {
        padding: 8px 9px;
    }
}

/* --- Layout phase 9: article previous/next navigation with truly centered title --- */
.itemTitle.itemNav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 2.2fr) minmax(0, 1fr);
    grid-template-areas: "prev head next";
    align-items: start;
    gap: 10px;
    margin: 18px 10px 15px 10px;
    padding: 0 0 11px 0;
    border-bottom: 1px solid rgba(150,170,190,.16);
}

.itemNav .itemprev,
.itemNav .itemnext,
.itemNav .itemhead {
    min-width: 0;
}

.itemNav .itemprev {
    grid-area: prev;
    margin-left: 0;
    text-align: left;
}

.itemNav .itemnext {
    grid-area: next;
    text-align: right;
}

.itemNav .itemhead {
    grid-area: head;
    text-align: center;
    flex-basis: auto;
    flex-grow: 0;
}

.itemNav .itemhead .title,
.itemNav .itemhead .title2,
.itemNav .itemhead .subtitle,
.itemNav .itemhead .subtitle2 {
    margin-left: auto;
    margin-right: auto;
}

.itemNav .itemhead .title {
    line-height: 1.12em;
}

.itemNav .itemhead .subtitle,
.itemNav .itemhead .subtitle2,
.itemNav .itemhead .redirinfo,
.itemNav .itemhead .slovnikcat {
    margin-top: .35rem;
}

.itemNavSide {
    padding-top: .35rem;
}

.itemNavPrev {
    justify-self: start;
}

.itemNavNext {
    justify-self: end;
}

.itemNavLink {
    display: flex;
    align-items: center;
    gap: .38rem;
    min-height: 28px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 9px;
    border: 1px solid rgba(150,190,230,.30);
    border-radius: 999px;
    background: rgba(0,8,16,.46);
    color: var(--dm-color-link) !important;
    font-weight: normal !important;
    line-height: 1.18em;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.itemNavLink:hover {
    border-color: rgba(170,210,255,.50);
    background: rgba(31,76,122,.34);
    color: #ffffff !important;
    text-decoration: none !important;
}

.itemNavText {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.itemNavArrow {
    flex: 0 0 auto;
    opacity: .78;
}

@media only screen and (max-width: 700px) {
    .itemTitle.itemNav {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "head head"
            "prev next";
        gap: 8px;
        margin: 12px 6px 12px 6px;
        padding-bottom: 9px;
    }

    .itemNavSide {
        padding-top: 0;
    }

    .itemNavPrev,
    .itemNavNext {
        width: 100%;
        justify-self: stretch;
    }

    .itemNavNext .itemNavLink {
        justify-content: flex-end;
    }

    .itemNavLink {
        width: 100%;
        border-radius: 8px;
        padding: 5px 7px;
    }

    .itemNav .itemhead .title {
        font-size: 20pt;
    }
}

@media print {
    .itemTitle.itemNav {
        display: block;
        border-bottom: 0;
        margin: 0 0 10px 0;
        padding: 0;
    }

    .itemNav .itemhead {
        margin-left: auto;
        margin-right: auto;
    }
}


/* Moderní seznam dílů ---------------------------------------------------- */
.dilListHero {
    max-width: 1120px;
    margin: .35rem auto .75rem auto;
    padding: .7rem .9rem;
    border: 1px solid rgba(128,128,128,.22);
    border-radius: 7px;
    background: rgba(9,13,19,.78);
    box-shadow: 0 8px 18px rgba(0,0,0,.20);
    text-align: center;
}

.dilListHero h1 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.dilListHeroSub {
    margin-top: .18rem;
    opacity: .68;
    font-size: .88rem;
}

.dilListModern {
    max-width: 1120px;
    margin: .55rem auto 1.1rem auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(128,128,128,.23);
    border-radius: 7px;
    background: rgba(5,8,12,.54);
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.dilListGrid {
    display: grid;
    align-items: center;
    gap: .65rem;
}

.dilListGridAuthor {
    grid-template-columns: 4.9rem minmax(30rem, max-content) minmax(16rem, 1fr);
}

.dilListGridNoAuthor {
    grid-template-columns: 4.9rem minmax(18rem, 1fr);
}

.dilListHeader {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: .42rem .7rem .38rem .7rem;
    color: rgba(240,255,240,.82);
    font-size: .76rem;
    font-weight: bold;
    letter-spacing: .035em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(160,190,220,.28);
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, rgba(31,42,54,.98), rgba(17,25,34,.98));
    box-shadow: 0 3px 10px rgba(0,0,0,.28);
}

.dilListRow {
    padding: .34rem .7rem;
    border-bottom: 1px solid rgba(128,128,128,.13);
    background: rgba(8,12,18,.58);
    transition: background-color .12s ease, border-color .12s ease;
}

.dilListRow:last-child {
    border-bottom: 0;
    border-radius: 0 0 7px 7px;
}

.dilListRow:nth-of-type(even) {
    background: rgba(14,18,26,.66);
}

.dilListRow:hover {
    border-bottom-color: rgba(120,170,220,.30);
    background: rgba(20,29,40,.92);
}

.dilListRow a {
    font-weight: normal;
}

.dilListNo {
    text-align: right;
    font-size: .95rem;
    font-weight: bold;
    white-space: nowrap;
}

.dilListNo a {
    display: inline-block;
    min-width: 3rem;
    padding: .05rem .32rem;
    border-radius: 4px;
    background: rgba(80,105,130,.18);
    color: var(--dm-color-link);
}

.dilListAuthor,
.dilListAutor {
    min-width: 30rem;
    color: rgba(240,255,240,.82);
    font-size: .9rem;
    line-height: 1.2;
    white-space: nowrap;
}

.dilListName {
    min-width: 0;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.dilListName a,
.dilListAuthor a {
    display: inline;
}

.dilListNameTitle {
    font-weight: bold;
}

.dilListMuted,
.dilListEmpty {
    color: rgba(240,255,240,.52);
    font-style: italic;
}

.dilListEmpty {
    padding: .85rem;
    text-align: center;
    background: rgba(8,12,18,.55);
}

@media (max-width: 980px) {
    .dilListHeader {
        display: none;
    }

    .dilListModern {
        border-radius: 7px;
        gap: .28rem;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .dilListGrid,
    .dilListGridAuthor,
    .dilListGridNoAuthor {
        grid-template-columns: 1fr;
        gap: .22rem;
    }

    .dilListRow {
        padding: .62rem .75rem;
        border: 1px solid rgba(128,128,128,.20);
        border-radius: 7px;
        background: rgba(8,12,18,.72);
    }

    .dilListRow:last-child {
        border-bottom: 1px solid rgba(128,128,128,.20);
        border-radius: 7px;
    }

    .dilListRow > div {
        display: grid;
        grid-template-columns: 8.5rem minmax(0, 1fr);
        gap: .55rem;
        align-items: start;
    }

    .dilListRow > div::before {
        content: attr(data-label);
        color: rgba(240,255,240,.50);
        font-size: .76rem;
        text-transform: uppercase;
        letter-spacing: .025em;
    }

    .dilListAuthor,
    .dilListAutor {
        min-width: 0;
        white-space: normal;
    }

    .dilListNo {
        text-align: left;
    }

    .dilListNo a {
        min-width: auto;
    }
}

@media (max-width: 560px) {
    .dilListModern {
        margin-left: .25rem;
        margin-right: .25rem;
    }

    .dilListRow > div {
        grid-template-columns: 1fr;
        gap: .06rem;
    }
}


/* moderní přehled cyklů v kategorii */
.cyklusCategoryModern {
    max-width: 100%;
}

.cyklusCategorySummary {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
    margin: .25rem 0 .55rem 0;
}

.cyklusCategorySummaryItem {
    display: inline-flex;
    align-items: baseline;
    gap: .32rem;
    padding: .24rem .55rem;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(15, 20, 27, .88);
}

.cyklusCategorySummaryItem span {
    font-weight: 700;
    color: var(--dm-color-link);
}

.cyklusCategorySummaryItem small {
    opacity: .72;
}

.cyklusCategoryTableWrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid rgba(128, 128, 128, .34);
    border-radius: 7px;
    background: rgba(8, 10, 14, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.cyklusCategoryTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .94rem;
}

.cyklusCategoryTable th {
    position: sticky;
    top: 0;
    z-index: 7;
    padding: .44rem .58rem;
    text-align: left;
    color: #f2f7ff;
    background: rgba(25, 34, 46, .98);
    border-bottom: 1px solid rgba(170, 185, 205, .35);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
    white-space: nowrap;
}

.cyklusCategoryTable td {
    padding: .36rem .58rem;
    border-bottom: 1px solid rgba(128, 128, 128, .16);
    vertical-align: middle;
}

.cyklusCategoryTable tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, .025);
}

.cyklusCategoryTable tbody tr:hover td {
    background: rgba(104, 184, 255, .075);
}

.cyklusCategoryTable tbody tr:last-child td {
    border-bottom: 0;
}

.cyklusCategoryColNo,
.cyklusCategoryNo {
    width: 4.8rem;
    text-align: right !important;
}

.cyklusCategoryNo a {
    display: inline-block;
    min-width: 3rem;
    padding: .12rem .36rem;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 5px;
    background: rgba(0, 0, 0, .24);
    text-align: center;
}

.cyklusCategoryColVolumes,
.cyklusCategoryVolumes {
    min-width: 8.5rem;
    white-space: nowrap;
    text-align: center;
}

.cyklusCategoryColTime,
.cyklusCategoryTime {
    min-width: 10rem;
    white-space: nowrap;
    text-align: center;
}

.cyklusCategoryColName,
.cyklusCategoryName {
    min-width: 18rem;
}

.cyklusCategoryName a {
    font-weight: 700;
}

.cyklusCategoryColUber,
.cyklusCategoryUber {
    min-width: 14rem;
}

.cyklusCategoryUber {
    color: rgba(245, 245, 245, .86);
    background: rgba(255, 255, 255, .018);
}

.cyklusCategoryRangeDash {
    display: inline-block;
    margin: 0 .32rem;
    opacity: .65;
}

.cyklusCategoryMuted {
    opacity: .52;
    font-style: italic;
}

.cyklusCategoryEmpty {
    margin: 1rem 0;
    padding: .8rem 1rem;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
    text-align: center;
    opacity: .82;
}

@media (max-width: 980px) {
    .cyklusCategorySummary {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cyklusCategoryTable {
        min-width: 760px;
    }
}

/* Parserové tabulky ({| ... |}) */
.parserTableWrap {
    margin: 1em 0 1.2em 0;
    overflow-x: auto;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.parserTableWrapCenter {
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
}

.parserTable {
    width: 100%;
    min-width: 420px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .96em;
    line-height: 1.35;
}

.parserTableCenter {
    width: auto;
    margin-left: auto;
    margin-right: auto;
}

.parserTable th,
.parserTable td {
    padding: .48rem .72rem;
    border: 0;
    border-bottom: 1px solid rgba(128, 128, 128, .18);
    vertical-align: top;
}

.parserTable th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(34, 43, 54, .96);
    color: rgba(255, 255, 255, .94);
    font-weight: 700;
    text-align: left;
    border-bottom-color: rgba(170, 190, 210, .36);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 2px 7px rgba(0, 0, 0, .22);
}

.parserTableHeaderRow th:first-child {
    border-top-left-radius: 6px;
}

.parserTableHeaderRow th:last-child {
    border-top-right-radius: 6px;
}

.parserTableBodyRow:nth-child(odd) td {
    background: rgba(255, 255, 255, .018);
}

.parserTableBodyRow:hover td {
    background: rgba(104, 184, 255, .075);
}

.parserTable tr:last-child td,
.parserTable tr:last-child th {
    border-bottom: 0;
}

.parserTableSeparate {
    border-spacing: 0 3px;
    padding: 3px;
}

.parserTableSeparate th,
.parserTableSeparate td {
    border-top: 1px solid rgba(128, 128, 128, .16);
    border-bottom: 1px solid rgba(128, 128, 128, .16);
    background: rgba(255, 255, 255, .025);
}

.parserTableSeparate th:first-child,
.parserTableSeparate td:first-child {
    border-left: 1px solid rgba(128, 128, 128, .16);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.parserTableSeparate th:last-child,
.parserTableSeparate td:last-child {
    border-right: 1px solid rgba(128, 128, 128, .16);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.parserTableCellLeft {
    text-align: left;
}

.parserTableCellRight {
    text-align: right;
}

.parserTableCellCenter {
    text-align: center;
}

.parserTableCellJustify {
    text-align: justify;
}

@media (max-width: 760px) {
    .parserTableWrap {
        margin-left: -.2rem;
        margin-right: -.2rem;
        border-radius: 5px;
    }

    .parserTable {
        font-size: .92em;
    }

    .parserTable th,
    .parserTable td {
        padding: .42rem .58rem;
    }
}

/* --- Layout phase 19: modern parser macros (SeznamDílů, PřehledDílů, StatistikaAutora) --- */
.parserMacroVolumeList,
.parserMacroVolumeCards,
.parserAuthorStats {
    margin: 1rem 0 1.25rem;
}

.parserMacroVolumeList {
    overflow-x: auto;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.parserMacroVolumeGridCompact {
    display: grid;
    grid-template-columns: 4.6rem 4.8rem minmax(12rem, max-content) minmax(16rem, 1fr);
    align-items: center;
    gap: 0;
    min-width: 620px;
}

.parserMacroVolumeHead {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: .46rem .68rem;
    background: rgba(34, 43, 54, .97);
    color: rgba(255, 255, 255, .94);
    font-size: .88em;
    font-weight: 700;
    border-bottom: 1px solid rgba(170, 190, 210, .36);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}

.parserMacroVolumeRow {
    padding: .42rem .68rem;
    border-bottom: 1px solid rgba(128, 128, 128, .16);
}

.parserMacroVolumeRow:nth-child(odd) {
    background: rgba(255, 255, 255, .018);
}

.parserMacroVolumeRow:hover {
    background: rgba(104, 184, 255, .075);
}

.parserMacroVolumeList .parserMacroVolumeRow:last-child {
    border-bottom: 0;
}

.parserMacroVolumeNo {
    font-weight: 700;
    text-align: right;
    padding-right: .8rem;
    white-space: nowrap;
}

.parserMacroVolumeCover {
    text-align: center;
}

.parserMacroVolumeCover img {
    max-width: 42px;
    max-height: 58px;
    border-radius: 3px;
    vertical-align: middle;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}

.parserMacroVolumeAuthor {
    padding: 0 .9rem;
    white-space: nowrap;
}

.parserMacroVolumeTitle {
    min-width: 0;
    font-weight: 600;
}

.parserMacroMuted,
.parserMacroEmpty {
    color: rgba(235, 245, 255, .62);
}

.parserMacroEmpty {
    margin: 1rem 0;
    padding: .7rem .9rem;
    border: 1px solid rgba(128, 128, 128, .24);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
}

.parserMacroVolumeCards {
    display: grid;
    gap: .75rem;
}

.parserMacroVolumeCard {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: .9rem;
    padding: .75rem .85rem;
    border: 1px solid rgba(128, 128, 128, .24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}

.parserMacroVolumeCard:hover {
    border-color: rgba(104, 184, 255, .34);
    background: linear-gradient(180deg, rgba(104, 184, 255, .075), rgba(255, 255, 255, .022));
}

.parserMacroVolumeCardCover {
    text-align: center;
}

.parserMacroVolumeCardCover img {
    max-width: 78px;
    max-height: 112px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}

.parserMacroVolumeCardBody {
    min-width: 0;
}

.parserMacroVolumeCardMeta,
.parserMacroVolumeCardAuthor,
.parserMacroVolumeCardSubtitle {
    color: rgba(235, 245, 255, .72);
    font-size: .9em;
}

.parserMacroVolumeCard h3 {
    margin: .08rem 0 .18rem;
    font-size: 1.12em;
    line-height: 1.25;
}

.parserMacroVolumeCardAuthor {
    margin-bottom: .18rem;
}

.parserMacroVolumeCardSubtitle {
    margin: .2rem 0 .35rem;
    font-style: italic;
}

.parserMacroVolumeCardText {
    color: rgba(245, 250, 255, .86);
    line-height: 1.45;
}

.parserMacroVolumeCardText p:first-child {
    margin-top: 0;
}

.parserMacroVolumeCardText p:last-child {
    margin-bottom: 0;
}

.parserAuthorStatsIntro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .75rem;
    margin: 0 0 .75rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(128, 128, 128, .24);
    border-radius: 7px;
    background: rgba(255, 255, 255, .025);
}

.parserAuthorStatsLabel {
    color: rgba(235, 245, 255, .64);
    font-size: .86em;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.parserAuthorStatsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    align-items: start;
    gap: .85rem;
}

.parserAuthorStatsGroup {
    overflow: hidden;
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 7px;
    background: rgba(255, 255, 255, .024);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.parserAuthorStatsGroup h3 {
    margin: 0;
    padding: .58rem .72rem .18rem;
    font-size: 1.02em;
    line-height: 1.25;
}

.parserAuthorStatsCount {
    padding: 0 .72rem .48rem;
    color: rgba(235, 245, 255, .62);
    font-size: .88em;
}

.parserAuthorStatsTable {
    border-top: 1px solid rgba(128, 128, 128, .20);
}

.parserAuthorStatsHead,
.parserAuthorStatsRow {
    display: grid;
    grid-template-columns: 4.4rem minmax(0, 1fr);
    align-items: baseline;
    gap: .7rem;
}

.parserAuthorStatsHead {
    padding: .42rem .72rem;
    background: rgba(34, 43, 54, .92);
    color: rgba(255, 255, 255, .9);
    font-size: .82em;
    font-weight: 700;
    border-bottom: 1px solid rgba(170, 190, 210, .28);
}

.parserAuthorStatsRow {
    padding: .38rem .72rem;
    border-bottom: 1px solid rgba(128, 128, 128, .14);
}

.parserAuthorStatsRow:nth-child(odd) {
    background: rgba(255, 255, 255, .018);
}

.parserAuthorStatsRow:hover {
    background: rgba(104, 184, 255, .07);
}

.parserAuthorStatsRow:last-child {
    border-bottom: 0;
}

.parserAuthorStatsNo {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.parserAuthorStatsTitle {
    min-width: 0;
}

@media (max-width: 760px) {
    .parserMacroVolumeList {
        border-radius: 5px;
    }

    .parserMacroVolumeGridCompact {
        grid-template-columns: 4.1rem 4.2rem minmax(9rem, max-content) minmax(13rem, 1fr);
        min-width: 560px;
    }

    .parserMacroVolumeHead,
    .parserMacroVolumeRow {
        padding-left: .55rem;
        padding-right: .55rem;
    }

    .parserMacroVolumeCard {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: .7rem;
        padding: .65rem .7rem;
    }

    .parserMacroVolumeCardCover img {
        max-width: 58px;
        max-height: 86px;
    }

    .parserAuthorStatsGrid {
        grid-template-columns: 1fr;
    }
}

/* --- Layout phase 20: parser paragraphs and lists cleanup --- */
#itemtext p.parserParagraph {
    margin: .45rem 0 .78rem;
    line-height: 1.5;
    text-indent: 1em;
}

#itemtext H1 + p.parserParagraph,
#itemtext H2 + p.parserParagraph,
#itemtext H3 + p.parserParagraph,
#itemtext H4 + p.parserParagraph,
#itemtext H5 + p.parserParagraph,
#itemtext H6 + p.parserParagraph {
    margin-top: 0;
}

#itemtext p.parserParagraph.np {
    margin-bottom: .18rem;
}

#itemtext p.parserParagraph.pd {
    margin-bottom: 1.15rem;
}

#itemtext p.parserParagraph:first-child {
    margin-top: 0;
}

#itemtext p.parserParagraph:last-child {
    margin-bottom: 0;
}

#itemtext .parserListBlock.tree {
    margin: .35rem 0 .9rem .75rem;
}

#itemtext p.parserParagraph + .parserListBlock.tree {
    margin-top: .1rem;
}

#itemtext .parserListBlock.tree + p.parserParagraph {
    margin-top: .55rem;
}

#itemtext .parserListBlock.tree + .parserListBlock.tree {
    margin-top: .45rem;
}

#itemtext .parserList {
    margin: 0 0 0 1.45rem;
    padding: 0;
    line-height: 1.42;
}

#itemtext .parserList .parserList {
    margin-top: .18rem;
    margin-bottom: .12rem;
}

#itemtext .parserListItem {
    margin: .12rem 0;
    padding-left: .12rem;
    line-height: 1.42;
}

#itemtext .parserListItem::marker {
    color: rgba(104, 184, 255, .86);
    font-weight: 700;
}

#itemtext .parserListItem > p.parserParagraph {
    text-indent: 0;
    margin: .2rem 0 .45rem;
}

#itemtext .parserListBlock.tree + h1,
#itemtext .parserListBlock.tree + h2,
#itemtext .parserListBlock.tree + h3,
#itemtext .parserListBlock.tree + h4,
#itemtext .parserListBlock.tree + h5 {
    margin-top: 1rem;
}

@media (max-width: 760px) {
    #itemtext p.parserParagraph {
        margin-bottom: .68rem;
        line-height: 1.47;
    }

    #itemtext .parserListBlock.tree {
        margin-left: .25rem;
        margin-bottom: .78rem;
    }

    #itemtext .parserList {
        margin-left: 1.25rem;
    }
}


/* --- Layout phase 23: modern slovnik item extinfo + tag chips --- */
.slovnikItemModern {
    position: relative;
}

.slovnikArticleText {
    min-width: 0;
}

.extinfo.slovnikExtInfo {
    float: right;
    clear: right;
    width: min(28rem, 38vw);
    max-width: 100%;
    margin: .35rem 0 1rem 1.15rem;
    text-align: left;
}

.extinfo.slovnikExtInfoDatehash {
    width: min(30rem, 42vw);
}

.extinfo.slovnikExtInfoImage {
    width: min(17rem, 28vw);
}

.slovnikExtCard,
.slovnikExtImageCard {
    overflow: hidden;
    border: 1px solid rgba(150, 170, 190, .24);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.slovnikExtTitle {
    margin: 0;
    padding: .55rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.045);
    font-size: 100%;
    line-height: 1.25;
    text-align: left;
}

.slovnikExtRows {
    padding: .18rem 0;
}

.slovnikExtRow {
    display: grid;
    grid-template-columns: minmax(7.5rem, .75fr) minmax(0, 1.25fr);
    gap: .55rem;
    padding: .42rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.slovnikExtRow:last-child,
.slovnikExtText:last-child,
.slovnikExtSubhead:last-child {
    border-bottom: 0;
}

.slovnikExtKey {
    color: rgba(240,255,245,.74);
    font-size: 92%;
    line-height: 1.35;
}

.slovnikExtValue {
    min-width: 0;
    line-height: 1.35;
}

.slovnikExtValue p,
.slovnikExtText p {
    margin: 0;
}

.slovnikExtSubhead {
    padding: .5rem .72rem .38rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
    background: rgba(255,255,255,.025);
    font-weight: bold;
    letter-spacing: .015em;
}

.slovnikExtText {
    padding: .48rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.055);
    line-height: 1.42;
}

.slovnikExtDatehashBlock {
    padding: .65rem .72rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.075);
}

.slovnikExtDatehashBlock:last-child {
    border-bottom: 0;
}

.slovnikExtDatehashHead,
.slovnikExtDatehashLine {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: baseline;
    margin-bottom: .45rem;
    font-size: 92%;
}

.slovnikExtDatehashLine {
    grid-template-columns: minmax(7.5rem, .8fr) minmax(0, 1.2fr);
}

.slovnikExtDatehashLine span,
.slovnikExtDatehashHead span {
    color: rgba(240,255,245,.72);
}

.slovnikExtDatehashAction {
    margin: .42rem 0 .55rem;
    text-align: center;
    font-size: 92%;
}

.slovnikExtDatehashAction a,
.slovnikExtDatehashHead a {
    font-weight: normal;
}

.slovnikExtGraph {
    padding: .25rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    background: rgba(0,0,0,.20);
    text-align: center;
}

.slovnikExtGraph .extinfohashimg,
.extinfohashimg {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.slovnikExtError {
    margin: .65rem .72rem;
    padding: .55rem .65rem;
    border: 1px solid rgba(255,90,90,.42);
    border-radius: 8px;
    background: rgba(110,0,0,.24);
    color: #ffd6d6;
    font-size: 92%;
}

.slovnikExtImageCard {
    padding: .45rem;
    text-align: center;
}

.slovnikExtImageCard img {
    max-width: 100%;
    height: auto;
}

.slovnikExtImageCard .extinfoimgtip {
    display: block;
    margin-top: .25rem;
    font-size: 90%;
    color: rgba(240,255,245,.78);
}

.slovnikItemTags {
    clear: both;
    margin: 1.15rem 0 .45rem;
    padding: .7rem .8rem;
    border: 1px solid rgba(150, 170, 190, .22);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    text-align: left;
}

.slovnikItemTagsLabel {
    margin-bottom: .45rem;
    color: rgba(240,255,245,.72);
    font-size: 90%;
    font-weight: bold;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.slovnikItemTagList {
    display: flex;
    flex-wrap: wrap;
    gap: .38rem;
}

.slovnikItemTag,
.slovnikCategoryRegister a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .22rem .52rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    font-weight: normal !important;
    line-height: 1.25;
    text-decoration: none;
}

.slovnikItemTag:hover,
.slovnikCategoryRegister a:hover {
    background: rgba(255,255,255,.10);
    text-decoration: none;
}

@media (max-width: 980px) {
    .extinfo.slovnikExtInfo,
    .extinfo.slovnikExtInfoDatehash,
    .extinfo.slovnikExtInfoImage {
        float: none;
        clear: both;
        width: auto;
        max-width: none;
        margin: .65rem 0 1rem;
    }
}

@media (max-width: 620px) {
    .slovnikExtRow,
    .slovnikExtDatehashLine,
    .slovnikExtDatehashHead {
        display: block;
    }

    .slovnikExtKey,
    .slovnikExtDatehashLine span,
    .slovnikExtDatehashHead span {
        display: block;
        margin-bottom: .18rem;
    }
}


/* --- Layout phase 24: modern chrono date extinfo --- */
.extinfo.chronoDatesExtInfo {
    float: right;
    clear: right;
    width: min(30rem, 42vw);
    max-width: 100%;
    margin: .35rem 0 1rem 1.15rem;
    text-align: left;
}

.chronoDatesCard {
    min-width: 18rem;
}

.chronoDatesTitle {
    font-size: 98%;
}

.chronoDateRow {
    grid-template-columns: minmax(9rem, .85fr) minmax(0, 1.15fr);
}

.chronoDateKey {
    white-space: normal;
}

.chronoDateValue {
    word-break: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 980px) {
    .extinfo.chronoDatesExtInfo {
        float: none;
        clear: both;
        width: auto;
        max-width: none;
        margin: .65rem 0 1rem;
    }
}

@media (max-width: 620px) {
    .chronoDateRow {
        display: block;
    }

    .chronoDateKey {
        display: block;
        margin-bottom: .18rem;
    }
}


/* --- Layout phase 27: modern volume item page --- */
.dilItemModern {
    position: relative;
}

.dilItemTitleSub {
    margin-top: .18rem;
    text-align: center;
    color: rgba(240,255,245,.68);
    font-size: 42%;
    font-weight: normal;
    line-height: 1.35;
}

.dilSidePanel {
    float: right;
    clear: right;
    box-sizing: border-box;
    width: min(22rem, 36vw);
    max-width: 100%;
    margin: .35rem 0 1rem 1.15rem;
    padding: 0 0 .72rem .72rem;
    border: 0;
    border-left: 1px solid rgba(150,170,190,.30);
    border-bottom: 1px solid rgba(150,170,190,.26);
    border-radius: 0 0 0 8px;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

#dil2covers.dilSidePanel,
#dily2ilus.dilSidePanel {
    clear: right;
    padding-left: .72rem;
    padding-bottom: .72rem;
    border: 0;
    border-left: 1px solid rgba(150,170,190,.30);
    border-bottom: 1px solid rgba(150,170,190,.26);
}

#dil2covers.dilSidePanel {
    width: auto;
    max-width: calc(100% - 1.15rem);
}

.dilCoverPanel {
    width: auto;
}

.dilCoverMain,
.dilCoverAlt {
    min-width: 0;
}

.dilCoverMain,
#dil2maincovers.dilCoverMain {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    align-items: flex-start;
}

.dilCoverMain a,
#dil2maincovers a,
.dilCoverMain span,
#dil2maincovers span {
    display: inline-block;
    line-height: 0;
}

.dilCoverMain img,
#dil2maincovers img {
    width: auto;
    max-width: none;
    height: 290px;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,.24);
}

.dilCoverAlt {
    margin-top: .75rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

.dilCoverAlt h2,
.dilIllusPanel h2 {
    margin: 0 0 .5rem 0;
    font-size: 95%;
    line-height: 1.25;
    color: rgba(240,255,245,.86);
}

.dilCoverAltGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    align-items: flex-start;
}

.dilCoverAltGrid a,
.dilCoverAltGrid span {
    display: inline-block;
    min-width: 0;
    line-height: 0;
}

.dilCoverAltGrid img,
#dil2othercover img {
    width: auto;
    max-width: none;
    height: 100px;
    box-sizing: border-box;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.16);
    padding: 1px;
    margin: 0;
}

.dil2cvrcpr {
    margin-top: .45rem;
    text-align: center;
    color: rgba(240,255,245,.58);
    font-size: 82%;
    line-height: 1.28;
}

.dilCoverMain .dil2cvrcpr,
#dil2maincovers .dil2cvrcpr {
    flex: 0 0 100%;
}

.dilItemInfoCard,
.dilItemStoryCard,
.dilItemCharacters,
.dilItemLinks {
    margin: .5rem 0 1rem 0;
    max-width: 58rem;
}

.dilItemInfoRow .slovnikExtKey {
    min-width: 0;
}

.dilItemVolume {
    display: inline-block;
    margin-left: .45rem;
    color: rgba(240,255,245,.68);
    font-size: 92%;
}

.dilItemCzechTitle {
    font-size: 108%;
}

.dilItemOriginalTitle {
    color: rgba(240,255,245,.70);
    font-style: italic;
}

.dilItemMuted {
    color: rgba(240,255,245,.55);
}

.dilItemCycleSep {
    display: inline-block;
    margin: 0 .45rem;
    color: rgba(240,255,245,.46);
}

.dilItemStoryCard .slovnikExtValue p,
.dilItemInfoCard .slovnikExtValue p {
    margin: 0;
}

.dilItemCharacters {
    overflow: hidden;
    border: 1px solid rgba(150,170,190,.20);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.dilItemCharacters h2 {
    margin: 0;
    padding: .55rem .72rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.035);
    font-size: 100%;
    line-height: 1.25;
}

.dilItemCharactersBody,
.dilypost.dilItemCharactersBody {
    margin: 0;
    padding: .62rem .8rem .7rem;
    text-align: left;
}

.dilItemText {
    margin-top: 1rem;
    min-width: 0;
}

.dilItemText p:first-child {
    margin-top: 0;
}

.dilItemEmptyText {
    color: rgba(240,255,245,.62);
    font-style: italic;
}

#dily2ilus.dilIllusPanel {
    width: min(16.5rem, 30vw);
    text-align: center;
}

.dilIllusGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    align-items: start;
}

#dily2ilus.dilIllusPanel a,
#dily2ilus.dilIllusPanel span {
    display: block;
    min-width: 0;
}

#dily2ilus.dilIllusPanel img,
.dilIllusGrid img {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 6px;
    background: rgba(0,0,0,.22);
}

.dilItemLinks.dilyodkazy {
    margin: 1.2rem 0 0 0;
    padding: 0;
    text-align: left;
}

.dilItemLinksBody {
    padding: .72rem .85rem;
}

.dilItemLinksBody p:first-child {
    margin-top: 0;
}

.dilItemLinksBody p:last-child {
    margin-bottom: 0;
}

#dil2Tbl {
    display: none;
}

#dil2subinfo {
    display: none;
}

.dilypostnad.dilItemSectionTitle {
    display: block;
    clear: none;
    margin: 1.1rem 0 .25rem 0;
    padding-left: .65rem;
    border-left: 3px solid rgba(150,170,190,.32);
    color: rgba(240,255,245,.82);
    font-weight: bold;
}

.dilItemCharactersPlain,
.dilypost.dilItemCharactersPlain {
    margin: 0 0 1rem 1.1rem;
    padding: .25rem 0 .55rem 1.05rem;
    border-left: 1px solid rgba(150,170,190,.22);
    text-align: left;
}

.dilItemCharactersPlain p:first-child {
    margin-top: 0;
}

.dilItemCharactersPlain p:last-child {
    margin-bottom: 0;
}

.dilItemLinksPlain.dilyodkazy {
    clear: both;
    margin: 1.7rem 4% .9rem 4%;
    padding: .75rem 0 0 0;
    border-top: 1px solid rgba(150,170,190,.22);
    text-align: justify;
    font-size: 10pt;
}

.dilItemLinksPlain p:first-child {
    margin-top: 0;
}

.dilItemLinksPlain p:last-child {
    margin-bottom: 0;
}


/* --- Layout phase 28: modern cycle item info card --- */
.cyklusItemModern {
    position: relative;
}

.cyklusItemInfoCard {
    margin: .5rem 0 1rem 0;
    max-width: 58rem;
}

.cyklusItemInfoRow .slovnikExtKey {
    min-width: 0;
}

.cyklusItemVolumeCount,
.cyklusItemMuted {
    color: rgba(240,255,245,.58);
}

.cyklusItemIntro {
    max-width: 58rem;
    margin: .7rem 0 1.1rem 0;
    padding: .75rem .95rem;
    border: 1px solid rgba(150,170,190,.18);
    border-left: 3px solid rgba(150,170,190,.34);
    border-radius: 0 9px 9px 0;
    background: rgba(255,255,255,.025);
    line-height: 1.55;
}

.cyklusItemIntro p:first-child,
.cyklusItemText p:first-child {
    margin-top: 0;
}

.cyklusItemIntro p:last-child,
.cyklusItemText p:last-child {
    margin-bottom: 0;
}

.cyklusItemText {
    min-width: 0;
}

@media (max-width: 980px) {
    .dilSidePanel,
    #dil2covers.dilSidePanel,
    #dily2ilus.dilSidePanel {
        float: none;
        clear: both;
        width: auto;
        max-width: 34rem;
        margin: .7rem auto 1rem auto;
        padding: 0 0 .7rem 0;
        border-left: 0;
        border-bottom: 1px solid rgba(150,170,190,.24);
    }

    .dilItemInfoCard,
    .dilItemStoryCard,
    .dilItemCharacters,
    .dilItemLinks,
    .cyklusItemInfoCard,
    .cyklusItemIntro {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .dilCoverAltGrid,
    .dilIllusGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dilItemVolume {
        display: block;
        margin: .16rem 0 0 0;
    }
}


/* --- Layout phase 29: restored ShowWhatsNew helpers --- */
.whatsNewPage {
    text-align: left;
}

.whatsNewInfo,
.whatsNewEmpty {
    margin: 0 20px 10px 20px;
    padding: 6px 9px;
    border: 1px solid rgba(128, 128, 128, .28);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
    color: rgba(240, 255, 245, .78);
    font-size: 90%;
    text-align: center;
}

.whatsNewDate {
    margin-top: 8px;
    margin-bottom: 2px;
}

.whatsNewSummary {
    color: darkgreen !important;
    vertical-align: top;
    margin-left: 20px;
    font-size: 80%;
}

.whatsNewPage .news_line,
.whatsNewLine {
    margin-left: 20px;
    line-height: 1.45;
}

.whatsNewLine A {
    font-weight: normal;
}


/* --- Layout phase 30: simple internal image viewer --- */
.dmImageViewerOpen {
    overflow: hidden;
}

.dmImageViewerItem {
    cursor: zoom-in;
}

.dmImageViewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    grid-template-columns: minmax(3.2rem, 8vw) minmax(0, 1fr) minmax(3.2rem, 8vw);
    grid-template-rows: 1fr;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
    padding: 1.4rem;
    background: rgba(0, 0, 0, .88);
}

.dmImageViewer[hidden] {
    display: none !important;
}

.dmImageViewerFigure {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    min-width: 0;
    min-height: 0;
}

.dmImageViewerStage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.dmImageViewerImage {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 8.8rem);
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
    opacity: 0;
    transition: opacity .12s ease-in-out;
    background: rgba(255, 255, 255, .04);
}

.dmImageViewerImageLoaded {
    opacity: 1;
}

.dmImageViewerLoading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: .5rem .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(0, 0, 0, .72);
    color: rgba(245, 255, 245, .86);
    font-size: 90%;
    pointer-events: none;
}

.dmImageViewerCaption {
    flex: 0 0 auto;
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 68rem);
    min-height: 2.2rem;
    margin-top: .65rem;
    padding: .55rem .85rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(0, 0, 0, .42);
    color: rgba(245, 255, 245, .86);
    text-align: center;
}

.dmImageViewerCaptionText {
    min-width: 0;
    line-height: 1.35;
}

.dmImageViewerCounter {
    flex: 0 0 auto;
    color: rgba(245, 255, 245, .54);
    font-size: 90%;
    white-space: nowrap;
}

.dmImageViewerClose,
.dmImageViewerNav {
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(0, 0, 0, .45);
    color: rgba(245, 255, 245, .88);
    cursor: pointer;
    line-height: 1;
}

.dmImageViewerClose:hover,
.dmImageViewerNav:hover,
.dmImageViewerClose:focus,
.dmImageViewerNav:focus {
    background: rgba(255, 255, 255, .12);
    outline: none;
}

.dmImageViewerClose {
    position: fixed;
    right: 1.1rem;
    top: 1.1rem;
    z-index: 1;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    font-size: 1.65rem;
}

.dmImageViewerNav {
    width: 3rem;
    height: 4.2rem;
    border-radius: 10px;
    font-size: 3rem;
}

.dmImageViewerPrev {
    grid-column: 1;
}

.dmImageViewerNext {
    grid-column: 3;
}

@media (max-width: 760px) {
    .dmImageViewer {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: .6rem;
        padding: .75rem;
    }

    .dmImageViewerFigure {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .dmImageViewerImage {
        max-height: calc(100vh - 9.6rem);
    }

    .dmImageViewerNav {
        grid-row: 2;
        width: 100%;
        height: 2.6rem;
        font-size: 2.2rem;
    }

    .dmImageViewerPrev {
        grid-column: 1;
    }

    .dmImageViewerNext {
        grid-column: 2;
    }

    .dmImageViewerCaption {
        flex-direction: column;
        gap: .25rem;
        align-items: center;
        font-size: 92%;
    }
}

/* --- Layout phase 31: modern image item detail --- */
.imageItemModern {
    text-align: left;
}

.imageItemDetailGrid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
    gap: 1.1rem;
    align-items: start;
    margin-top: .65rem;
}

.imageItemImageColumn {
    min-width: 0;
    text-align: center;
}

.imageItemFigure {
    margin: 0;
}

.imageItemImageFrame {
    display: inline-flex;
    max-width: 100%;
    padding: .45rem;
    border: 1px solid rgba(150, 170, 190, .18);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.imageItemImageLink {
    display: block;
    max-width: 100%;
    cursor: zoom-in;
}

.imageItemImage {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 0;
    border-color: rgba(255,255,255,.18);
    border-radius: 6px;
    background: rgba(255,255,255,.035);
}

.imageItemCaption {
    max-width: 52rem;
    margin: .55rem auto 0;
    color: rgba(240,255,245,.76);
    font-size: 92%;
    line-height: 1.35;
    text-align: center;
}

.imageItemCaption span,
.imageItemDisplayNote {
    color: rgba(240,255,245,.62);
}

.imageItemInfoCard {
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.imageItemInfoRow .slovnikExtKey {
    min-width: 0;
}

.imageItemInfoRow .slovnikExtValue {
    overflow-wrap: anywhere;
}

.imageItemInfoSubhead {
    margin-top: .1rem;
}

.imageItemDescription {
    margin-top: 0 !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.imageItemDescription p {
    text-indent: 0 !important;
    margin-bottom: .55rem !important;
}

.imageItemDescription p:last-child {
    margin-bottom: 0 !important;
}

.imageItemMissing {
    padding: 1rem;
    border: 1px dashed rgba(255,120,120,.45);
    border-radius: 10px;
    background: rgba(120,0,0,.18);
    text-align: center;
}

.imageItemLinks {
    clear: both;
    margin-top: 1.25rem;
    padding: .75rem .9rem;
    border: 1px solid rgba(150, 170, 190, .18);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    text-align: left;
}

.imageItemLinks h3 {
    margin: 0 0 .35rem;
}

.imageItemLinks ul {
    margin: 0 0 0 1.4rem;
    padding: 0;
}

.imageItemLinks li {
    margin: .18rem 0;
}

@media (max-width: 1180px) {
    .imageItemDetailGrid {
        grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
    }
}

@media (max-width: 980px) {
    .imageItemDetailGrid {
        grid-template-columns: 1fr;
    }

    .imageItemInfoCard {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .imageItemDetailGrid {
        gap: .8rem;
    }

    .imageItemImageFrame {
        padding: .3rem;
    }
}

/* --- Layout phase 31: shared non-article page title helper --- */
.itemTitle.itemNav.pageTitleNavPlain {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head";
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.itemTitle.itemNav.pageTitleNavPlain .itemNavSide {
    display: none;
}

.itemTitle.itemNav.pageTitleNavPlain .itemhead {
    justify-self: center;
    width: 100%;
}

@media only screen and (max-width: 700px) {
    .itemTitle.itemNav.pageTitleNavPlain {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head";
    }
}

/* --- Layout phase 32: modern poradna page --- */
.poradnaPage {
    max-width: 1060px;
}

.poradnaHero,
.poradnaFormCard,
.poradnaPost {
    border: 1px solid rgba(150, 170, 190, .18);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(20, 28, 39, .92), rgba(8, 12, 18, .92));
    box-shadow: 0 12px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.035);
}

.poradnaHero {
    max-width: 860px;
    margin: .35rem auto 1rem auto;
    padding: .9rem 1.1rem;
    text-align: center;
    color: rgba(235, 241, 248, .88);
}

.poradnaHero p {
    margin: .25rem 0;
    line-height: 1.5em;
}

.porform.poradnaFormCard {
    width: auto;
    max-width: 760px;
    box-sizing: border-box;
    margin: 0 auto 1.35rem auto;
    padding: 1rem 1.15rem 1.1rem 1.15rem;
    border-color: rgba(150, 190, 230, .24);
}

.poradnaFormCard h2 {
    margin: 0 0 .35rem 0;
    text-align: center;
    font-size: 1.35rem;
    color: #fff;
}

.poradnaFormIntro {
    max-width: 34rem;
    margin: 0 auto .9rem auto;
    text-align: center;
    color: rgba(235, 241, 248, .72);
    line-height: 1.42em;
}

.poradnaField {
    margin: .72rem 0;
}

.poradnaField label {
    display: block;
    margin: 0 0 .28rem 0;
    font-weight: bold;
    color: rgba(240, 246, 255, .92);
}

.porlabel {
    color: #ff778a;
    font-weight: normal;
}

.porform .poradnaInput,
.porform .poradnaTextarea,
.poradna_txt {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid rgba(150, 190, 230, .32);
    border-radius: 8px;
    background: rgba(0, 8, 16, .62);
    color: #fff;
    padding: .5rem .6rem;
    outline: none;
}

.porform .poradnaInput:focus,
.porform .poradnaTextarea:focus,
.poradna_txt:focus {
    border-color: rgba(170, 215, 255, .72);
    box-shadow: 0 0 0 3px rgba(64, 142, 214, .18);
}

.poradnaTextarea {
    min-height: 150px;
    resize: vertical;
}

.poradnaSubmitLine {
    margin-top: .9rem;
    text-align: center;
}

.porform .poradnaSubmit,
.poradnaAnswerButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    box-sizing: border-box;
    border: 1px solid rgba(170, 210, 255, .46);
    border-radius: 999px;
    background: rgba(31, 76, 122, .42);
    color: #fff;
    padding: .45rem 1.1rem;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.porform .poradnaSubmit {
    width: 100%;
    max-width: 22rem;
}

.porform .poradnaSubmit:hover,
.poradnaAnswerButton:hover {
    border-color: rgba(205, 230, 255, .7);
    background: rgba(62, 117, 175, .58);
    color: #fff;
}

#poradna.poradnaList {
    width: auto;
    max-width: 860px;
    margin: 0 auto;
}

.poradnaPost {
    overflow: hidden;
    margin: 0 0 1rem 0;
}

.portitle.poradnaPostHeader {
    margin: 0;
    padding: .85rem 1rem .75rem 1rem;
    border: 0;
    border-bottom: 1px solid rgba(150, 170, 190, .14);
    background: rgba(255,255,255,.035);
}

.poradnaPostKicker {
    margin: 0 0 .25rem 0;
    color: rgba(170, 210, 255, .8);
    font-size: .78rem;
    font-weight: bold;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.porotaz.poradnaPostTitle {
    margin: 0;
    padding: 0;
    font-size: 1.28rem;
    line-height: 1.24em;
    color: #fff;
}

.portazatel.poradnaPostMeta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    margin-top: .45rem;
    padding: 0;
    color: rgba(235, 241, 248, .7);
    font-size: .9rem;
}

.portazname {
    color: #ffe982;
}

.poradnaPostDate,
.poradnaPostIp {
    color: rgba(235, 241, 248, .58);
}

.pordotaz.poradnaPostBlock,
.porodpov.poradnaPostBlock {
    width: auto;
    margin: 0;
    padding: .85rem 1rem;
    border: 0;
}

.pordotaz.poradnaPostBlock {
    border-bottom: 1px solid rgba(150, 170, 190, .12);
}

.porodpov.poradnaPostBlock {
    background: rgba(0, 10, 18, .22);
}

.poradnaBlockTitle {
    margin-bottom: .32rem;
    color: rgba(170, 210, 255, .82);
    font-size: .82rem;
    font-weight: bold;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.poradnaBlockText {
    line-height: 1.55em;
    color: rgba(240, 246, 255, .88);
}

.poradnaBlockText p:first-child {
    margin-top: 0;
}

.poradnaBlockText p:last-child {
    margin-bottom: 0;
}

.poradnaMuted {
    color: rgba(235, 241, 248, .52);
    font-style: italic;
}

.poradnaPostFooter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: .65rem 1rem .85rem 1rem;
}

.poruser.poradnaPostStatus,
.poruser.poradnaAnswerButton {
    width: auto;
    min-width: 0;
    margin: 0;
    text-align: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(150, 170, 190, .20);
    border-radius: 999px;
    padding: .35rem .8rem;
    color: rgba(235, 241, 248, .76);
    font-size: .9rem;
    font-style: normal;
}

.poruser.poradnaAnswerButton {
    color: #fff;
    background: rgba(31, 76, 122, .42);
    border-color: rgba(170, 210, 255, .46);
}

.poradnaWaiting {
    color: rgba(235, 241, 248, .55) !important;
}

.poradnaPost .poradna_txt {
    min-height: 120px;
    margin-top: .2rem;
}

@media only screen and (max-width: 720px) {
    .poradnaPage {
        max-width: none;
    }

    .poradnaHero,
    .porform.poradnaFormCard,
    #poradna.poradnaList {
        max-width: none;
    }

    .poradnaHero,
    .porform.poradnaFormCard,
    .poradnaPost {
        border-radius: 9px;
    }

    .portazatel.poradnaPostMeta {
        display: block;
    }

    .portazatel.poradnaPostMeta > span {
        display: block;
        margin-top: .15rem;
    }

    .poradnaPostFooter {
        justify-content: stretch;
    }

    .poruser.poradnaPostStatus,
    .poruser.poradnaAnswerButton {
        width: 100%;
    }
}

/* --- Dead end / dosud neexistující článek --- */
.deadEndRequestStatus {
    min-height: 1.2em;
    max-width: 820px;
    margin: -18px auto 18px auto;
    padding: 0 18px;
    box-sizing: border-box;
    color: #9fd6a8;
    text-align: right;
    font-size: 85%;
}

.deadEndExplore {
    max-width: 820px;
    margin: 18px auto 30px auto;
    padding: 16px 18px 18px;
    border: 1px solid rgba(136, 152, 170, .32);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    box-sizing: border-box;
}

.deadEndExplore h2 {
    margin: 0 0 5px 0;
    font-size: 120%;
}

.deadEndExplore p {
    margin: 0 0 10px 0;
    opacity: .72;
}

.deadEndExplore ul {
    margin: 0;
    padding-left: 1.4em;
    columns: 2 250px;
    column-gap: 2em;
}

.deadEndExplore li {
    break-inside: avoid;
    margin: 2px 0;
}
