/***
* img responsiveness
*/

img {
 max-width:100%!important;
 height:auto!important;
}
a img {
 max-width:100%!important;
 height:auto!important;
}

*::-ms-backdrop, .collapse-body img {
  width: 100%;
}

/***
* table on small screen for BBV2 main page (it seems BB doctypes has alredy a rule)
*/

@media (max-width:768px) {
  .container table {
    display: block;
    width: 100% !important;
    padding:7px 0!important;
  }
  .container td, 
  .container th {
    display: block;
    width: 100% !important;
    padding:3px!important;
  }
}

/***
* restoring a blue/black link state in BBV2
*/

.bb-text .content-wrapper .content-content a {
    color: rgba(0, 98, 155, 1);
    text-decoration-color: rgba(255, 194, 14, .5);
    text-decoration-thickness: 0.07em;
}
.bb-text .content-wrapper .content-content a:hover {
    color: rgba(0, 0, 0, 1);
    text-decoration-color: rgba(0, 98, 155, .5);
    text-decoration-thickness: 0.03em;
}
.bb-text .content-wrapper .content-content[style*="color:#fff"] a {
    color: rgba(255, 194, 14, 1);
    text-decoration-color: rgba(255, 194, 14, .5);
    text-decoration-thickness: 0.07em;
}
.bb-text .content-wrapper .content-content[style*="color:#fff"] a:hover {
    color: rgba(0, 98, 155, 1);
    text-decoration-color: rgba(255, 255, 255, .8);
    text-decoration-thickness: 0.03em;
}

/***
* Story table based layout
*/

#webEditContent.document > p {
	display: none
}

#webEditContent .story-1Col {
 max-width: 768px;
 margin: 0 auto;
}
#webEditContent .story-1Col > tbody > tr > td > p img:first-child {
	margin: -23px 0 30px 0;
}
#webEditContent .story-1Col > tbody > tr > td {
 padding: 0!important;
}
#webEditContent .story-1Col .fig-table {
 margin: 15px 0 45px 0;
}
#webEditContent .story-1Col .fig-table caption {
 // border-top: solid 1px #4e81bd;
 padding: 7px 0;
}
#webEditContent .story-1Col .fig-table td {
    padding: 15px;
    background: white;
    font-size: .7em;
}

/* ----------------- */

#webEditContent .story-2Col {}
#webEditContent .story-2Col td {}
#webEditContent .story-2Col td:first-child {
 width: 40%;
 padding: 0 15px 0 0;
}
#webEditContent .story-2Col td:last-child {
 width: 60%;
    padding:0  15px 15px 15px;
    background: white;
    font-size: .7em;
}
#webEditContent .story-2Col td:last-child p:first-child {
 border-top: solid 1px #4e81bd;
 padding: 7px 0;
 margin: 0
}

/***
* Stories navigation
*/

#stories-navigation ul {
 margin: 0; padding: 0;
 list-style-type: none;
 display: flex;
 justify-content: space-between;
}


#stories-navigation a {
	position: relative;
	display: block; float: left;
	padding: 7px 30px; margin: 7px 0 0 0;
	
	background: rgba(0, 98, 155, 1);
	border-radius: 5px;
	color: white;
    text-decoration: none;
}
#stories-navigation li:first-child a:before {
	content: " "; display: block; position: absolute;
	top: 50%; left: 15px; width: 15px; height: 15px;
    transform: translateY(-50%) rotate(45deg);

    border: 2px solid white;
    border-color: transparent transparent white white;
}
#stories-navigation li:last-child a:before {
	content: " "; display: block; position: absolute;
	top: 0; left: calc( 100% - 2px ); width: 15px; height: 100%;

	background: rgba(0, 98, 155, 1);
	clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
}
#stories-navigation a:hover,
#stories-navigation li:last-child  a:hover::before {
	background-color: rgba(255, 194, 14, 1);
    color: rgba(11, 30, 45, 1);
}

@media (max-width:768px) {
  #stories-navigation ul {
   flex-wrap:wrap;
   justify-content: center;
  }
}





/***
* public vs private
  Display CSS/CODE container in T4 Editor and hide it in Preview/production
*/

.cssCall, .codeContent {
 display: none;
}

#tinymce .codeContent, #tinymce .cssCall {
 position: relative;
 margin-top: 1px;
 display: block;
 width: auto;
 padding: 2px;
 background: crimson;
 border-color: transparent;
 color: #333;
 
 opacity: .35;
}
#tinymce .cssCall:before {
 content: "css : ";
 color: wheat;
 font-weight: 600;
}
#tinymce .codeContent:before {
 content: "CODE";
 color: wheat;
 font-weight: 600;
}