@charset "UTF-8";
/* stylelint-disable */
.post-toc::-webkit-scrollbar {
  width: 10px;
}

.post-toc::-webkit-scrollbar-track {
  background: transparent;
}

.post-toc::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

body[data-theme=dark] .post-toc::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.25);
}

/* 1. Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "Courier New", Courier, monospace;
  color: #222;
  background-color: #fffaf0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.post-content {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.mjx-container {
  overflow-x: auto;
  max-width: 100%;
}

.mjx-container svg {
  height: auto !important;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.container-wide {
  max-width: 1200px;
}

/* 2. Dark Mode Styles */
body[data-theme=dark] {
  background-color: #111;
  color: #e0e0e0;
}
body[data-theme=dark] .site-header {
  border-bottom-color: #333;
}
body[data-theme=dark] .site-header .site-title a {
  color: #e0e0e0;
}
body[data-theme=dark] .site-footer {
  color: #999;
  border-top-color: #333;
}
body[data-theme=dark] .post-list h3 a {
  color: #e0e0e0;
}
body[data-theme=dark] .post-list h3 a:hover {
  color: #ff8e8e;
}
body[data-theme=dark] .post-list .post-date {
  color: #999;
}
body[data-theme=dark] .home-intro p {
  color: #e0e0e0;
}
body[data-theme=dark] .site-content a {
  color: #ff8e8e;
}
body[data-theme=dark] .theme-toggle {
  color: #e0e0e0;
}
body[data-theme=dark] .tag-chip {
  border-color: rgba(255, 255, 255, 0.35);
}
body[data-theme=dark] {
  /* Dark mode table styles */
}
body[data-theme=dark] table {
  color: #e0e0e0;
}
body[data-theme=dark] th, body[data-theme=dark] td {
  border-bottom-color: #333;
}
body[data-theme=dark] thead th {
  border-bottom-color: #555;
}
body[data-theme=dark] .site-nav a {
  color: #e0e0e0;
}

.site-header {
  border-bottom: 1px solid #ddd;
  padding: 1rem 0;
  margin-bottom: 1rem;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header .site-title {
  margin: 0;
  font-weight: 600;
}
.site-header .site-title a {
  text-decoration: none;
  color: #222;
}

.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #222;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.theme-toggle:hover {
  opacity: 1;
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.theme-toggle .theme-label {
  display: none;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
  text-align: center;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover {
  color: #ff5b5b;
}

.home-intro {
  margin-bottom: 2rem;
}
.home-intro h2 {
  margin-top: 0;
  font-weight: 600;
}
.home-intro p {
  color: #444;
  line-height: 1.5;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  margin-bottom: 1.5rem;
}
.post-list h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.1;
}
.post-list h3 a {
  color: #222;
  text-decoration: none;
}
.post-list h3 a:hover {
  color: #ff5b5b;
}
.post-list .post-tags {
  margin: 0.12rem 0 0.65rem;
  position: relative;
  top: 0;
}
.post-list .post-date {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin: 0;
}

.site-content h2 {
  margin-top: 2rem;
}
.site-content h1, .site-content h2, .site-content h3, .site-content h4, .site-content h5, .site-content h6 {
  font-weight: 600;
  margin-top: 2.5em;
  margin-bottom: 1em;
}
.site-content h1 {
  font-size: 2.2rem;
}
.site-content h2 {
  font-size: 1.8rem;
}
.site-content h3 {
  font-size: 1.5rem;
}
.site-content h4 {
  font-size: 1.2rem;
}
.site-content p {
  line-height: 1.7;
  margin: 1rem 0;
}
.site-content a {
  color: #ff5b5b;
  text-decoration: none;
}
.site-content a:hover {
  text-decoration: underline;
}

/* 10. Post TOC Layout */
.post-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
}

.post-toc {
  grid-column: 1;
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

.post-content {
  grid-column: 2;
  min-width: 0;
}

.post-toc-panel {
  display: block;
  border-left: 3px solid #eee;
  padding: 0 0.5rem 0 1rem;
}

.post-toc-summary {
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  margin-bottom: 0.5rem;
}

.post-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-toc-panel[open] .post-toc-list {
  margin-top: 0.5rem;
}

.post-toc-list li {
  margin: 0.25rem 0;
  position: relative;
}

.post-toc-list li[data-level="3"] {
  margin-left: 0.75rem;
}

.post-toc-list li[data-level="4"] {
  margin-left: 1.5rem;
}

.post-toc a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 2px 0 2px 0.5rem;
  border-left: 2px solid transparent;
  border-radius: 3px;
  word-break: break-word;
  hyphens: auto;
}

.post-toc a:hover {
  text-decoration: underline;
}

.post-toc a.active {
  color: #ff5b5b;
  font-weight: 600;
  border-left-color: #ff5b5b;
  background: rgba(255, 91, 91, 0.12);
}

@media (max-width: 960px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-toc {
    display: none;
  }
  .post-content {
    grid-column: 1;
  }
}
/* 5. Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
}

thead th {
  font-weight: 600;
  border-bottom-width: 2px;
  border-bottom-color: #ccc;
}

tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 960px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
  }
}
pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 6. Image Styles */
.site-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 5px;
}

/* Mermaid diagrams */
.site-content .mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto;
}

.site-content .mermaid > svg {
  max-width: 100%;
  height: auto !important;
  width: auto !important;
}

/* 7. Post Styles */
.site-content h1.post-title {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 2rem;
}

.post-callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #f8f8f8;
  font-size: 0.95rem;
  line-height: 1.6;
}
.post-callout p:first-child {
  margin-top: 0;
}
.post-callout p:last-child {
  margin-bottom: 0;
}
.post-callout ul {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
}

.post-callout.warning {
  border-color: rgba(214, 70, 70, 0.35);
  background: rgba(214, 70, 70, 0.08);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.35rem;
}

.post-tags-header {
  margin: 0.5rem 0 0.3rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: inherit;
  line-height: 1.1;
}

/* 8. Bibliography Styles */
.bibliography-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
}

.bibliography {
  list-style: none;
  padding: 0;
  margin: 0;
}

body[data-theme=dark] .bibliography-container {
  border-top-color: #333;
}

body[data-theme=dark] .post-callout {
  border-color: #333;
  background: rgba(255, 255, 255, 0.04);
}

body[data-theme=dark] .post-callout.warning {
  border-color: rgba(255, 115, 115, 0.45);
  background: rgba(255, 115, 115, 0.14);
}

/* 9. Expandable Cards */
details.card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  margin: 1.25rem 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body[data-theme=dark] details.card {
  border-color: #333;
  background: #121212;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

summary.card-summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Hide default marker */
summary.card-summary::-webkit-details-marker {
  display: none;
}

summary.card-summary::marker {
  content: "";
}

/* Custom chevron */
summary.card-summary::before {
  content: "▸";
  display: inline-block;
  transform-origin: center;
  transition: transform 0.2s ease;
  margin-top: 0.2rem;
  color: #ff5b5b;
}

details.card[open] > summary.card-summary::before {
  transform: rotate(90deg);
}

summary.card-summary h3 {
  margin: 0;
  font-size: 1.2rem;
}

summary.card-summary .card-desc {
  margin: 0.2rem 0 0 0;
  color: #666;
  font-size: 0.95rem;
}

body[data-theme=dark] summary.card-summary .card-desc {
  color: #aaa;
}

details.card .card-body {
  padding: 0 1.25rem 1rem 1.25rem;
  border-top: 1px solid #f0f0f0;
}

body[data-theme=dark] details.card .card-body {
  border-top-color: #222;
}

details.card:hover {
  border-color: #fff4f4;
}

/* 11. Side-by-side figures */
figure.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

figure.figure-pair img {
  margin: 0;
  width: 100%;
}

figure.figure-pair figcaption {
  grid-column: 1/-1;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  figure.figure-pair {
    grid-template-columns: 1fr;
  }
}

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