@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #F5F5F5;
  background-color: #20201D;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: inherit;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
}
h2 {
  font-size: 2rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}
h3 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin: 0.25rem 0;
}
.main-heading {
  text-align: center;
  border-bottom: 1px solid gray;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
}
p {
  margin: 0.75rem 0;
}
ul {
  list-style-type: disc;
}
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  text-align: left;
  list-style-type: disc;
}
.tall-lines {
  line-height: 37px;
}
.italic-bold {
  color: gray;
  font-style: italic;
  font-weight: bold;
}
.section-spacing {
  padding-top: 1.6rem;
}
code {
  background: #242429;
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}
details summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: normal;
  margin-top: 10px;
  list-style: none;
}
details[open] summary {
  color: #4CAF50;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
th, td {
  border: 1px solid #30363d;
  padding: 0.5em;
  text-align: left;
}
th {
  background-color: #21262d;
}
td {
  background-color: #161b22;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.side-content {
  max-width: 1000px;
  padding-left: 15rem;
  padding-top: 0.5rem;
}
.brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding-left: 3rem;
  margin-top: 1.5rem;
}
.home-link {
  font-size: 2.5rem;
  font-weight: 1;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.home-link::after {
  content: "   -   /root ツ";
  opacity: 0;
  margin-left: 8px;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  color: #888;
  white-space: nowrap;
}
.home-link:hover::after {
  opacity: 1;
}
.home-link:hover,
.home-link:focus,
.home-link:active {
  color: #ffffff;
  transform: translateY(-2px);
}
.back-button {
  font-size: 1.6rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding-bottom: 0.5rem;
}
.back-button:hover,
.back-button:focus,
.back-button:active {
  color: #ffffff;
  transform: translateY(-2px);
}
img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}
.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0rem 0;
}
.caption {
  color: gray;
  font-size: 1.2rem;
  text-align: left;
}
.footer {
  text-align: center;
  padding-top: 3rem;
}
.signature {
  font-style: italic;
  font-size: 0.9em;
  color: gray;
}
.steps pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  overflow-x: auto;
}
.combined {
  margin-top: 0.5rem;
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  font-weight: bold;
  background: #272727;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
}
.code-box {
  display: inline-block;
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 0.7rem 5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  line-height: 1;
  border: 2px solid #333;
  white-space: pre;
}
.toc {
  position: absolute;
  top: 25px;
  left: calc(49% - 350px - 2rem - 220px);
  width: 230px;
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #f5f5f5;
  z-index: 2;
}
.blog-wrapper {
  position: relative;
}
.toc h2 {
  margin-top: 0;
  font-size: 1rem;
  color: #ccc;
}
.toc a {
  text-decoration: none;
  color: #B5B5B5;
}
.toc a:hover {
  text-decoration: none;
  color: #fff;
}
.toc ol {
  padding-left: 1.2rem;
}
.layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.post-date {
  font-family: 'Geist Mono', monospace;
  font-size: 1rem;
  font-style: italic;
  color: gray;
  text-align: left;
  margin-bottom: 12px;
  margin-left: 0px;
}
.toc details {
  margin-bottom: 0.6rem;
}
.toc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0.35rem 0.3rem;
  border-radius: 4px;
  font-weight: normal;
  line-height: 1.2;
  whitespace: normal;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::before {
  content: "▸";
  margin-right: 0.5rem;
  transition: transform 0.2s;
}
.toc details[open] summary::before {
  transform: rotate(90deg);
}
.toc summary:hover {
  background: rgba(0, 0, 0, 0.05);
}
.toc ol li a {
  display: block;
  padding: 0.25rem 0;
  line-height: 1.6;
  text-decoration: none;
  color: inherit;
}
.toc ol li a:hover {
  text-decoration: underline;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizedLegibility;
}
.component-list {
  list-style-type: disc;
  margin: 0;
  padding-left: 1.2rem;
}
.component-list > li {
  margin-bottom: 1.2rem;
}
.component-title {
  font-weight: bold;
  display: inline;
}
.component-title .caption {
  font-weight: normal;
  font-style: normal;
  color: #666;
  margin-left: 0.25rem;
}
.detail-list {
  list-style-type: disc;
  margin: 0.7rem 0 0 1.5rem;
  padding-left: 1rem;
}
.detail-list li {
  font-weight: normal;
  margin-bottom: 0.25rem;
}
.lined {
  display: inline-block;
  position: relative;
  padding-bottom: 11px;
}
.lined::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% + 10px);
  height: 1px;
  background: #444;
}
.section-with-images {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.section-text {
  flex: 3;
}
.section-images {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.section-images img {
  width: 100%;
  border-radius: 0rem;
}
.section-images figcaption {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-top: 0.5rem;
}
.section-images figure {
  margin: 0;
}
.section-images img[src*="img1.png"] {
  width: 130px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.section-images img[src*="img2.png"] {
  width: 285px;
  max-width: 400px;
  height: 170px;
  margin: 0 auto;
}
html, body {
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
.repo-link {
   margin-left: auto;
   font-family: 'Geist Mono', monospace;
   font-size: 1rem;
   text-decoration: none;
   display: inline-block;
   white-space: nowrap;
   position: relative;
   top: -4px;
}
 .repo-link:hover {
   color: #ffffff;
   text-decoration: underline;
 }
.meta-bar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 1.3rem;
   margin-bottom: 0rem;
 }
.callout.fun-fact{
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  padding: 0.6rem 1rem;
  margin: 0.8rem 0;
  border-radius: 6px;
  font-size: 0.95rem;
}
.callout.fun-fact strong{margin-right:0.3rem;}
@media (max-width: 800px) {
  html,body{
    max-width:100%;
    overflow-x:hidden;
    font-size:1rem;
  }
  .container{
    padding:0 1rem;
    width:100%;
  }
  .toc{
    position:static;
    width:90%;
    margin:1rem auto 2rem auto;
  }
  .brand-column{
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
    padding:1rem 1.5rem;
    margin-top:0;
  }
  .home-link{font-size:1.8rem;}
  .back-button{font-size:1.2rem;padding-bottom:0;}
 .meta-bar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: -0.3rem;
   margin-bottom: 1.5rem;
   width: 100%;
 }
 .meta-bar .post-date {
   font-size: 0.95rem;
   text-align: left;
 }
 .meta-bar .repo-link {
   font-size: 0.95rem;
   text-align: right;
   margin-left: auto;
 }
  .section-with-images{
    flex-direction:column !important;
    align-items:center !important;
    gap:1rem;
  }
  .section-with-images > div{
    position:static !important;
    top:auto !important;
    left:auto !important;
    transform:none !important;
    width:100% !important;
    margin:0 auto !important;
  }
  .section-with-images img{
    display:block;
    max-width:100% !important;
    width:100% !important;
    height:auto !important;
    margin:0 auto !important;
  }
  .section-with-images .section-text,
  .section-with-images .section-text p{
    width:100% !important;
    max-width:100% !important;
    font-size:1rem !important;
    line-height:1.6 !important;
  }
  ul,ol{white-space:normal;word-break:normal;}
  .bullet-list,.detail-list{
    padding-left:1.2rem;
    margin:0.4rem 0 1rem 0;
    line-height:1.6;
  }
  h1{font-size:1.9rem;}
  h2{font-size:1.5rem;}
  h3{font-size:1.3rem;}
  .signature{text-align:center;padding-bottom:1rem;font-size:.85rem;}
}
@media (max-width: 800px) {
  .brand-column {
    justify-content: center;
    gap: 0.4rem;
  }
  .brand-column .home-link {
    margin-right: auto;
  }
  .brand-column .back-button {
    margin: 0 0.3rem;
  }
  .section-images img[src*="img1.png"] {
    width: 90px !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}
