/* Base */
/* ----------------------------------------------------------*/

* {
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }

body {
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  background-color: #1a1a1a; /* Dark background */
  color: #00FF00; /* Green text for terminal feel */
}

h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: bold; }

a         { color: #00FFFF; text-decoration: none; } /* Cyan links */
a:hover   { color: #00BFFF; text-decoration: underline; } /* Lighter cyan on hover */
a:visited { color: #00AA77; } /* Slightly different green for visited links */

/* Utility */

.wrap:before,
.wrap:after { content:""; display:table; }
.wrap:after { clear: both; }
.wrap {
  max-width: 800px;
  padding: 0 30px;
  margin: 0 auto;
  zoom: 1;
}
/* Layout Styles */
/* ----------------------------------------------------------*/

/* Site header */

.site-header {
  border-top: 5px solid #00FF00; /* Green border */
  border-bottom: 1px solid #005500; /* Darker green border */
  min-height: 56px;
  background-color: #2b2b2b; /* Darker header background */
}

.site-title,
.site-title:hover,
.site-title:visited {
  display: block;
  color: #00FF00; /* Green title */
  font-size: 26px;
  letter-spacing: -1px;
  float: left;
  line-height: 56px;
  position: relative;
  z-index: 1;
}

.site-nav {
  float: right;
  line-height: 56px;
}

.site-nav .menu-icon { display: none; }

.site-nav .trigger {
  display: flex; /* CRITICAL: Use flexbox for alignment */
  align-items: center; /* CRITICAL: Vertically center items */
  justify-content: flex-end; /* CRITICAL: Push items to the right */
  clear: both;
  margin-bottom: 5px;
}

.site-nav:hover .trigger { display: block; }

.site-nav .page-link,
.site-nav .theme-toggle {
  text-align: right; /* Still useful for mobile dropdown */
  line-height: 56px; /* Maintain height, align with parent */
  padding: 0; /* Remove any padding that might misalign */
  margin-left: 20px; /* Adjust horizontal spacing between items as needed */
  vertical-align: middle; /* Still good practice, though align-items handles most cases */
}

/* Site footer */

.site-footer {
  border-top: 1px solid #005500; /* Darker green border */
  padding: 30px 0;
  background-color: #2b2b2b; /* Darker footer background */
}

.footer-heading {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -.5px;
  margin-bottom: 15px;
}

.site-footer .column { float: left; margin-bottom: 15px; }

.footer-col-1 {
  width: 270px; /*fallback*/
  width: -webkit-calc(35% - 10px);
  width: -moz-calc(35% - 10px);
  width: -o-calc(35% - 10px);
  width: calc(35% - 10px);
  margin-right: 10px
}
.footer-col-2 {
  width: 175px; /*fallback*/
  width: -webkit-calc(23.125% - 10px);
  width: -moz-calc(23.125% - 10px);
  width: -o-calc(23.125% - 10px);
  width: calc(23.125% - 10px);
  margin-right: 10px
}
.footer-col-3 {
  width: 335px; /*fallback*/
  width: -webkit-calc(41.875%);
  width: -moz-calc(41.875%);
  width: -o-calc(41.875%);
  width: calc(41.875%);
}

.site-footer ul { list-style: none; }

.site-footer li,
.site-footer p {
  font-size: 15px;
  letter-spacing: -.3px;
  color: #AAAAAA; /* Lighter grey for footer text */
}

.github-icon-svg,
.twitter-icon-svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  top: 3px;
}


/* Page Content styles */
/* ----------------------------------------------------------*/

.page-content {
  padding: 30px 0;
  background-color: #1a1a1a; /* Match body background */
  color: #00FF00; /* Green text */
}


/* Home styles */
/* ----------------------------------------------------------*/

.home h1 { margin-bottom: 25px; }

.posts { list-style-type: none; }

.posts li { margin-bottom: 30px; }

.posts .post-link {
  font-size: 20px;
  letter-spacing: -1px;
  line-height: 1;
}

.posts .post-date {
  display: block;
  font-size: 15px;
  color: #818181;
}


/* Post styles */
/* ----------------------------------------------------------*/

.post-header { margin: 10px 0 30px; }

.post-header h1 {
  font-size: 36px;
  letter-spacing: -1.75px;
  line-height: 1;
  font-weight: bold;
  color: #00FFFF; /* Cyan for post title */
}

.post-header .meta {
  font-size: 15px;
  color: #AAAAAA; /* Light grey for post meta */
  margin-top: 5px;
}

.post-content { margin: 0 0 30px; }

.post-content > * { margin: 20px 0; }


.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  line-height: 1;
  font-weight: bold;
  margin: 40px 0 20px;
  color: #00FFFF; /* Cyan for content headings */
}

.post-content h2 {
  font-size: 32px;
  letter-spacing: -1.25px;
}

.post-content h3 {
  font-size: 26px;
  letter-spacing: -1px;
}

.post-content h4 {
  font-size: 20px;
  letter-spacing: -1px;
}

.post-content {
    
}
.post-content img {
    display: block;
    margin: 0 auto;
    border: 1px solid #00FF00; /* Green border for images */
}

.post-content blockquote {
  border-left: 4px solid #00AA00; /* Darker green border for blockquote */
  padding-left: 20px;
  font-size: 18px;
  opacity: .8; /* Slightly less opaque to mimic terminal */
  letter-spacing: -1px;
  font-style: italic;
  color: #00DD00; /* Lighter green for blockquote text */
  margin: 30px 0;
}

.post-content ul,
.post-content ol { padding-left: 20px; }

.post pre,
.post code {
  border: 1px solid #005500; /* Darker green border */
  background-color: #0d0d0d; /* Very dark background for code */
  color: #00FF00; /* Green text for code */
  padding: 8px 12px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  font-size: 15px;
  overflow:auto;
}

.post code { padding: 1px 5px; }

.post ul,
.post ol { margin-left: 1.35em; }

.post pre code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/* terminal */
.post pre.terminal {
  border: 1px solid #00FF00;
  background-color: #0d0d0d;
  color: #00FF00;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.post pre.terminal code { background-color: #0d0d0d; }

/* AK custom CSS mods */
.imgright { float: right; margin-left: 10px; }
.imgcap img {
  border: 1px solid #00FF00;
  max-width: 100%;
}
.imgcap {
  color: #00FF00; /* Green for image caption */
  font-size: 14px;
  
}

.svgdiv {
  width: 100%;
  
}
/* Syntax highlighting styles */
/* ----------------------------------------------------------*/

.highlight  { background: #0d0d0d; } /* Dark background for syntax highlighting */
.highlight .c { color: #55FF55; font-style: italic } /* Comment */
.highlight .err { color: #FF0000; background-color: #330000 } /* Error */
.highlight .k { color: #FFFF00; font-weight: bold } /* Keyword */
.highlight .o { color: #00FFFF; font-weight: bold } /* Operator */
.highlight .cm { color: #55FF55; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #00AA00; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #55FF55; font-style: italic } /* Comment.Single */
.highlight .cs { color: #00AA00; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #FF0000; background-color: #330000 } /* Generic.Deleted */
.highlight .gd .x { color: #FF0000; background-color: #330000 } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic; color: #00FF00; } /* Generic.Emph */
.highlight .gr { color: #FF0000 } /* Generic.Error */
.highlight .gh { color: #00FFFF } /* Generic.Heading */
.highlight .gi { color: #00FF00; background-color: #003300 } /* Generic.Inserted */
.highlight .gi .x { color: #00FF00; background-color: #003300 } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #AAAAAA } /* Generic.Prompt */
.highlight .gs { font-weight: bold; color: #00FF00; } /* Generic.Strong */
.highlight .gu { color: #00FFFF } /* Generic.Subheading */
.highlight .gt { color: #FF0000 } /* Generic.Traceback */
.highlight .kc { color: #FFFF00; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #FFFF00; font-weight: bold } /* Keyword.Declaration */
.highlight .kp { color: #FFFF00; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #FFFF00; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #00FFFF; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #FF00FF } /* Literal.Number */
.highlight .s { color: #00FF00 } /* Literal.String */
.highlight .na { color: #00AAFF } /* Name.Attribute */
.highlight .nb { color: #00CCFF } /* Name.Builtin */
.highlight .nc { color: #00FFFF; font-weight: bold } /* Name.Class */
.highlight .no { color: #00AAFF } /* Name.Constant */
.highlight .ni { color: #FF00FF } /* Name.Entity */
.highlight .ne { color: #FF0000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #FFFF00; font-weight: bold } /* Name.Function */
.highlight .nn { color: #00FFFF } /* Name.Namespace */
.highlight .nt { color: #00FF00 } /* Name.Tag */
.highlight .nv { color: #00AAFF } /* Name.Variable */
.highlight .ow { color: #00FFFF; font-weight: bold } /* Operator.Word */
.highlight .w { color: #BBBBBB } /* Text.Whitespace */
.highlight .mf { color: #FF00FF } /* Literal.Number.Float */
.highlight .mh { color: #FF00FF } /* Literal.Number.Hex */
.highlight .mi { color: #FF00FF } /* Literal.Number.Integer */
.highlight .mo { color: #FF00FF } /* Literal.Number.Oct */
.highlight .sb { color: #00FF00 } /* Literal.String.Backtick */
.highlight .sc { color: #00FF00 } /* Literal.String.Char */
.highlight .sd { color: #00FF00 } /* Literal.String.Doc */
.highlight .s2 { color: #00FF00 } /* Literal.String.Double */
.highlight .se { color: #00FF00 } /* Literal.String.Escape */
.highlight .sh { color: #00FF00 } /* Literal.String.Heredoc */
.highlight .si { color: #00FF00 } /* Literal.String.Interpol */
.highlight .sx { color: #00FF00 } /* Literal.String.Other */
.highlight .sr { color: #00AAFF } /* Literal.String.Regex */
.highlight .s1 { color: #00FF00 } /* Literal.String.Single */
.highlight .ss { color: #FF00FF } /* Literal.String.Symbol */
.highlight .bp { color: #AAAAAA } /* Name.Builtin.Pseudo */
.highlight .vc { color: #00AAFF } /* Name.Variable.Class */
.highlight .vg { color: #00AAFF } /* Name.Variable.Global */
.highlight .vi { color: #00AAFF } /* Name.Variable.Instance */
.highlight .il { color: #FF00FF } /* Literal.Number.Integer.Long */


/* media queries */
/* ----------------------------------------------------------*/

/* Theme Toggle Button */
.site-nav .theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0; /* Hide font-size affecting button if any */
  padding: 0; /* No padding on button itself */
  line-height: 1; /* Reset line-height to let flex handle vertical alignment */
  outline: none;
  margin-left: 20px; /* Consistent spacing, matches .page-link */
}

.site-nav .theme-toggle svg {
  width: 20px; /* Adjust size */
  height: 20px; /* Adjust size */
  vertical-align: middle; /* Ensure icon is centered within button */
  stroke: #00FF00; /* Default dark mode stroke */
  fill: none; /* No fill by default */
}

.site-nav .theme-toggle .moon-icon {
  display: inline-block; /* Show moon by default */
}

.site-nav .theme-toggle .sun-icon {
  display: none; /* Hide sun by default */
}

/* Light Mode Styles */
body.light-mode .site-nav .theme-toggle svg {
  stroke: #333; /* Light mode stroke */
}

body.light-mode .site-nav .theme-toggle .moon-icon {
  display: none; /* Hide moon in light mode */
}

body.light-mode .site-nav .theme-toggle .sun-icon {
  display: inline-block; /* Show sun in light mode */
}

body.light-mode a         { color: #0000FF; } /* Blue links */
body.light-mode a:hover   { color: #0000AA; }
body.light-mode a:visited { color: #5500AA; }

body.light-mode .site-header {
  border-top: 5px solid #555; 
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

body.light-mode .site-title,
body.light-mode .site-title:hover,
body.light-mode .site-title:visited {
  color: #333;
}

body.light-mode .site-nav .page-link {
  color: #555;
}

body.light-mode .site-footer {
  border-top: 1px solid #ddd;
  background-color: #fff;
}

body.light-mode .site-footer li,
body.light-mode .site-footer p {
  color: #777;
}

body.light-mode .page-content {
  background-color: #fdfdfd;
  color: #333;
}

body.light-mode .post-header h1 {
  color: #333;
}

body.light-mode .post-header .meta {
  color: #777;
}

body.light-mode .post-content h1,
body.light-mode .post-content h2,
body.light-mode .post-content h3,
body.light-mode .post-content h4,
body.light-mode .post-content h5,
body.light-mode .post-content h6 {
  color: #333;
}

body.light-mode .post-content img {
  border: 1px solid #bbb;
}

body.light-mode .post-content blockquote {
  border-left: 4px solid #ccc;
  color: #555;
}

body.light-mode .post pre,
body.light-mode .post code {
  border: 1px solid #eee;
  background-color: #f5f5f5;
  color: #333;
}

body.light-mode .post pre.terminal {
  border: 1px solid #333;
  background-color: #eee;
  color: #333;
}

body.light-mode .post pre.terminal code { background-color: #eee; }

body.light-mode .imgcap {
  color: #555;
}

/* Show sun icon and hide moon icon in light mode */
body.light-mode .theme-toggle .moon-icon {
  display: none;
}

body.light-mode .theme-toggle .sun-icon {
  display: inline-block;
}

/* Syntax highlighting for light mode */
body.light-mode .highlight  { background: #f5f5f5; }
body.light-mode .highlight .c { color: #999988; font-style: italic } /* Comment */
body.light-mode .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
body.light-mode .highlight .k { color: #0000FF; font-weight: bold } /* Keyword - blue */
body.light-mode .highlight .o { color: #0000FF; font-weight: bold } /* Operator - blue */
body.light-mode .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
body.light-mode .highlight .cp { color: #008800; font-weight: bold } /* Comment.Preproc - dark green */
body.light-mode .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
body.light-mode .highlight .cs { color: #008800; font-weight: bold; font-style: italic } /* Comment.Special */
body.light-mode .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
body.light-mode .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
body.light-mode .highlight .ge { font-style: italic; color: #333; } /* Generic.Emph */
body.light-mode .highlight .gr { color: #aa0000 } /* Generic.Error */
body.light-mode .highlight .gh { color: #555555 } /* Generic.Heading */
body.light-mode .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
body.light-mode .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
body.light-mode .highlight .go { color: #888888 } /* Generic.Output */
body.light-mode .highlight .gp { color: #555555 } /* Generic.Prompt */
body.light-mode .highlight .gs { font-weight: bold; color: #333; } /* Generic.Strong */
body.light-mode .highlight .gu { color: #aaaaaa } /* Generic.Subheading */
body.light-mode .highlight .gt { color: #aa0000 } /* Generic.Traceback */
body.light-mode .highlight .kc { color: #0000FF; font-weight: bold } /* Keyword.Constant */
body.light-mode .highlight .kd { color: #0000FF; font-weight: bold } /* Keyword.Declaration */
body.light-mode .highlight .kp { color: #0000FF; font-weight: bold } /* Keyword.Pseudo */
body.light-mode .highlight .kr { color: #0000FF; font-weight: bold } /* Keyword.Reserved */
body.light-mode .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
body.light-mode .highlight .m { color: #009999 } /* Literal.Number */
body.light-mode .highlight .s { color: #dd1144 } /* Literal.String - red */
body.light-mode .highlight .na { color: #008080 } /* Name.Attribute */
body.light-mode .highlight .nb { color: #0086B3 } /* Name.Builtin */
body.light-mode .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
body.light-mode .highlight .no { color: #008080 } /* Name.Constant */
body.light-mode .highlight .ni { color: #800080 } /* Name.Entity */
body.light-mode .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
body.light-mode .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
body.light-mode .highlight .nn { color: #555555 } /* Name.Namespace */
body.light-mode .highlight .nt { color: #000080 } /* Name.Tag */
body.light-mode .highlight .nv { color: #008080 } /* Name.Variable */
body.light-mode .highlight .ow { font-weight: bold } /* Operator.Word */
body.light-mode .highlight .w { color: #bbbbbb } /* Text.Whitespace */
body.light-mode .highlight .mf { color: #009999 } /* Literal.Number.Float */
body.light-mode .highlight .mh { color: #009999 } /* Literal.Number.Hex */
body.light-mode .highlight .mi { color: #009999 } /* Literal.Number.Integer */
body.light-mode .highlight .mo { color: #009999 } /* Literal.Number.Oct */
body.light-mode .highlight .sb { color: #dd1144 } /* Literal.String.Backtick */
body.light-mode .highlight .sc { color: #dd1144 } /* Literal.String.Char */
body.light-mode .highlight .sd { color: #dd1144 } /* Literal.String.Doc */
body.light-mode .highlight .s2 { color: #dd1144 } /* Literal.String.Double */
body.light-mode .highlight .se { color: #dd1144 } /* Literal.String.Escape */
body.light-mode .highlight .sh { color: #dd1144 } /* Literal.String.Heredoc */
body.light-mode .highlight .si { color: #dd1144 } /* Literal.String.Interpol */
body.light-mode .highlight .sx { color: #dd1144 } /* Literal.String.Other */
body.light-mode .highlight .sr { color: #009926 } /* Literal.String.Regex */
body.light-mode .highlight .s1 { color: #dd1144 } /* Literal.String.Single */
body.light-mode .highlight .ss { color: #990073 } /* Literal.String.Symbol */
body.light-mode .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
body.light-mode .highlight .vc { color: #008080 } /* Name.Variable.Class */
body.light-mode .highlight .vg { color: #008080 } /* Name.Variable.Global */
body.light-mode .highlight .vi { color: #008080 } /* Name.Variable.Instance */
body.light-mode .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */


@media screen and (max-width: 750px) {

  .footer-col-1 { width: 50%; }

  .footer-col-2 {
    width: 45%; /*fallback*/
    width: -webkit-calc(50% - 10px);
    width: -moz-calc(50% - 10px);
    width: -o-calc(50% - 10px);
    width: calc(50% - 10px);
    margin-right: 0;
  }

  .site-footer .column.footer-col-3 {
    width: auto;
    float: none;
    clear: both;
  }

}

@media screen and (max-width: 600px) {

  .wrap { padding: 0 12px; }

  .site-nav {
    position: fixed;
    z-index: 10;
    top: 14px; right: 8px;
    background-color: white;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
  }

  .site-nav .menu-icon {
    display: block;
    font-size: 24px;
    color: #505050;
    float: right;
    width: 36px;
    text-align: center;
    line-height: 36px;
  }

  .site-nav .menu-icon svg { width: 18px; height: 16px; }

  .site-nav .trigger {
    display: flex; /* Use flexbox for alignment */
    align-items: center; /* Vertically center items */
    justify-content: flex-end; /* Push items to the right */
    clear: both;
    margin-bottom: 5px;
    /* display: none; */ /* Keep this for mobile toggle, handled by JS */
  }

  .site-nav:hover .trigger { display: block; }

  .site-nav .page-link,
  .site-nav .theme-toggle {
    /* display: inline-block; */ /* No longer needed with flexbox */
    text-align: right; /* Still useful for mobile dropdown */
    line-height: 56px; /* Maintain height */
    padding: 0; /* Remove padding */
    margin-left: 20px; /* Adjust spacing between items */
    vertical-align: middle; /* Still good practice */
  }

  .post-header h1 { font-size: 36px; }
  .post-content h2 { font-size: 28px; }
  .post-content h3 { font-size: 22px; }
  .post-content h4 { font-size: 18px; }
  .post-content blockquote { padding-left: 10px; }
  .post-content ul,
  .post-content ol { padding-left: 10px; }

  .site-footer .column {
    float: none;
    clear: both;
    width: auto;
    margin: 0 0 15px; }

}