/**  Georama **/
@font-face {
  font-family: "Georama";
  font-style: normal;
  font-weight: 400;
  src: url("https://helpscout-files.statics.raileurope.com/fonts/Georama/Georama-Regular.ttf") format('truetype');
  font-display: swap;
}

@font-face {
  font-family: "Georama";
  font-style: normal;
  font-weight: 500;
  src: url("https://helpscout-files.statics.raileurope.com/fonts/Georama/Georama-Medium.ttf") format('truetype');
  font-display: swap;
}

/** Inter **/
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("https://helpscout-files.statics.raileurope.com/fonts/Inter/Inter-Regular.ttf") format('truetype');
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("https://helpscout-files.statics.raileurope.com/fonts/Inter/Inter-Medium.ttf") format('truetype');
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("https://helpscout-files.statics.raileurope.com/fonts/Inter/Inter-SemiBold.ttf") format('truetype');
  font-display: swap;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Inter", sans-serif;
}

/** Header **/
#mainNav .navbar-inner {
  background-color: white;
}

.navbar .nav {
  top: 18px;
}

.navbar .nav .caret {
  display: none !important;
}

.navbar .nav li {
  margin: 0 2px 0 0;
}

.navbar .nav li a {
  font-size: 16px;
  color: #2D3238;
  font-family: "Georama", sans-serif;
  transition: color 0.2s ease-out;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Georama", sans-serif;
  font-weight: 500;
  color: #2D3238;
}

.navbar .nav li a:hover,
.navbar .nav li.active a {
  color: #0076b2;
}

/** Search **/
#searchBar button {
  background: #ff3c76;
  font-size: 18px;
  border: none;
  font-family: "Georama", sans-serif;
  font-weight: 500;
  text-shadow: none;
  transition: color 0.2s ease-out;
}

#searchBar button:hover {
  background: #0076b2;
}

#searchBar input:focus {
  border-color: #ff3c76;
}

#docsSearch {
  padding: 3em 0;
  background: #0076b2;
}

/** Collections **/
.collection-category h2 {
  font-family: "Georama", sans-serif;
  font-weight: 500;
  border-bottom: 2px solid #0076b2;
  padding: 0 0 5px 0;
  margin: 0 .65% 28px .65%;
  color: #2D3238;
}

.collection-category h2 a {
  color: #2D3238;
  transition: color 0.2s ease-out;
}

.collection-category h2 a:hover {
  border-bottom: none;
  color: #ff3c76;
}

.category-list .category {
  text-align: left;
  border-radius: 5px;
}

.category-list h3 {
  padding-left: 14px;
  color: #2D3238;
  font-weight: 500;
}

.category-list p {
  font-size: 15px;
  line-height: 1.618em;
  padding-left: 14px;
  padding-right: 14px;
}

.category > p:first-of-type {
  color: #646e7b;
}

.category-list .category .article-count {
  color: #0076b2;
}

#fullArticle .index-list {
  margin-bottom: 2.5em;
  border-left: 5px solid #ccd4de;
}

#fullArticle .index-list h4 {
  display: block;
  text-transform: uppercase;
  margin: 0;
  padding: 8px 26px 0;
  font-size: 1em;
  font-weight: 500;
}

#fullArticle .index-list ul {
  list-style: none;
  margin: 1em 25px 0;
  float: left;
}

#fullArticle .index-list:before, #fullArticle .index-list:after  {
  display: table;
  content: "";
  /* Fixes Opera/contenteditable bug:
  /* http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 */
  line-height: 0;
}

#fullArticle .index-list:after { clear:both; }

#fullArticle .index-list li {
  float: left;
  width: 305px;
}

#fullArticle h3 {
  font-weight: 500;
}

#fullArticle strong {
  color: #2D3238;
  font-weight: 600;
}

#fullArticle table.table-striped tbody>tr:nth-child(odd)>td, #fullArticle table.table-striped tbody>tr:nth-child(odd)>th {
  background-color: #E9EDF3;
}

.articleRatings {
  font-size: 16px;
  color: #646E7B;
}

.articleFoot p, .articleFoot time {
  color: #646E7B;
  font-family: "Inter", serif;
  font-style: italic;
  font-size: 15px;
}

#fullArticle p, #fullArticle ul, #fullArticle ol, #fullArticle li, #fullArticle div, #fullArticle blockquote, #fullArticle dd, #fullArticle table {
  font-size: 16px;
  color: #646E7B;
  line-height: 1.618em;
}

.contentWrapper p.descrip {
  font-size: 16px;
  color: #646E7B;
}

#fullArticle .callout-yellow p, #fullArticle .callout-blue p, #fullArticle .callout-red p, #fullArticle .callout-green p, #fullArticle .callout p, #fullArticle .private-note p {
  font-size: 16px;
}

.articleList {
  font-size: 1.4em;
  line-height: 1.618em;
}

ul.tabs{
  margin: 0 !important;
  padding: 0;
  list-style: none;
  border-bottom: 5px solid #15416c;
}

ul.tabs li {
  background: #e9edf3;
  color: #2d3238 !important;
  display: inline-block;
  padding: 10px 15px;
  cursor: pointer;
  margin-bottom: 8px !important;
  border-radius: 15px;
}

ul.tabs > li {
  font-weight: 600;
}

ul.tabs li > img {
  border: 0 !important;
  max-height: 24px;
  display: inline-block !important;
  margin: 0 8px 0 0 !important;
}

ul.tabs li.current{
  background: #15416c;
  color: #FFFFFF !important;
}

.tab-content{
  display: none;
  padding: 24px;
  border: 1px solid #ccd4de;
}

.tab-content.current{
  display: inherit;
}

@keyframes animateOntoScreen {
  0% {
    transform: scale(0);
  }
  80% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#help-button {
  animation: 0.3s ease-out 0s 1 animateOntoScreen;
  background-color: rgb(236, 35, 91);
  border-radius: 200px;
  bottom: 40px;
  color: #FFF;
  font-size: 14px;
  font-weight: 600;
  height: 55px;
  line-height: 55px;
  position: fixed;
  text-decoration: none;
  right: 40px;
}

#help-button:active,
#help-button:focus,
#help-button:hover {
  text-decoration: none;
  background-color: rgb(228, 27, 83);
}

#help-button svg {
  position: absolute;
  top: 17px;
  left: 19px;
}

#help-button span {
  padding: 0px 20px 0px 54px;
}

@media (max-width: 768px) {
  .navbar .btn-navbar {
    top: -14px;
    right: -20px;
    height: 44px;
    width: 44px;
  }

  .navbar .nav li a {
    border-radius: 2px 2px 2px 2px;
  }

  #contactMobile {
    display: block;
  }

  #mainNav .brand {
    padding: 8px 0 0 0;
  }

  #mainNav .brand span {
    width: 100px;
    height: 44px;
  }

  #fullArticle .index-list li {
    float: none;
    width: 100%;
  }

  /* Tabs: Set tab width to 25%, add margin top, add bottom radius */
  ul.tabs > li {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 4px !important;
    border-radius: 15px;
  }

  mobile {display: block;}
  desktop {display: none;}
}

@media only screen and (min-width: 769px) {
  mobile {display: none;}
  desktop {display: block;}
}
