@charset "UTF-8";
/* Syntax Highlighting (Rouge GitHub theme) */
.highlight table td {
  padding: 5px;
}

.highlight table pre {
  margin: 0;
}

.highlight, .highlight .w {
  color: #24292f;
}

.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kt, .highlight .kv {
  color: #cf222e;
}

.highlight .gr {
  color: #f6f8fa;
}

.highlight .gd {
  color: #82071e;
  background-color: #ffebe9;
}

.highlight .nb {
  color: #953800;
}

.highlight .nc {
  color: #953800;
}

.highlight .no {
  color: #953800;
}

.highlight .nn {
  color: #953800;
}

.highlight .sr {
  color: #116329;
}

.highlight .na {
  color: #116329;
}

.highlight .nt {
  color: #116329;
}

.highlight .gi {
  color: #116329;
  background-color: #dafbe1;
}

.highlight .ges {
  font-weight: bold;
  font-style: italic;
}

.highlight .kc {
  color: #0550ae;
}

.highlight .l, .highlight .ld, .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
  color: #0550ae;
}

.highlight .sb {
  color: #0550ae;
}

.highlight .bp {
  color: #0550ae;
}

.highlight .ne {
  color: #0550ae;
}

.highlight .nl {
  color: #0550ae;
}

.highlight .py {
  color: #0550ae;
}

.highlight .nv, .highlight .vc, .highlight .vg, .highlight .vi, .highlight .vm {
  color: #0550ae;
}

.highlight .o, .highlight .ow {
  color: #0550ae;
}

.highlight .gh {
  color: #0550ae;
  font-weight: bold;
}

.highlight .gu {
  color: #0550ae;
  font-weight: bold;
}

.highlight .s, .highlight .sa, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .se, .highlight .sh, .highlight .sx, .highlight .s1, .highlight .ss {
  color: #0a3069;
}

.highlight .nd {
  color: #8250df;
}

.highlight .nf, .highlight .fm {
  color: #8250df;
}

.highlight .err {
  color: #24292f;
}

.highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cp, .highlight .cpf, .highlight .c1, .highlight .cs {
  color: #6e7781;
}

.highlight .gl {
  color: #6e7781;
}

.highlight .gt {
  color: #6e7781;
}

.highlight .ni {
  color: #24292f;
}

.highlight .si {
  color: #24292f;
}

.highlight .ge {
  color: #24292f;
  font-style: italic;
}

.highlight .gs {
  color: #24292f;
  font-weight: bold;
}

/* TODO: Diff height on mobile version or other*/
/* Check width of code and this also  .. maybe need tobe fix changes when changes tab on some see ipad etc */
/* or drop down like IDE .. read only list of files ? .. only show down arrow if small ? */
.background {
  padding: 10px;
  width: 100%;
}

.background.processing {
  background-color: #122536;
  height: 600px;
}

.background.arduino {
  background-color: #17a1a5;
  height: 600px;
}

.background.tinkercad {
  background-color: #f1f1f3;
  height: 600px;
}

.background.nodejs,
.background.html {
  background-color: #252526;
  height: 600px;
}

.tab-icon {
  font-size: 8pt;
  font-weight: bold;
  padding-right: 8px;
}

.js {
  color: #cbcb41;
}

.json {
  color: #cbcb41;
}

.html {
  color: #e37933;
}

.css {
  color: #519aba;
}

.tabs {
  overflow: hidden;
}

.tabs button {
  float: left;
  border: none;
  outline: none;
  margin-right: 2px;
  margin-top: 2px;
  height: 30px;
  padding: 0px 5px 0px;
}

.tabs button.processing {
  font-family: monospace;
  font-size: 10pt;
  background-color: #2d4251;
  color: #ffffff;
}

.tabs button.nodejs,
.tabs button.html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 10pt;
  background-color: rgb(45, 45, 45);
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 5px 5px 5px;
}

@media (max-width: 600px) {
  .tabs button.processing {
    font-size: 8pt;
  }
}
.tabs button.processing:first-child {
  border-radius: 5px 0px 0px 0px;
}

.tabs button.arduino {
  font-family: monospace;
  font-size: 10pt;
  font-weight: 100;
  border-radius: 5px 5px 0px 0px;
  background-color: #4db7bb;
  color: #007e82;
}

.tabs button.tinkercad {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 10pt;
  border: 1px solid #dfe3e8;
  border-radius: 3px;
  background-color: #f4f5f6;
  box-shadow: 0 2px 4px 0 #dfe3e8;
  padding: 8px 0px 0px 10px;
  margin: 6px;
  background: transparent;
  color: #263133;
  font-weight: 100;
}

.tabs button.processing.active {
  background-color: #e0fffd;
  color: #000000;
}

.tabs button.arduino.active {
  background-color: #ffffff;
  color: #055e5e;
}

.tabs button.tinkercad.active {
  background-color: #f1f1f3;
  color: #000000;
}

.tabs button.nodejs.active,
.tabs button.html.active {
  background-color: rgb(30, 30, 30);
  color: #ffffff;
}

/* TODO: Tidy these up and break down accordingly */
.code {
  display: none;
  width: 100%;
  overflow: auto;
}

.code.active {
  display: block;
}

.code figure.highlight {
  margin: 0;
  padding: 12px 16px;
}

.code pre {
  margin: 0;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  white-space: pre;
}

.code code {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: inherit;
}

.code.processing {
  background-color: #ffffff;
  font-family: "Source Code Pro", monospace;
  font-size: 10pt;
  height: 550px;
}

.code.arduino {
  background-color: #ffffff;
  font-family: monospace;
  font-size: 10pt;
  font-weight: 100;
  line-height: 1.6;
  height: 550px;
}

.code.tinkercad {
  background-color: #ffffff;
  font-family: monospace;
  font-size: 10pt;
  font-weight: 100;
  line-height: 1.6;
  height: 580px;
}

.code.nodejs,
.code.html {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  font-family: monospace;
  font-size: 10pt;
  font-weight: 100;
  line-height: 1.6;
  height: 550px;
  scrollbar-color: #424242 #252526;
  overflow: auto !important;
}

.code.nodejs::-webkit-scrollbar,
.code.html::-webkit-scrollbar {
  display: block;
}

.code.nodejs::-webkit-scrollbar-track,
.code.html::-webkit-scrollbar-track {
  width: 10px;
  height: 10px;
  background-color: #252526 !important;
}

.code.nodejs::-webkit-scrollbar-thumb,
.code.html::-webkit-scrollbar-thumb {
  background: #424242 !important;
}

.snippet {
  display: block !important;
  height: auto !important;
  overflow-x: auto;
  overflow-y: auto;
  padding: 15px;
  border: 1px solid;
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  font-size: 10pt;
}

.snippet.nodejs,
.snippet.html {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
}

.inline {
  background-color: transparent !important;
  font-family: "Source Code Pro", monospace;
  display: inline !important;
  padding: 3px;
  border: 1px solid;
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

#pronguino-3-processing .code.processing {
  height: 515px;
}

#pronguino-4-processing .code.processing {
  height: 515px;
}

#pronguino-5-processing .code.processing {
  height: 515px;
}

#pronguino-6-processing .code.processing {
  height: 515px;
}

#pronguino-7-nodejs .code.nodejs {
  height: 545px;
}

#pronguino-8-processing .code.processing {
  height: 485px;
}

@media only screen and (max-width: 880px) {
  #pronguino-1-processing .code.processing {
    height: 545px;
  }
  #pronguino-2-processing .code.processing {
    height: 515px;
  }
  #pronguino-4-processing .code.processing {
    height: 515px;
  }
  #pronguino-5-processing .code.processing {
    height: 485px;
  }
  #pronguino-6-processing .code.processing {
    height: 485px;
  }
  #pronguino-4 .code.arduino {
    height: 545px;
  }
  #pronguino-6 .code.arduino {
    height: 545px;
  }
  #pronguino-7-nodejs .code.nodejs {
    height: 545px;
  }
}
@media only screen and (max-width: 480px) {
  #pronguino-1-processing .code.processing {
    height: 515px;
  }
  #pronguino-2-processing .code.processing {
    height: 485px;
  }
  #pronguino-3-processing .code.processing {
    height: 515px;
  }
  #pronguino-4-processing .code.processing {
    height: 450px;
  }
  #pronguino-5-processing .code.processing {
    height: 420px;
  }
  #pronguino-6-processing .code.processing {
    height: 420px;
  }
  #pronguino-2 .code.arduino {
    height: 515px;
  }
  #pronguino-4 .code.arduino {
    height: 545px;
  }
  #pronguino-4-arduino-library-component .code.arduino {
    height: 515px;
  }
  #pronguino-4-arduino-library-pronguino .code.arduino {
    height: 515px;
  }
  #pronguino-6 .code.arduino {
    height: 545px;
  }
  #pronguino-6-arduino-library-component .code.arduino {
    height: 515px;
  }
  #pronguino-6-arduino-library-pronguino .code.arduino {
    height: 515px;
  }
  #pronguino-7-nodejs .code.nodejs {
    height: 480px;
  }
  #pronguino-8-processing .code.processing {
    height: 420px;
  }
}
/* Barlow Font Face */
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/Barlow-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Site Container */
.site {
  max-width: 1240px;
  margin: 0 auto;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.site-header {
  background-color: #3d5875;
  color: white;
  padding: 20px 0;
}

.site-header .wrapper {
  padding: 0 20px;
}

.header-top {
  display: none; /* Hidden on desktop */
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #5a7a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo-text {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.site-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.site-description {
  font-size: 1rem;
  color: #c8d6e5;
}

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 5px 10px;
  transition: background-color 0.3s;
}

.site-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Burger Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1000;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) {
  top: 10px;
}

.menu-toggle span:nth-child(2) {
  top: 18px;
}

.menu-toggle span:nth-child(3) {
  top: 26px;
}

.menu-toggle.active span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
}

/* Search icon link */
.search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s;
  line-height: 1;
  text-decoration: none;
}

.search-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile controls (search + burger) — hidden on desktop */
.header-controls {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile slide-down nav — hidden by default */
.mobile-nav {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-nav.active {
  max-height: 300px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 15px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}

.mobile-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content Area */
.page-content {
  padding: 40px 0;
}

.page-content .wrapper {
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.page-content .wrapper:has(> .main-content:only-child) {
  grid-template-columns: 1fr;
}

.main-content {
  background-color: white;
  padding: 30px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

.main-content h1, .main-content h2, .main-content h4 {
  color: #2c3e50;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.main-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid #3d5875;
  padding-bottom: 10px;
}

.main-content h2 {
  font-size: 1.5rem;
  color: #34495e;
}

.main-content h4 {
  font-size: 1rem;
  color: #34495e;
}

.main-content p {
  margin-bottom: 1em;
}

.main-content ul,
.main-content ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.main-content li {
  margin-bottom: 0.4em;
}

.last-updated {
  margin-top: 2em;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 1em;
}

.main-content a {
  color: #3d5875;
  text-decoration: none;
  border-bottom: 1px solid #3d5875;
}

.main-content a:hover {
  background-color: #f0f4f8;
}

.main-content .share-btn {
  border-bottom: none;
}

.main-content .share-btn:hover {
  background-color: inherit;
  color: white;
  text-decoration: none;
}

.main-content .share-facebook:hover {
  background-color: #2d4373;
}

.main-content .share-twitter:hover {
  background-color: #2795e9;
}

.main-content .share-pinterest:hover {
  background-color: #8c0615;
}

.main-content .share-email:hover {
  background-color: #6a6a6a;
}

/* Post Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.post-tag {
  background-color: #3d5875;
  color: white;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 3px;
  text-decoration: none;
  border-bottom: none !important;
}

.main-content .post-tag {
  color: white;
}

.post-tag:hover {
  background-color: #2c4260 !important;
  color: white;
  text-decoration: none;
}

.main-content .post-tag:hover {
  background-color: #2c4260 !important;
  color: white;
}

/* Tags listing page */
.tags-page {
  padding: 20px 0;
}

.tag-page-heading,
.tags-index-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3d5875;
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.tags-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-section {
  margin-bottom: 48px;
}

.tag-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3d5875;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.tag-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tag-post-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.tag-post-image-link {
  display: block;
  border-bottom: none !important;
}

.tag-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.tag-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tag-post-card:hover .tag-post-image img {
  transform: scale(1.03);
}

.tag-post-body {
  padding: 16px;
}

.tag-post-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tag-post-title a {
  color: #3d5875;
  text-decoration: none;
  border-bottom: none !important;
}

.tag-post-title a:hover {
  text-decoration: underline;
  background-color: transparent !important;
}

.tag-post-excerpt {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.5;
}

.tag-post-btn {
  display: inline-block;
  background-color: #3d5875;
  color: white;
  padding: 8px 16px;
  border-radius: 3px;
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: none !important;
}

.main-content .tag-post-btn {
  color: white;
}

.tag-post-btn:hover {
  background-color: #2c4260 !important;
  color: white;
  text-decoration: none;
}

.main-content .tag-post-btn:hover {
  background-color: #2c4260 !important;
  color: white;
}

@media (max-width: 640px) {
  .tag-posts-grid {
    grid-template-columns: 1fr;
  }
}
/* Post Navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  gap: 20px;
}

.post-nav-prev,
.post-nav-next {
  display: flex;
  flex-direction: column;
  max-width: 48%;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

.post-nav-label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 4px;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3d5875;
  text-decoration: none;
  border-bottom: none !important;
}

.post-nav-title:hover {
  text-decoration: underline;
  background-color: transparent !important;
}

.code-view-container {
  background-color: #1e1e2e;
  padding: 8px;
  margin: 1.5em 0;
}

.code-view {
  margin: 8px;
  max-height: 400px;
  overflow: hidden;
  overflow-y: auto;
}

/* Code Snippet - dark editor-style panel with a single named tab */
.code-snippet {
  border-radius: 6px;
  background-color: #1e1e2e;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  margin: 1.5em 0;
}

.code-snippet-tabs {
  display: flex;
  background-color: #16161e;
  border-bottom: 1px solid #2a2a3d;
  border-radius: 6px 6px 0 0;
}

.code-snippet-tab {
  padding: 8px;
  color: #a0a0b8;
  font-size: 0.8125rem;
  cursor: default;
  border-right: 1px solid #2a2a3d;
  user-select: none;
  border-radius: 5px 0 0 0;
}
.code-snippet-tab.active {
  background-color: #e0fffd;
  color: #000000;
  border-top: 2px solid #89b4fa;
  padding-top: 6px;
}

.code-snippet-body {
  padding: 16px;
  overflow: auto;
  max-height: 420px;
  border-radius: 0 0 6px 6px;
}
.code-snippet-body figure.highlight {
  margin: 0;
}
.code-snippet-body pre {
  margin: 0;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: pre;
  font-size: inherit;
  line-height: 1.6;
}
.code-snippet-body code {
  background: transparent !important;
  padding: 0 !important;
  font-size: inherit;
}

/* Code Links */
.code-links {
  display: flex;
  gap: 24px;
  margin: 16px 0;
}

.code-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.code-link-btn,
a.code-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: #3d5875;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s;
}

.code-link-btn:hover,
a.code-link-btn:hover {
  background-color: #2c4254;
  color: white;
}

.code-link-label {
  font-size: 0.75rem;
  color: #555;
  text-align: center;
}

.main-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

/* Code blocks */
.main-content pre {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 1em 0;
  font-size: 0.9em;
  line-height: 1.5;
}

.main-content code {
  background-color: #f6f8fa;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
}

.main-content pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

/* p5 sketch alongside code block */
.p5-code-row {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  margin: 1em 0;
  width: 100%;
}
.p5-code-row > div:not(.p5-canvas) {
  flex: 1 1 0;
  min-width: 0;
}
.p5-code-row > div:not(.p5-canvas) pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  box-sizing: border-box;
}
.p5-code-row .p5-canvas {
  flex: 0 0 256px;
}
@media (max-width: 1024px) {
  .p5-code-row {
    flex-direction: column;
  }
  .p5-code-row > div:not(.p5-canvas) {
    width: 100%;
  }
}

.code-image-row {
  display: flex;
  gap: 1em;
  align-items: flex-start;
  margin: 1em 0;
  width: 100%;
}
.code-image-row > div:not(.code-image) {
  flex: 1 1 0;
  min-width: 0;
}
.code-image-row > div:not(.code-image) pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  box-sizing: border-box;
}
.code-image-row .code-image {
  flex: 0 0 256px;
}
.code-image-row .code-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1024px) {
  .code-image-row {
    flex-direction: column;
  }
  .code-image-row > div:not(.code-image) {
    width: 100%;
  }
  .code-image-row .code-image {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* Tables */
.table-scroll-wrapper {
  overflow-x: auto;
  margin: 1em 0;
}

.main-content table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.table-wrap-text table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.table-wrap-text table td {
  white-space: normal;
  word-wrap: break-word;
}

.table-first-col-60 table th:first-child,
.table-first-col-60 table td:first-child {
  width: 60px;
  text-align: center;
}

.table-first-col-120 table th:first-child,
.table-first-col-120 table td:first-child {
  width: 120px;
  text-align: left;
}

.table-first-col-150 table th:first-child,
.table-first-col-150 table td:first-child {
  width: 150px;
  text-align: left;
}

.table-first-col-240 table th:first-child,
.table-first-col-240 table td:first-child {
  width: 240px;
  text-align: left;
}

.main-content table th,
.main-content table td {
  border: 1px solid #e1e4e8;
  padding: 8px 12px;
  text-align: left;
}

.main-content table th {
  background-color: #f6f8fa;
  font-weight: 600;
}

/* Highlight colors */
.highlight-blue {
  color: blue;
  font-weight: 700;
}

.highlight-red {
  color: #f44336;
  font-weight: 700;
}

.highlight-green {
  color: #4CAF50;
  font-weight: 700;
}

.highlight-orange {
  color: #df5f10;
  font-weight: 500;
}

.highlight-grey {
  color: #84848f;
}

.highlight-yellow {
  color: #f8e53c;
  font-weight: 700;
}

.highlight-primary {
  color: #3d5875;
  font-weight: 600;
}

.mono {
  font-family: monospace;
}

.positive {
  color: #c0392b;
  font-weight: 700;
}

.negative {
  color: #1a1a1a;
  font-weight: 700;
}

.console {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  background-color: black;
  color: white;
  padding: 12px;
  margin: 1em 0;
  overflow-x: auto;
  white-space: pre;
}

.terminal {
  font-family: "Courier New", Courier, monospace;
  font-size: 10px;
  background-color: #f6f8fa;
  color: black;
  padding: 12px;
  margin: 1em 0;
  border: 1px solid #e1e4e8;
  overflow-x: auto;
  white-space: pre;
}

.equation {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  background-color: #fdfbd4;
  color: black;
  margin: 1em 0;
  border: 1px solid #eceac3;
  overflow-x: auto;
}

/* Highlight Sections */
.experiment-section,
.challenge-section,
.note-section,
.learn-section {
  padding: 16px;
  margin: 1.5em 0;
  border-left: 4px solid;
}

.experiment-section {
  background-color: #e3f2fd;
  border-left-color: #2196F3;
  color: #0d47a1;
}

.challenge-section {
  background-color: #fef5e7;
  border-left-color: #f39c12;
  color: #7d6608;
}

.note-section {
  background-color: #f3e5f5;
  border-left-color: #9c27b0;
  color: #6a1b9a;
}

.learn-section {
  background-color: #e8f5e9;
  border-left-color: #4CAF50;
  color: #1b5e20;
}

/* Draft Banner (development only) */
.draft-banner {
  background-color: #fff3cd;
  border: 2px dashed #e6a817;
  border-radius: 4px;
  color: #856404;
  font-weight: bold;
  margin-bottom: 1.5em;
  padding: 10px 16px;
  text-align: center;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background-color: #e8eef3;
  padding: 20px;
  border-radius: 4px;
}

.sidebar-section h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

.sidebar-section p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Sidebar List */
.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 8px;
}

.sidebar-list a {
  color: #3d5875;
  text-decoration: none;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #3d5875;
  color: white;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: #2c4254;
}

/* Coffee Button */
.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #3d5875;
  color: white;
  padding: 10px 20px 10px 10px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

.btn-coffee:hover {
  background-color: #2c4254;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 6px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.share-btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.share-btn svg path {
  fill: white;
}

.share-btn:hover {
  color: white;
  text-decoration: none;
}

.share-facebook {
  background-color: #3b5998;
}

.share-facebook:hover {
  background-color: #2d4373;
}

.share-twitter {
  background-color: #55acee;
}

.share-twitter:hover {
  background-color: #2795e9;
}

.share-pinterest {
  background-color: #bd081c;
}

.share-pinterest:hover {
  background-color: #8c0615;
}

.share-email {
  background-color: #888;
}

.share-email:hover {
  background-color: #6a6a6a;
}

.content-list {
  list-style: square;
  padding-left: 32px;
}

/* Footer */
.site-footer {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  margin-top: 40px;
}

.site-footer .wrapper {
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b8c1;
  transition: color 0.3s;
}

.footer-social .social-icon:hover {
  color: white;
}

.footer-social .social-icon svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #b0b8c1;
}

.footer-nav {
  display: flex;
  gap: 5px;
  font-size: 0.9rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: white;
}

.post-image-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  margin-bottom: 1rem;
}
.post-image-row .post-image {
  flex: 1;
  margin: 0;
}
.post-image-row .post-image img {
  width: 75%;
  height: auto;
}
.post-image-row > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.post-image-row > div p {
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-image-row > div p img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.post-image-row img {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  object-fit: contain;
}
.post-image-row p {
  flex: 1 1 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-image-row p img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .post-image-row {
    flex-direction: column;
  }
  .post-image-row > div {
    width: 100%;
    flex: unset;
  }
  .post-image-row img, .post-image-row p {
    width: 100%;
    flex: unset;
  }
}

.post-image-text-row {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1rem;
}
.post-image-text-row img {
  flex: 1;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.post-image-text-row .post-image-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 600px) {
  .post-image-text-row {
    flex-direction: column;
  }
}

.post-image {
  text-align: center;
  display: block;
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

.figure-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #7a8a9a;
}

.post-video {
  text-align: center;
  display: block;
  clear: both;
  margin-right: auto;
  margin-left: auto;
}
.post-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .site-header .wrapper {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .page-content .wrapper {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  .main-content {
    padding: 15px;
    overflow-x: hidden;
  }
  .table-scroll-wrapper {
    overflow-x: auto;
  }
  .code-snippet-body {
    overflow: auto;
  }
  .main-content pre {
    padding: 12px;
    font-size: 0.8em;
  }
  .site-title {
    font-size: 1.8rem;
  }
  .logo-circle {
    width: 100px;
    height: 100px;
  }
  .logo-text {
    font-size: 12px;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .site-header .wrapper {
    padding: 20px 20px;
  }
  .header-main {
    flex-direction: column;
    align-items: center;
  }
  .header-left {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .site-title-block {
    align-items: center;
    text-align: center;
  }
  .header-controls {
    display: flex;
    align-self: flex-end;
  }
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
  .logo-circle {
    width: 150px;
    height: 150px;
  }
  .logo-text {
    font-size: 20px;
  }
  .site-title {
    font-size: 1.5rem;
  }
  .site-description {
    font-size: 0.9rem;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .footer-left {
    align-items: center;
  }
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #3d5875;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: #2c4158;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top svg {
  transition: transform 0.2s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
/* ── Search Page ─────────────────────────────────────────── */
.search-page {
  max-width: 760px;
}

.search-page h1 {
  font-size: 2rem;
  color: #2c3e50;
  border-bottom: 2px solid #3d5875;
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.search-page-input-wrap {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border: 2px solid #3d5875;
  border-radius: 4px;
  overflow: hidden;
}

.search-page-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  border: none;
  outline: none;
  font-family: inherit;
  color: #333;
}

.search-page-btn {
  background-color: #3d5875;
  color: white;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.search-page-btn:hover {
  background-color: #2c4158;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-result {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid #e1e6ed;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.search-result-image-wrap {
  flex-shrink: 0;
}

.search-result-image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.search-result-body {
  flex: 1;
  min-width: 0;
}

.search-result:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.search-result h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.search-result h3 a {
  color: #3d5875;
  text-decoration: none;
  border-bottom: none;
}

.search-result h3 a:hover {
  text-decoration: underline;
  background-color: transparent;
}

.search-result-meta {
  font-size: 0.82rem;
  color: #7a8a9a;
  margin-bottom: 8px;
}

.search-result-excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin: 0;
}

.search-no-results {
  color: #7a8a9a;
  font-style: italic;
}

/*# sourceMappingURL=style.css.map */