body { padding-top: 70px; }

#myCarousel
{
  margin-top: -16px;
 position: relative;
}

a.anchor {
    display: block;
    position: relative;
    top: -250px;
    visibility: hidden;
}
.nav-link{
  color: white !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
}

.nav-link-re{
  color: rgba(191, 144, 0, 1) !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
  margin-left: 30px !important;
}

.nav-link-time{
  color: #9a0000 !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
  margin-left: 30px !important;
}

.nav-link-compendium{
  color: #3c5a4e !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
  margin-left: 30px !important;
}


.nav-link-decretorum{
  color: #4e391f


 !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
  margin-left: 30px !important;
}

.nav-link-places{
  color: #295679 !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
  margin-left: 30px !important;
}

.nav-link-positiones{
  color: #556379 !important;
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
  margin-left: 30px !important;
}

.nav-link a{
  font-family: Roboto, sans-serif !important;
  font-size: 18px !important;
}


@media only screen and (min-width:1024px){

    .menu_text { display: block; }
    .menu_icon { display: none; }

  }
  
    @media only screen and (max-width:480px){

    .menu_text { display: none; }
    .menu_icon { display: block; }

  }

iframe {
  height:calc(100vh - 4px);
  width:calc(100vw - 4px);
  box-sizing: border-box;
}

.main-container {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}
img {
  max-width:100%;
}
.tabbed-pane {
  padding-top: 12px;
}
.html-widget {
  margin-bottom: 20px;
}
button.code-folding-btn:focus {
  outline: none;
}
summary {
  display: list-item;
}
pre code {
  padding: 0;
}

img
{
	max-width: 100%;
}


.image-left, .image-right
{
	margin: 1em 0;
}

@media (min-width: 20em)
{
	.image-left, .image-right
	{
		display: flex;
		align-items: center;
	}

	.image-left img
	{
		margin-right: 1em;
		float: left; /* fallback */
	}

	.image-right img
	{
		order: 1;
		margin-left: 1em;
		float: right; /* fallback */
	}
	
	/* clearfix for fallback */
	.image-left::after,
	.image-right::after
	{
		content: "";
  	display: block;
		clear: both;
	}
}

@media (min-width: 30em)
{
	.image-left img, .image-right img
	{
		flex-shrink: 0;
	}
}

.projcard-container {
	margin: 50px 0;
}

/* Actual Code: */
.projcard-container,
.projcard-container * {
	box-sizing: border-box;
}
.projcard-container {
	margin-left: auto;
	margin-right: auto;
	width: 1000px;
		height:auto;

}
.projcard {
	position: relative;
	width: 100%;
	margin-bottom: 40px;
	background-color: #fff;
	font-size: 18px;
	overflow: scroll;
	cursor: pointer;
	display: flex;
  flex-direction: column;
  min-height: 60vh;
}

.projcard::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: linear-gradient(-70deg, #424242, transparent 50%);
	opacity: 0.07;
		height:auto;

}
.projcard:nth-child(2n)::before {
	background-image: linear-gradient(-250deg, #424242, transparent 50%);
}
.projcard-innerbox {
	position: absolute;
	float: left;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
		height:auto;

}
.projcard-img {
	position: absolute;
	float: left;
	height: 300px;
	width: 400px;
	top: 0;
	left: 0;
	transition: transform 0.2s ease;
}

.projcard-innerbox-gif {
	position: absolute;
	top: 20px;
	right: 20px;
	bottom: 0;
	left: 20px;
		height:auto;

}



.projcard-gif {
	position: absolute;
	height: 280px;
	width: 450px;
	top: 20;
	left: 0;
	transition: transform 0.2s ease;
}

.projcard-gif:hover {
  opacity:0;
}

.projcard-textbox-gif {
	position: absolute;
	top: 20%;
	bottom: 7%;
	left: 470px;
	width: calc(100% - 500px);
	font-size: 17px;
		height:auto;
}


.projcard:nth-child(2n) .projcard-img {
	left: initial;
	right: 0;
}
.projcard:hover .projcard-img {
	transform: scale(1.05);
}
.projcard:hover .projcard-bar {
	width: 70px;
}
.projcard-textbox {
	position: absolute;
	top: 7%;
	bottom: 7%;
	left: 470px;
	width: calc(100% - 470px);
	font-size: 17px;
	 float: left;
		height:auto;

}


.projcard:nth-child(2n) .projcard-textbox {
	left: initial;
	right: 430px;
}
.projcard-textbox::before,
.projcard-textbox::after {
	content: "";
	position: absolute;
	display: block;
	background: #ff0000bb;
	background: #fff;
	top: -20%;
	left: -55px;
	height: 140%;
	width: 60px;
	transform: rotate(1deg);
		height:auto;

}
.projcard:nth-child(2n) .projcard-textbox::before {
	display: none;
}
.projcard-textbox::after {
	display: none;
	left: initial;
	right: -55px;
}
.projcard:nth-child(2n) .projcard-textbox::after {
	display: block;
}
.projcard-textbox * {
	position: relative;
}
.projcard-title {
	font-family: 'Voces', 'Open Sans', arial, sans-serif;
	font-size: 24px;
}
.projcard-subtitle {
	font-family: 'Voces', 'Open Sans', arial, sans-serif;
	color: #888;
}
.projcard-bar {
	left: -2px;
	width: 50px;
	height: 5px;
	margin: 10px 0;
	border-radius: 5px;
	background-color: #424242;
	transition: width 0.2s ease;
}
.projcard-blue .projcard-bar { background-color: #0088FF; }
.projcard-blue::before { background-image: linear-gradient(-70deg, #0088FF, transparent 50%); }
.projcard-blue:nth-child(2n)::before { background-image: linear-gradient(-250deg, #0088FF, transparent 50%); }
.projcard-red .projcard-bar { background-color: #D62F1F; }
.projcard-red::before { background-image: linear-gradient(-70deg, #D62F1F, transparent 50%); }
.projcard-red:nth-child(2n)::before { background-image: linear-gradient(-250deg, #D62F1F, transparent 50%); }
.projcard-green .projcard-bar { background-color: #40BD00; }
.projcard-green::before { background-image: linear-gradient(-70deg, #40BD00, transparent 50%); }
.projcard-green:nth-child(2n)::before { background-image: linear-gradient(-250deg, #40BD00, transparent 50%); }
.projcard-yellow .projcard-bar { background-color: #F5AF41; }
.projcard-yellow::before { background-image: linear-gradient(-70deg, #F5AF41, transparent 50%); }
.projcard-yellow:nth-child(2n)::before { background-image: linear-gradient(-250deg, #F5AF41, transparent 50%); }
.projcard-orange .projcard-bar { background-color: #FF5722; }
.projcard-orange::before { background-image: linear-gradient(-70deg, #FF5722, transparent 50%); }
.projcard-orange:nth-child(2n)::before { background-image: linear-gradient(-250deg, #FF5722, transparent 50%); }
.projcard-brown .projcard-bar { background-color: #C49863; }
.projcard-brown::before { background-image: linear-gradient(-70deg, #C49863, transparent 50%); }
.projcard-brown:nth-child(2n)::before { background-image: linear-gradient(-250deg, #C49863, transparent 50%); }
.projcard-grey .projcard-bar { background-color: #424242; }
.projcard-grey::before { background-image: linear-gradient(-70deg, #424242, transparent 50%); }
.projcard-grey:nth-child(2n)::before { background-image: linear-gradient(-250deg, #424242, transparent 50%); }
.projcard-customcolor .projcard-bar { background-color: var(--projcard-color); }
.projcard-customcolor::before { background-image: linear-gradient(-70deg, var(--projcard-color), transparent 50%); }
.projcard-customcolor:nth-child(2n)::before { background-image: linear-gradient(-250deg, var(--projcard-color), transparent 50%); }


.projcard-description {
	z-index: 10;
	font-size: 15px;
	color: #424242;
	height: auto;
	overflow: hidden;
	 float: left;
	text-overflow: ellipsis;
}
.projcard-tagbox {
	position: absolute;
	bottom: 3%;
	font-size: 14px;
	cursor: default;
	user-select: none;
	pointer-events: none;
}
.projcard-tag {
	display: inline-block;
	background: #E0E0E0;
	color: #777;
	border-radius: 3px 0 0 3px;
	line-height: 26px;
	padding: 0 10px 0 23px;
	position: relative;
	margin-right: 20px;
	cursor: default;
	user-select: none;
	transition: color 0.2s;
}
.projcard-tag::before {
	content: '';
	position: absolute;
	background: #fff;
	border-radius: 10px;
	box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
	height: 6px;
	left: 10px;
	width: 6px;
	top: 10px;
}
.projcard-tag::after {
	content: '';
	position: absolute;
	border-bottom: 13px solid transparent;
	border-left: 10px solid #E0E0E0;
	border-top: 13px solid transparent;
	right: -10px;
	top: 0;
}
h2, details{
  display:inline;
}

details {
  position:relative;
  height: auto !important;
}
details summary {
  display:block;
  cursor: pointer;
  color: red;
}
details summary:focus {
  outline:none;
}
details[open] {
  display:block;
  padding-bottom:25px;
  padding-top:10px;
  animation: open .2s linear;
}
details[open] summary {
  position:absolute;
  bottom: 0;
  left:0;
}

details #open{padding-left:5px;text-align:middle;}
details #open:after{
    display: inline-block;
    position:relative;
    top: -3px;
    padding-left: 8px;
    content: "\00bb";
    transform: rotate(10deg);
}
details[open] #open{display:none;}
details #close{display:none;}
details[open] #close{display:block;}

::-webkit-details-marker {display: none;}




@keyframes open {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


.dropdown-submenu {
  position: relative;
}
.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}
.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #cccccc;
  margin-top: 5px;
  margin-right: -10px;
}
.dropdown-submenu:hover>a:after {
  border-left-color: #adb5bd;
}
.dropdown-submenu.pull-left {
  float: none;
}
.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  border-radius: 6px 0 6px 6px;
}

ul.menu {
  padding: 10px 16px;
  list-style: none;
    font-size: 18px;
    
}

ul.menu li a:hover {
  color: brown;
  text-decoration: underline;
}


body {
  font-family: Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: dimgray;
}

section {
  display: flex;
  flex-flow: row wrap;
}

P {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-family:Helvetica;
}

H1 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 100;
  text-transform: uppercase;
  font-size: 28px;
}

figure {
  margin: 0px;
}

figure img {
  width: 100%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

figure img:hover {
  opacity: 0.6;
  transition: all .3s linear;
}
.column {
  box-sizing: border-box;
  flex: 1 100%;
  justify-content: space-evenly;
  margin: 20px;
}
.card-style {
  border-radius: 12px;
  border-image-slice: 1;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
  transition: all 0.25s linear;
}
.card-style:hover {
  box-shadow: -1px 10px 29px 0px rgba(0, 0, 0, 0.8);
}

.card-text {
  padding: 20px;
}

@media (min-width: 500px) {
  .column {
      flex: 0 0 calc(100%/2 - 40px);
  }
}

@media (min-width: 900px) {
    .column {
      flex: 0 0 calc(100%/4 - 40px);
  }
}

.menu li a{
    background-color: white;
    color: #b77000;
}

.menu li a:hover{
    background-color: white;
    color: #EAB126;
}



.mark {
  color: red; 
  background-color:transparent;
}




a:hover, a:active, a:focus {
  color: red!important;
}


.footer-dark {
  text-align:center;
  position: static;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(44,106,102,1);
margin-bottom:-10%;
padding-top:30px;
padding-bottom:20px;
  color:#f0f9ff;

}

.footer-dark h3 {
  margin-top:0;
  margin-bottom:12px;
  font-weight:bold;
  font-size:16px;
}

.footer-dark ul {
  padding:0;
  text-align:center;
  list-style:none;
  line-height:1.6;
  font-size:14px;
  margin-left:0;
}

.footer-dark ul a {
  color:inherit;
  text-decoration:none;
  opacity:0.6;
  text-align:center;
}

.footer-dark ul a:hover {
  opacity:0.8;
}

@media (max-width:767px) {
  .footer-dark .item:not(.social) {
    text-align:center;
    padding-bottom:20px;
  }
}

.footer-dark .item.text {
  margin-bottom:36px;
}

@media (max-width:767px) {
  .footer-dark .item.text {
    margin-bottom:0;
  }
}

.footer-dark .item.text p {
  opacity:0.6;
  margin-bottom:0;
}

.footer-dark .item.social {
  text-align:center;
}

@media (max-width:991px) {
  .footer-dark .item.social {
    text-align:center;
    margin-top:20px;
  }
}

.footer-dark .item.social > a {
  font-size:20px;
  width:36px;
  height:36px;
  line-height:36px;
  display:inline-block;
  text-align:center;
  border-radius:50%;
  box-shadow:0 0 0 1px rgba(255,255,255,0.4);
  margin:0 8px;
  color:#fff;
  opacity:0.75;
}

.footer-dark .item.social > a:hover {
  opacity:0.9;
}

.footer-dark .copyright {
  text-align:center;
  padding-top:24px;
  opacity:0.3;
  font-size:13px;
  margin-bottom:0;
}


.second_header{
  min-width: 100%;
  position: fixed;
  background: white;
  height: 40px;
border: solid 0.1em white;
border-bottom-color: #75352b;
}

.second_header_text{
    text-align: left;
  position: fixed;
  margin-left:50px;
    font-family: 'Roboto', sans-serif !important;

}

.second_header_text_right{
      text-align: right;
  margin-right:50px;
    font-family: 'Roboto', sans-serif !important;

}


#divTohide {
  opacity: 1;
  transition: opacity 0.5s linear;
}

#divTohide.hide {
  opacity: 0;
}


.button {
  width: auto;
    height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  color: #bf4932;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 30px;
  margin-bottom: 30px;
  cursor: pointer;
  display: inline-block;
}

.button-1 {
  background-color: transparent;
  border: 0px solid #821803;
  color: #bf4932;
}

.trigger{
  position: absolute;
  left: 100;
  top:100;
 z-index: 1001;

}

.hidebtn
{
   width: auto;
    height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  color: #826304;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 30px;
  margin-bottom: 30px;
  cursor: pointer;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.4);
  border: 0px solid #821803;
}


#sub_light {
  color: black;
  position: relative;
  text-decoration: none;
}

#sub_light::before {
  content: '';
  position: absolute;
  width: 100%;
  margin-bottom: 15px;
  height: 4px;
  border-radius: 2px;
 background: linear-gradient(90deg, rgba(191, 144, 0,1) 0%, rgba(130, 99, 4,1) 65%, rgba(191, 144, 0,1) 100%);
  background-color: #75352b;
  bottom: -10px;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .5s ease-in-out;
}

#sub_light:hover::before {
  transform-origin: left;
  transform: scaleX(1);
  color: red;
}

#sub_header:hover
{color: #bf9000 !important;
 text-decoration: none;
  font-family: 'Roboto', sans-serif !important;
}
#sub_header
{color: #826304 !important;
 text-decoration: none;
  font-family: 'Roboto', sans-serif !important;
}


a {
  font-family: 'Roboto', sans-serif !important;
  color: #white !important;
}
a:hover {
  font-family: 'Roboto', sans-serif !important;
  color: #bfbfbf !important;
}


.container {
  max-width: 960px;
}


/* */


.panel-default>.panel-heading {
  color: #333;
  background-color: #fff;
  border-color: #e4e5e7;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.panel-default>.panel-heading a {
  display: block;
  padding: 10px 15px;
}

.panel-default>.panel-heading a:after {
  content: "";
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  float: right;
  transition: transform .25s linear;
  -webkit-transition: -webkit-transform .25s linear;
}

.panel-default>.panel-heading a[aria-expanded="true"] {
  background-color: #eee;
}

.panel-default>.panel-heading a[aria-expanded="true"]:after {
  content: "\2212";
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.panel-default>.panel-heading a[aria-expanded="false"]:after {
  content: "\002b";
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}



    /* Image Card */
    .img-card {
        width:550px;
        position: relative;
        border-radius: 5px;
        text-align: left;

        box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.3);        
    }

        .img-card .card-image {
            position: relative;
            margin: auto;
            overflow: hidden;
            border-radius: 5px 5px 0px 0px;
            height: 200px;
        }

        .img-card .card-image img {
            width:100%;
            border-radius: 5px 5px 0px 0px;
            
            -webkit-transition: all 0.8s;
            -moz-transition: all 0.8s;
            -o-transition: all 0.8s;
            transition: all 0.8s;
        }

        .img-card .card-image:hover img {
            -webkit-transform: scale(1.1);
            -moz-transform: scale(1.1);
            -o-transform: scale(1.1);
            transform: scale(1.1);
        }        

        .img-card .card-text {
            padding: 0 13px 15px;
            line-height: 1.5;   
        }

        .img-card .card-link {
            padding: 20px 15px 30px;
            width: -webkit-fill-available;
        }

            .img-card .card-link a {
                text-decoration: none;
                position: relative;
                padding: 10px 0;
                color: black;
            }

            .img-card .card-link a:after {
                top: 30px;
                content: "";
                display: block;
                height: 2px;
                left: 50%;
                position: absolute;
                width: 0;
                color: black !important;


                -webkit-transition: width 0.3s ease 0s, left 0.3s ease 0s;
                -moz-transition: width 0.3s ease 0s, left 0.3s ease 0s;
                -o-transition: width 0.3s ease 0s, left 0.3s ease 0s;
                transition: width 0.3s ease 0s, left 0.3s ease 0s;
            }

            .img-card .card-link a:hover:after { 
                width: 100%; 
                left: 0; 
                color: black !important;

            }        
        
        .img-card.iCard-style1 .card-title {
            position: absolute;
            font-family: 'Open Sans', sans-serif;
            z-index: 1;
            top: 10px;
            left: 10px;
            font-size: 30px;
            color: #fff;
        }
        
        .img-card.iCard-style1 .card-text {            
            color: black;
        }

        .img-card.iCard-style1 .card-link a {
            color: black !important;  
            font-size: 14px !important;
        }

        .img-card.iCard-style1 .card-link a:after {            
            background: #FF9800;
        }
        
        
        .back_container
{
      background-color: #f7f7f7;
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
}


#front-pic {
    max-width: 100%;
    height: auto;
    width: auto\9; /* ie8 */
}



.cards {
    position: relative;
   background-color: #eeeeee;
   justify-content: space-between;
     top: 150%;
     margin-top: -50px !important;
     padding: 20px;
     text-align: center !important;
}
.cards h1{
  text-align: center !important;
}



a{
  font-family: 'Roboto' !important;
}





.toc {
  position: fixed;
  left: 0.5em;
  top: 6em;
  padding: 5em;
  max-width: 600px;
  line-height: 2;
  font-family: sans-serif;
  font-size: 20px !important;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li a {
  color: #aaa;
  text-decoration: none;
  font-size: 18px !important;
  max-width: auto;
}


.contents {
  padding: 1em;
  max-width: 1200px;
  font-size: 1.2em;
  font-family: sans-serif;
  margin-left: 10em;
}


#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top i {
    color: #fff;
    margin: 0;
    position: relative;
    left: 16px;
    top: 13px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top:hover {
    background: rgba(0, 0, 0, 0.9);
}
#return-to-top:hover i {
    color: #fff;
    top: 5px;
}


/* Navbar links: the global "a:hover, a:active, a:focus { color: red !important }"
   rule above also catches the dropdown toggles, and because a clicked toggle keeps
   the focus, PROJECTS / RESOURCES stay red for as long as the menu is open.
   Higher specificity, so it wins without touching the global rule. */
.navbar .nav-link:hover,
.navbar .nav-link:active,
.navbar .nav-link:focus {
  color: #d9d9d9 !important;
}


/* ---------------------------------------------------------------------------
   Early-access notice — fixed in the top right corner of every page.
   Markup: <div class="ea-notice"> ... </div>, inserted just before the navbar.
   --------------------------------------------------------------------------- */
.ea-notice {
  position: fixed;
  top: 78px;
  right: 14px;
  z-index: 1040;
  max-width: 250px;
  padding: 10px 14px;
  background: rgba(30, 30, 30, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  pointer-events: none;
}

.ea-notice strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

@media (max-width: 767px) {
  .ea-notice {
    top: 72px;
    right: 6px;
    max-width: 180px;
    padding: 7px 10px;
    font-size: 11px;
  }
}


/* The fixed TOC sizes itself to its longest entry. On pages with long headings
   (The SCC, Our research) that pushed it over the text; the cap makes those
   wrap instead. Pages with short entries are unaffected. */
#list-example {
  max-width: 230px;
}


/* ---------------------------------------------------------------------------
   Changelog cards on the index page — horizontal: date stamp on the left,
   release notes on the right.
   --------------------------------------------------------------------------- */
.changelog {
  max-width: 980px;
  margin: 0 auto;
}

.cl-card {
  display: flex;
  align-items: stretch;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #dfd7ca;
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
}

.cl-stamp {
  flex: 0 0 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  background: rgba(44, 106, 102, 1);
  color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 24px;
  font-weight: 200;
  letter-spacing: 0.03em;
}

.cl-body {
  padding: 18px 24px;
}

.cl-title {
  margin: 0 0 8px;
  font-size: 22px !important;
  font-weight: 200;
  color: #3e3f3a;
}

.cl-meta {
  margin: 0 0 15px;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  letter-spacing: 0.09em;
  color: rgba(44, 106, 102, 1);
}

.cl-meta span {
  margin-left: 10px;
  font-size: 14px;
  letter-spacing: 0;
  color: #8a8578;
}

.cl-body p,
.cl-body li {
  font-size: 15px;
  line-height: 1.5;
  color: #3e3f3a;
}

.cl-body p { margin: 0 0 8px; }
.cl-body ul { margin: 0 0 10px 18px; }
.cl-body > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .cl-card { flex-direction: column; }
  .cl-stamp { flex: 0 0 auto; padding: 12px; font-size: 20px; }
  .cl-body { padding: 14px 16px; }
}


/* ===========================================================================
   COMPACT LAYOUT — phones and tablets (below 992px)
   Modelled on the institute website: a slim sticky bar with the logo and a
   menu button, the menu unfolding as a full-width list, the project
   sub-navigation as a swipeable strip under the bar, and the early-access
   notice as a line above the bar instead of a box over the menu.
   Desktop (992px and up) is not affected by anything in this block.
   =========================================================================== */
@media (max-width: 991.98px) {

  /* The bar scrolls with the page and sticks at the top; no padding or
     spacer lines are needed any more to keep content out from under it. */
  body { padding-top: 0 !important; margin: 0 !important; }
  body nav.navbar.navbar-fixed-top + br,
  body nav.navbar.navbar-fixed-top + br + br,
  body nav.navbar.navbar-fixed-top + br + br + br { display: none; }

  body nav.navbar.navbar-fixed-top {
    position: sticky !important;
    top: 0;
    z-index: 1030;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin: 0 !important;
    padding: 6px 8px 6px 14px !important;
    border: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  }

  /* SCC logo on the left; the institute logo stays in the footer */
  body nav.navbar.navbar-fixed-top > .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    line-height: 1;
  }
  body nav.navbar.navbar-fixed-top > .navbar-brand img {
    height: 40px !important;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
  }
  body nav.navbar.navbar-fixed-top > .navbar-brand.order-md-last { display: none !important; }

  /* Menu button: always shown, 44px touch target, white lines */
  body nav.navbar.navbar-fixed-top > .navbar-toggler {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 4px;
    background: transparent;
  }
  body nav.navbar.navbar-fixed-top > .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); outline: none; }
  body nav.navbar.navbar-fixed-top > .navbar-toggler .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  /* The menu: closed until the button is pressed (Bootstrap 3 marks the open
     state with .in), then a full-width list under the bar. */
  body #navbarNavDropdown:not(.in):not(.collapsing) { display: none !important; }
  body #navbarNavDropdown.in,
  body #navbarNavDropdown.collapsing {
    display: block !important;
    order: 3;
    flex: 0 0 calc(100% + 22px);
    margin: 6px -8px -6px -14px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 0 !important;      /* Bootstrap 3 insets the collapse by 15px */
    border-top: 1px solid rgba(255, 255, 255, .2);
  }
  body #navbarNavDropdown .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0;
  }
  body #navbarNavDropdown .navbar-nav > li {
    float: none !important;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
  }
  body #navbarNavDropdown .nav-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 18px !important;
    font-size: 17px !important;
    letter-spacing: .02em;
    text-decoration: none !important;
  }
  body #navbarNavDropdown .nav-link .sr-only { display: none; }

  /* PROJECTS / RESOURCES unfold in place, indented */
  body #navbarNavDropdown .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 0 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, .18) !important;
    transform: none !important;
  }
  body #navbarNavDropdown .dropdown-item {
    display: block;
    padding: 12px 18px 12px 34px !important;
    color: #fff !important;
    font-size: 16px;
    white-space: normal;
    background: transparent !important;
  }
  body #navbarNavDropdown .dropdown-item:hover,
  body #navbarNavDropdown .dropdown-item:focus { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }
  body #navbarNavDropdown .open > .dropdown-toggle::after { transform: rotate(180deg); }

  /* Project sub-navigation: always visible, one swipeable row under the bar */
  body nav.navbar.navbar-fixed-top nav.navbar.fixed-top {
    position: static !important;
    order: 4;
    flex: 0 0 calc(100% + 22px);
    display: block !important;
    min-width: 0;          /* lets the row scroll instead of widening the page */
    max-width: calc(100% + 22px);
    min-height: 0;
    margin: 6px -8px -6px -14px !important;
    padding: 0 !important;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: #f8f9fa !important;
  }
  body nav.navbar.navbar-fixed-top nav.navbar.fixed-top > .navbar-toggler { display: none !important; }
  body #navbarNavDropdown_2 {
    display: block !important;
    width: 100%;
    min-width: 0;
    height: auto !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* fade at the right edge hints that the row scrolls */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  body #navbarNavDropdown_2::-webkit-scrollbar { display: none; }
  body #navbarNavDropdown_2 .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    float: none !important;
    margin: 0 !important;
    padding: 0 20px 0 6px;
    white-space: nowrap;
  }
  body #navbarNavDropdown_2 .navbar-nav > li { float: none !important; flex: 0 0 auto; }
  body #navbarNavDropdown_2 [class^="nav-link-"] {
    display: block;
    margin: 0 !important;
    padding: 12px 10px !important;
    font-size: 15px !important;
    line-height: 20px;
    text-decoration: none;
  }

  /* Early-access notice: a line above the bar that scrolls away */
  body .ea-notice {
    position: static;
    max-width: none;
    margin: 0;
    padding: 7px 14px;
    border: 0;
    border-radius: 0;
    background: #2b2b2b;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
  }
  body .ea-notice strong { display: inline; margin: 0 4px 0 0; }

  /* In-page anchors: land below the sticky bar, not 250px above the heading */
  a.anchor { top: -120px; }
  /* on a few pages the bar sits inside a <header>; let it escape that box
     so it can stick to the top for the whole page */
  body header:has(> nav.navbar-fixed-top) { display: contents; }
  /* footer: the logo column carries an inline right: 2em / 4em nudge meant
     for the desktop row; stacked in one column it pushes the logo off-centre */
  body .footer-dark .item { right: auto !important; left: auto !important; text-align: center; }
  body .footer-dark .item > a.image img { padding-left: 0 !important; padding-right: 0 !important; }

  /* Table of contents (guide, documentation and long text pages):
     in the flow instead of fixed over the text. */
  body .row > .col-sm-4 > .position-fixed {
    position: static !important;
    margin: 0 0 24px !important;
    width: auto;
  }
  body .row > .col-sm-4 > .position-fixed > br { display: none; }
  body #list-example { max-width: none; }
  body #list-example .list-group-item { padding: 11px 14px; font-size: 15px; line-height: 1.35; }

  /* Projects carousel on the home page: the caption goes under the picture
     instead of over it, so the text is never cut off. */
  #myCarousel .item > img { width: 100%; height: 220px; object-fit: cover; }
  #myCarousel .item > .container { width: auto; padding: 0; }
  #myCarousel .carousel-caption {
    position: static;
    left: auto;
    right: auto;
    padding: 18px 16px 44px;
    text-shadow: none;
  }
  #myCarousel .carousel-caption br { display: none; }
  #myCarousel .carousel-caption h1 { font-size: 24px !important; margin: 0 0 6px; }
  #myCarousel .carousel-caption h2 { font-size: 17px !important; line-height: 1.35; margin: 0 0 10px; }
  #myCarousel .carousel-caption p { font-size: 15px; line-height: 1.5; }
  #myCarousel .carousel-control { height: 220px; width: 44px; }
  #myCarousel .carousel-indicators { bottom: 8px; }

  /* Long words and URLs never push the page sideways */
  .text-block, .cards, .card-body, .cl-body { overflow-wrap: anywhere; }
}

/* Tablets: the contents list keeps its side column and follows the reader. */
@media (min-width: 576px) and (max-width: 991.98px) {
  body .row > .col-sm-4 > .position-fixed {
    position: sticky !important;
    top: 120px;
  }
}

/* Phones: the contents list sits above the text, labelled like the
   institute site's "On this page" box. */
@media (max-width: 575.98px) {
  body #list-example::before {
    content: "On this page";
    display: block;
    padding: 0 0 8px;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b705c;
  }
  body .ea-notice { font-size: 11.5px; }
  .cards { margin-top: -24px !important; padding: 16px 14px; }
}
