/* CSS Custom Properties Definitions */

:root {
  --maxWidth-none: "none";
  --maxWidth-xs: 20rem;
  --maxWidth-sm: 24rem;
  --maxWidth-md: 28rem;
  --maxWidth-lg: 32rem;
  --maxWidth-xl: 36rem;
  --maxWidth-2xl: 42rem;
  --maxWidth-3xl: 48rem;
  --maxWidth-4xl: 56rem;
  --maxWidth-5xl: 65rem;
  --maxWidth-full: "100%";
  --maxWidth-wrapper: var(--maxWidth-5xl);
  --spacing-px: "1px";
  --spacing-0: 0;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  --fontFamily-sans: Montserrat, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --fontFamily-serif: "Merriweather", "Georgia", Cambria, "Times New Roman",
    Times, serif;
  --font-body: var(--fontFamily-serif);
  --font-heading: var(--fontFamily-sans);
  --fontWeight-normal: 400;
  --fontWeight-medium: 500;
  --fontWeight-semibold: 600;
  --fontWeight-bold: 700;
  --fontWeight-extrabold: 800;
  --fontWeight-black: 900;
  --fontSize-root: 14px;
  --lineHeight-none: 1;
  --lineHeight-tight: 1.1;
  --lineHeight-li: 1.25;
  --lineHeight-normal: 1.5;
  --lineHeight-relaxed: 1.625;
  /* 1.200 Minor Third Type Scale */
  --fontSize-0: 0.833rem;
  --fontSize-1: 1rem;
  --fontSize-2: 1.2rem;
  --fontSize-3: 1.44rem;
  --fontSize-4: 1.728rem;
  --fontSize-5: 2.074rem;
  --fontSize-6: 2.488rem;
  --fontSize-7: 2.986rem;
  --color-primary: #005b99;
  --color-text: #2e353f;
  --color-text-light: #4f5969;
  --color-heading: #1a202c;
  --color-heading-black: black;
  --color-accent: #d1dce5;
}

/* HTML elements */

*,
:after,
:before {
  box-sizing: border-box;
}

html {
  /*line-height: var(--lineHeight-normal);*/
  line-height: var(--lineHeight-tight);
  font-size: var(--fontSize-root);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fontSize-1);
  color: var(--color-text);
}

footer {
  padding: var(--spacing-6) var(--spacing-0);
  border-top: 1px solid rgb(132, 180, 238);
  margin-top: 7px;
}

hr {
  background: var(--color-accent);
  height: 1px;
  border: 0;
}

/* Heading */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin-top: var(--spacing-12);
  margin-bottom: var(--spacing-6);
  line-height: var(--lineHeight-tight);
  letter-spacing: -0.025em;
}

h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fontWeight-bold);
  color: var(--color-heading);
}

h1 {
  /*font-weight: var(--fontWeight-black);*/
  font-weight: var(--fontWeight-bold);
  font-size: var(--fontSize-6);
  color: var(--color-heading-black);
}

h2 {
  font-size: var(--fontSize-5);
}

h3 {
  font-size: var(--fontSize-4);
}

h4 {
  font-size: var(--fontSize-3);
}

h5 {
  font-size: var(--fontSize-2);
}

h6 {
  font-size: var(--fontSize-1);
}



h1> a,
h2 > a,
h3 > a,
h4 > a,
h5 > a,
h6 > a {
  text-decoration: none;
  color: inherit;
}

h1> a:hover,
h2 > a:hover,
h3 > a:hover,
h4 > a:hover,
h5 > a:hover,
h6 > a:hover {
  text-decoration: underline;
}

/* Prose */

p{
  line-height: var(--lineHeight-normal);
  --baseline-multiplier: 0.179;
  --x-height-multiplier: 0.35;
  margin: var(--spacing-0) var(--spacing-0) var(--spacing-4) var(--spacing-0);
  padding: var(--spacing-0);
}

ul,
ol {
  margin-left: var(--spacing-4);
  margin-right: var(--spacing-0);
  padding: var(--spacing-0);
  margin-bottom: var(--spacing-4);
  list-style-position: outside;
  list-style-image: none;
}

li {
  line-height: var(--lineHeight-li);
  padding-bottom: 0.5rem;
}


li > p {
  margin-bottom: calc(var(--spacing-4) / 2);
}


li > ul {
  margin-left: var(--spacing-4);
  margin-top: var(--spacing-4);
}

blockquote {
  color: var(--color-text-light);
  /*margin-left: calc(-1 * var(--spacing-6));*/
  margin-right: var(--spacing-8);
  padding: var(--spacing-0) var(--spacing-0) var(--spacing-0) var(--spacing-6);
  border-left: var(--spacing-1) solid var(--color-primary);
  font-size: var(--fontSize-1);
  font-style: italic;
  margin-bottom: var(--spacing-4);
}

blockquote > :last-child {
  margin-bottom: var(--spacing-0);
}

blockquote > ul,
blockquote > ol {
  list-style-position: outside;
}

table {
  width: 100%;
  margin-bottom: var(--spacing-4);
  border-collapse: collapse;
  border-spacing: 0.25rem;
}

table thead tr th {
  border-bottom: 1px solid var(--color-accent);
}

/* Link */

a {
  color: var(--color-primary);
}


/*a:hover,
a:focus {
  text-decoration: none;
}*/

/* Custom classes */

.indent-this{
  margin-left: 3rem;
}

.global-wrapper {
  margin: var(--spacing-0) auto;
  max-width: var(--maxWidth-wrapper);
  padding: var(--spacing-10) var(--spacing-5);
}

.global-wrapper[data-is-root-path="true"] .bio {
  margin-bottom: var(--spacing-20);
}

.global-header {
  position: relative;
  text-align: center;
  margin-bottom: 1rem;
  background-color: #2c3e50; /* Dark blue-gray background */
  padding: 0.5rem; /* Simplified equal padding */
  border-radius: 8px; /* Optional: rounded corners */
  line-height: 1; /* Controls text line height */
  display: flex;
  justify-content: center;
  align-items: center; /* Centers content vertically */
}

.global-header h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 2rem;
  /* Remove absolute positioning since we don't have an image */
  position: static;
  transform: none;
  margin: 0; /* Removes default margins */
}

.main-heading {
  font-size: var(--fontSize-5);
  margin: 0;
  color:#005b99;
}

.post-list-item {
  margin-bottom: var(--spacing-4);
  margin-top: var(--spacing-4);
  margin-left: -12px;
  
}

.post-list-item ul{
  list-style-position: inside;
  margin-left: var(--spacing-0);
}

.post-list-item section p {
  margin-top: 0.5rem;
  padding-bottom: 2px;
  border-bottom: 1px solid #005b99;
  font-size: 0.8rem;
}

.post-selected {
  background-color: #ffff99;
}

.post-list-item h6 {
  font-size: var(--fontSize-1);
  color: var(--color-primary);
  margin-bottom: 0;
  margin-top: var(--spacing-0);
}

.header-link-home {
  font-weight: var(--fontWeight-bold);
  font-family: var(--font-heading);
  text-decoration: none;
  font-size: var(--fontSize-2);
}

.header-link-home:hover {
  text-decoration: underline;
}

.bio {
  display: flex;
  margin-bottom: var(--spacing-16);
}

.bio p {
  margin-bottom: var(--spacing-0);
}

.bio-avatar {
  margin-right: var(--spacing-4);
  margin-bottom: var(--spacing-0);
  min-width: 50px;
  border-radius: 100%;
}

.blog-post header h1 {
  margin: var(--spacing-0) var(--spacing-0) var(--spacing-4) var(--spacing-0);
}

.blog-post header p {
  font-size: var(--fontSize-2);
  font-family: var(--font-heading);
}

.blog-post-nav ul {
  margin: var(--spacing-0);
}

.gatsby-highlight {
  margin-bottom: var(--spacing-4);
}

/* Media queries */

@media (max-width: 42rem) {
  blockquote {
    padding: var(--spacing-0) var(--spacing-0) var(--spacing-0) var(--spacing-4);
    margin-left: var(--spacing-0);
  }
  ul,
  ol {
    list-style-position: inside;
  }
}

.is-visible {
  display: block;
  margin-top: 12px
}
.is-visible ul li {
  padding-left: 0px;
  line-height: var(--lineHeight-tight);

}

.is-visible>ul {
  margin-left: 0px;
}

.is-visible li>ul {
  margin-left: 1 rem;
}

.is-not-visible {
  display: none
}

.with-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;

}

.with-sidebar > :first-child {
  flex-basis: 200px; 
  flex-grow: 1;
  border-right: 1px solid #005b99;
  padding-right:0.5rem;
}

.with-sidebar > :last-child {
  flex-basis: 0;
  flex-grow: 999;
  min-width: 50%;
}

.in-sidebar > ul {
  padding-left: 0px;
  font-weight: bold;
}

.in-sidebar li ul {
  font-weight: normal;
}




.blog-date {
  text-align: right;
  font-size: 0.75rem;
  margin:0;
}

.greenbutton {
  background-color: #56f42a;
  border: 1px solid #56f42a;
  color: #000000;
  fill: #000000;
  font-size: 0.85rem;
  border-radius: 3px;
  padding: 4px 10px;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  font-weight: 600;
  height: 34px;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.commentsSuccess {
  background-color: rgb(167, 247, 220);
  border: 5px double #56f42a;
  border-radius: 5px;
  text-align: center;
}

.commentsSuccess button {
  cursor: pointer;
}

.commentsFail {
  background-color: rgb(245, 63, 60);
  color: white;
  border: 5px double red;
  border-radius: 5px;
  text-align: center;
}

.commentsFail button {
  cursor: pointer;
}

.commentName {
  color: blue;
  font-weight: bold;
}

.singleComment {
  border-bottom: 2px solid rgb(132, 180, 238);
  margin-bottom: 1em;
}

.commentsContainer{
  border-top: 2px solid rgb(132, 180, 238);
  margin-top:1em;
}

.commentsContainer h4 {
  margin-top: 1em;
}

.commentMessage {
  padding-left: 2em;
  padding-right: 5px;
  padding-top:1em;
  padding-bottom: 5px;
  margin-bottom: 0px;
}

.submitMessage {
  color: blue
}

.contactform {
  font-size: var(--fontSize-0);
  padding: 2em;
  border-radius: 25px;
  border: 2px solid rgb(132, 180, 238);
  background-color: #ffffff;


}

.contactform span {
  color: red;
  font-size: 10px;

}

.topAndBottom {
  border-top: 2px solid #666666;
  border-bottom:  2px solid #666666;
  margin-bottom: 1rem;
}

.red {
  color: red;
}

.blue {
  color: blue;
}


pre {
  background-color: #f5f2f0;
  border-radius: 4px;
  padding: 1em;
  overflow: auto;
  margin: 1em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

pre code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #333;
  line-height: 1.5;
  display: block;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  tab-size: 4;
  hyphens: none;
}


code:not(pre code) {
  background-color: #f5f2f0;
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  color: #d14; 
}

a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6' stroke='currentColor' fill='none' stroke-width='2'/%3E%3Cpath d='M15 3h6v6' stroke='currentColor' fill='none' stroke-width='2'/%3E%3Cpath d='M10 14L21 3' stroke='currentColor' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

section#article-content table {
  border-collapse: collapse;
  width: 75%;
  margin: 0 auto; /* centers the table horizontally */
  text-align: center;
}

section#article-content th,
section#article-content td {
  border: 1px solid #333;
  padding: 8px;
  text-align: center;
}

section#article-content thead {
  background-color: #f2f2f2; /* optional */
}


