/* ==================================================================
    VARIABLES
================================================================== */

:root {
  --block-background: hsl(0, 0%, 94%);
  --output-background: hsl(0, 0%, 98%);
  --small: 14px;
  --normal: 15px;
  --text-color: #272727;
}

/* ==================================================================
    DEFAULT FONT AND LAYOUT
================================================================== */

html {
  font-family: "Roboto", Arial, sans-serif;
  font-size: var(--normal);
  color: var(--text-color);
}

/* ==================================================================
    BASIC GRID FOR PROFILE PIC
================================================================== */

.franklin-content .row {
  display: block;
}

.franklin-content .right {
  float: right;
  margin-right: 15px;
}

.franklin-content .right {
  float: right;
}

.franklin-content .container img {
  width: auto;
  padding-left: 0;
  border-radius: 10px;
}

.franklin-content .footnote {
  position: relative;
  top: -0.5em;
  font-size: 70%;
}

/* ==================================================================
    FOOT / COPYRIGHT
================================================================== */

.franklin-content footer a {
  text-decoration: none;
  color: #a6a2a0;
  text-decoration: underline;
}

footer {
  font-size: 80%;
  font-family: "Roboto", Arial, serif;
  color: #a6a2a0;
  text-align: center;
  margin-top: 4em;
  border-top: 1px solid lightgrey;
  padding-top: 1em;
  margin-bottom: 2em;
}

/* ==================================================================
    TEXT GEOMETRY
================================================================== */

.franklin-toc li {
  /* Avoid clickable elements being too close together. */
  margin: 0.6rem 0;
}

.franklin-content {
  position: relative;
  padding-left: 2.5%;
  padding-right: 2.5%;
  line-height: 1.3em;
}

/* On wide screens, fix content width to a max value. */
@media (min-width: 987px) {
	/* 987 = 940 + 5% for padding */
  .franklin-content {
    width: 940px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* On narrow device, reduce margins. */
@media (max-width: 480px) {
  .franklin-content {
    padding-left: 6%;
    padding-right: 6%;
  }
}

#top-menu {
	margin-top: 1.5em; 
	text-align: right;
}

#top-menu a {
	padding: 0 0.4em;
}

/* ==================================================================
    TITLES
================================================================== */

.franklin-content h1 { font-size: 28px; }
.franklin-content h2 { font-size: 20px; }
.franklin-content h3 { font-size: 16px; }

.franklin-content h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: left;
}

.franklin-content h1 {
  padding-bottom: 0em;
  margin-top: 0.4em;
  margin-bottom: 0em;
  line-height: 1.1em;
}

.franklin-content h2 {
  padding-bottom: 0.3em;
  margin-top: 1em;
  margin-bottom: 0.4em;
}

.franklin-content h3 {
  margin-top: 1.5em;
  margin-bottom: 0em;
}

.franklin-content h1 a { color: inherit; }
.franklin-content h1 a:hover { text-decoration: none; }
.franklin-content h2 a { color: inherit; }
.franklin-content h2 a:hover { text-decoration: none; }
.franklin-content h3 a { color: inherit; }
.franklin-content h3 a:hover { text-decoration: none; }
.franklin-content h4 a { color: inherit; }
.franklin-content h4 a:hover { text-decoration: none; }
.franklin-content h5 a { color: inherit; }
.franklin-content h5 a:hover { text-decoration: none; }
.franklin-content h6 a { color: inherit; }
.franklin-content h6 a:hover { text-decoration: none; }

.franklin-content l {
  font-weight: 300;
  margin-bottom: 0.8em;
  display: block;
}

.franklin-content table {
  margin-left: auto;
  margin-right: auto;
  border-collapse: collapse;
  text-align: center;
}

.franklin-toc ol ol {
  list-style-type: lower-alpha;
}

.franklin-content th,
td {
  font-size: var(--small);
  padding: 10px;
  border: 1px solid black;
}

.franklin-content blockquote {
  background: var(--block-background);
  border-left: 7px solid #a8a8a8;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  font-style: italic;
}

.franklin-content blockquote p {
  display: inline;
}

/* ==================================================================
    GENERAL FORMATTING
================================================================== */

.franklin-content ul {
	margin: 0.4em 0;
}

/* Spacing between bullet points. */
.franklin-content li p {
  margin: 10px 0;
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

.franklin-content p {
  margin-top: 0.2em;
  margin-bottom: 0.8em;
  /*text-align: justify;*/
}

.franklin-content date {
  font-size: 10pt;
}

.franklin-content a {
  /*color: #b31919;*/
  /*color: #2E9BD0; [>(bleu ancien site)<]*/
  /*color: #2E9BD0; */
  color: #278CBD; 
  text-decoration: none;
}

.franklin-content a:hover {
  /*color: rgb(110, 4, 4);*/
  color: #0C6B94; 
  text-decoration: underline;
}

/* ==================================================================
    HYPERREFS AND FOOTNOTES
================================================================== */

.franklin-content .eqref a { color: green; }
.franklin-content .bibref a { color: green; }

.franklin-content sup {
  font-size: 70%;
  vertical-align: super;
  line-height: 0;
}

.franklin-content table.fndef {
  margin: 0;
  margin-bottom: 10px;
}

.franklin-content .fndef tr,
td {
  padding: 0;
  border: 0;
  text-align: left;
}

.franklin-content .fndef tr {
  border-left: 2px solid lightgray;
}

.franklin-content .fndef td.fndef-backref {
  vertical-align: top;
  font-size: 70%;
  padding-left: 5px;
}

.franklin-content .fndef td.fndef-content {
  font-size: 80%;
  padding-left: 10px;
  width: 100%;
}

/* ==================================================================
    IMAGES in CONTENT
================================================================== */

.franklin-content img {
  max-width: 98%;
  max-height: 98%;
  text-align: center;
  /* padding-left: 10%; */
}

.franklin-content .img-small img {
  width: 50%;
  text-align: center;
  padding-left: 20%;
}

/* ==================================================================
    KATEX
================================================================== */

body { counter-reset: eqnum; }

.katex { font-size: 1em !important; }

.katex-display .katex {
  /* Overwrite KaTeX settings. */
  display: inline-block;

  /* Allow display equations to wrap on small screens. */
  white-space: normal;
}

.katex-display::after {
  counter-increment: eqnum;
  content: "(" counter(eqnum) ")";
  position: relative;
  float: right;
  padding-right: 5px;
}

.nonumber .katex-display::after {
  counter-increment: nothing;
  content: "";
}

/* ==================================================================
    CODE & HIGHLIGHT.JS
================================================================== */

code {
  background-color: var(--block-background);
  padding: 0.1em 0.2em;
  border-radius: 2px;
  font-size: var(--small);
}

/* .franklin-content code { */

/* background-color: rgba(27,31,35,0.05); */

/* padding: 0.1em 0.2em; */

/* border-radius: 2px; */

/* font-size: 90%; } */

.hljs {
  font-size: var(--small);
  line-height: 1.3em;
  border-radius: 10px;
}

.hljs-meta { font-weight: bold;}

.hljs-meta.shell_ {color: crimson;}
.hljs-meta.prompt_ {color: rgb(25, 179, 51);}

.code-output {
  background: var(--output-background);
  border: 1px dashed #dbdbdb;
}

/* ==================================================================
    BOXES
================================================================== */

.franklin-content .colbox-blue {
  background-color: #eef3f5;
  padding-top: 5px;
  padding-right: 10px;
  padding-left: 10px;
  padding-bottom: 5px;
  margin-left: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 0 10px 10px 0;
  border-left: 5px solid #4c9cf1;
}

.franklin-content a.label {
	display:inline;
	padding:.2em .6em .3em;
	font-size:12px;
	font-weight:bold;
	line-height:1;
	color:#fff;
	text-align:center;
	white-space:nowrap;
	vertical-align:baseline;
	border-radius:.25em; 
	margin-right: 1ex;
	/*background-color: #aaa;*/
	background-color: #75B7D7; /* bleu clair/gris */
}

.franklin-content a.label:hover {
	color: white;
	text-decoration: underline;
}

.franklin-content a.green-label {
	background-color: #5cb85c;
}

.franklin-content a.blue-label {
	background-color: #337ab7;
	/*background-color: #419CC8; [> entre deux <]*/
}

.franklin-content a.orange-label {
	background-color: #F08406;
}

.franklin-content a.red-label {
	background-color: #f96655;
}

.franklin-content a.mainblue-label {
	background-color: #278CBD; 
}
.franklin-content a.grey-label {
	background-color: #aaa; 
}
.franklin-content a.verylightblue-label {
	background-color: #75B7D7; /* plus gris */
}

/**********************************************************************
*                               Biblio                               *
**********************************************************************/

.bib_title {
	font-weight: bold; 
	line-height: 1.3em;
}
.bib_authors {
	font-style: italic;
}
.bib_entry {
	line-height: 1.1em;
	margin-bottom: 1.2em;
}
.franklin-content .bib_entry p {
	margin: 0 0 0.3em 0;
}
.hidden {
	overflow: hidden;
}

.hidden {
    font-size: $small-font-size;
    max-height: 0px;
    overflow: hidden;
    text-align: justify;
    -webkit-transition: 0.15s ease;
    -moz-transition: 0.15s ease;
    -ms-transition: 0.15s ease;
    -o-transition: 0.15s ease;
    transition: all 0.15s ease;

    p {
        line-height: 1.4em;
        margin: 10px;
    }
    pre {
        font-size: 1em;
        line-height: 1.4em;
        padding: 10px;
    }
}
.hidden.open {
    max-height: 100em;
    -webkit-transition: 0.15s ease;
    -moz-transition: 0.15s ease;
    -ms-transition: 0.15s ease;
    -o-transition: 0.15s ease;
    transition: all 0.15s ease;
}
div.abstract.open {
	border-left: 0.2em #777 solid;
	padding-left: 0.8em;
	margin: 1em 1em 0.5em 1em;
	color: #777; 
	line-height: 1.1em;
}
