/* COLORS */
:root {
  --baleine-blue: rgb(23,92,143);
  --blueish-gray: rgb(97,104,117);
  --header-background: rgb(0,75,135);
  --header-hover: rgb(0, 169, 224);
  --white: rgb(255,255,255);
  --gray: #85888C;

  
  --unvisited-link-color: RoyalBlue;
  --visited-link-color: RoyalBlue;
  --hover-link-color: RoyalBlue;
  
  --nav-menu-text-color: white;
  
  --button-text-color: white;
  
  --section-title-color: rgb(203,96,21);
}

body {
  max-width: 800px;
  margin: auto;
  padding: 1em;
  line-height: 1.5;
}

.byline {
  font-style: italic;
}

.comment-name {
  font-weight: bold;
}

p.comment-content {
  margin-left: 2ex;
}

fieldset {
  border-style: none;
}

div.footer {
  font-size: smaller;
}

.button {
  background-color: rgb(23,92,143);
  border: none;
  border-radius: 12px;
  color: white;
  padding: 4px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}

.button:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

.date-info {
  color: #777;
  font-size: smaller;
  line-height: 1.25;
}

#prev-link {
  color: #777;
  font-size: 0.75rem;
  float:left;
}
#next-link {
  color: #777;
  font-size: 0.75rem;
  float:right;
}

.title {
  clear:both;
}

h1 {
  clear:both;
}

div.section-banner {
  display: grid;
  grid-gap: 10px;
  grid-template-rows: 24px 24px;
  grid-template-columns: 48px auto;
  align-items: start;
  justify-content: left;
  clear: both;
  
  padding-top: 3em;
  margin-bottom: 1em;
  
  border-bottom: 1pt solid lightgray;
}

.section-title {
  grid-row: 1;
  grid-column: 2;
  margin-bottom: 0.25em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 120%;
  font-weight: bold;  
  color: var(--section-title-color);
}

.section-title a:link, .section-title a:visited, .section-title a:hover {
  color: var(--section-title-color);
  text-decoration: none;
}

.section-subtitle {
  grid-row: 2;
  grid-column: 2;
  margin-bottom: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-style: oblique;
  overflow: hidden;
  display: none;
}

@media (min-width: 500px) {
  .section-subtitle {
    display: inline-block;
  }
}

.section-photo {
  grid-row: 1 / span 2;
  grid-column: 1;
  height: 100%;
}

div.post-summary {
  margin-left: 2em;
}

.portrait {
  max-width:25%;
  min-width:40px;
  float:right;
  margin: 0px;
  margin-left: 5px;
}

object.pdf-preview {
  height: 500px;
}

figure.portrait p {
  font-size: smaller;
  margin-top: 0px;
}

figure {
  margin: 2rem 0;
  display: inline-block;
  border-style: solid;
  border-color: LightGray;
  border-width: thin;
  text-align: center;
  padding: 1em;
  background: WhiteSmoke;
}

figure img {
  display: block;
  /* margin-left: auto; */
  /* margin-right: auto; */
  /* margin-bottom: 1em; */
  border-style: solid;
  border-color: Gainsboro;
  border-width: thin;
}

figure figurecaption {
  font-size: smaller;
}

figure p {
  font-size: smaller;
  margin-bottom: 0px;
}



hr {
  border-style: dashed;
  color: #ddd;
}

footer {
  clear: both;
}

/* code */
pre:has(code.language-matlab) {
  border: 1px solid #ddd;
  box-shadow: 5px 5px 5px #eee;
  padding: 1em;
  margin-top: 1.5em;
  overflow-x: auto;
  background: rgb(240,240,240);
}
code { background: #f9f9f9; }
pre code { background: none; }

pre:has(code.language-fallback) {
  padding-left: 2em;
  font-size: smaller;
  color: rgb(75,75,75);
  margin-bottom: 3em;
}

pre:has(code.language-matlabTextOutput) {
  padding-left: 2em;
  font-size: smaller;
  color: rgb(75,75,75);
  margin-bottom: 3em;
}

p code {
  font-size: smaller;
}

/* misc elements */
img, iframe, video { max-width: 100%; }
main { hyphens: auto; }
blockquote {
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  padding: 3px 1em 3px;
}

table {
  margin: auto;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; }

textarea { 
  vertical-align: top;
}

/* p.gpb is used for the honey pot field of the contact form. */
/* gpb doesn't mean anything. */
p.gpb {
  display: none;
}

.relative {
	position: relative;
}
.bg-center {
	background-position: center;
}
.w-full {
	width: 100%;
}
.h-auto {
	height: auto;
}
@keyframes fadeIn {
 0% {
	 opacity: 0;
 }
 to {
	 opacity: 1;
 }
}
.animate-fade {
	animation: fadeIn 750ms ease-in-out;
}

/* LINK TREATMENTS */

a:link {
  color: var(--unvisited-link-color);
  text-decoration: underline;
}

a:visited {
  color: var(--visited-link-color);
  text-decoration: underline;
}

a:hover {
  color: var(--hover-link-color);
  text-decoration: underline;
}

.menu a:link, .menu a:visited, .menu a:hover {
  color: #fff;
  font-weight: normal;
  text-decoration: none;
}

a.archive-link {
  color: black;
  text-decoration: none;
}

a.button {
  color: var(--button-text-color);
}

#prev-link a:link, #next-link a:link {
  color: var(--unvisited-link-color);
  text-decoration: none;
}

#prev-link a:visited, #next-link a:visited {
  color: var(--visited-link-color);
  text-decoration: none;
}

#prev-link a:hover, #next-link a:hover {
  color: var(--visited-link-color);
  text-decoration: underline;
}

.ml-embedded {
  margin-bottom: 2em;
}