/* ===== Global Reset and Base ===== */
html, body {
  font-family: 'Inter', sans-serif;
  margin: 0 auto;
  padding: 5px;
  padding-top: 40px;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ===== Table Styling ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.6;
  color: #24292e;
  background-color: #fff;
  margin: 1em 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

thead {
  background-color: #f6f8fa;
}

th, td {
  border: 1px solid #d0d7de;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  font-weight: 600;
  white-space: nowrap;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

td code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  background: #f6f8fa;
  padding: 2px 4px;
  border-radius: 4px;
}

/* ===== Typography ===== */
p, li {
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: #24292f;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #ff5000;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  height: 40px;
}

.nav-brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-button svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}

/* ===== TOC Button and Box ===== */
#toc-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ff5000;
  color: white;
  border-radius: 10%;
  padding: 6px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#toc-box {
  position: fixed;
  bottom: 70px;
  left: 20px;
  background: #ff5000;
  color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  width: 260px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 9998;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#toc-box a {
  display: block;
  color: #fff;
  margin: 4px 0;
}

#toc-box a:hover {
  text-decoration: underline;
}

#toc-box ul {
  padding-left: 1em;
  margin: 0;
}

/* ===== Menu Panel ===== */
#menuPanel {
  display: none;
  background: #fff;
  border-top: 1px solid #ddd;
  width: 100%;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 998;
}

#menuPanel ul {
  margin: 0;
  padding: 0.5rem 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#menuPanel a {
  color: #222;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.95rem;
  display: block;
}

#menuPanel a:hover {
  background: #f2f2f2;
}

/* ===== Back to Top Button ===== */
#btt-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff5000;
  border-radius: 10%;
  padding: 4px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

#btt-button:hover {
  background: #c2185b;
}

#btt-button svg {
  width: 20px;
  height: 20px;
}

/* ===== Code Block ===== */
pre[class*="language-"] {
  background: #1e1e1e;
  color: #dcdcdc;
  border-radius: 8px;
  padding: 1em;
  overflow: auto;
  font-size: 0.6em;
  margin: 2em 0;
  max-width: 100%;
  position: relative;
  font-family: 'Fira Code', 'Courier New', monospace;
  box-shadow: 0 0 0 1px #333, 0 4px 12px rgba(0, 0, 0, 0.4);
}

.copy-btn {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 5px 10px;
  font-size: 0.9em;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  z-index: 10;
}

.copy-btn:hover {
  opacity: 1;
}

pre::-webkit-scrollbar {
  height: 8px;
}

pre::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

/* ===== Disqus ===== */
.disqus-wrapper {
  max-width: 720px;
  margin: 60px auto 40px;
  padding: 0 16px;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

#disqus_thread {
  margin-top: 30px;
  min-height: 320px;
}

/* ===== Gallery ===== */
#indrixFooterGallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
figure {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  cursor: pointer;
}

figure h3 {
  font-size: 1rem;
  font-weight: bold;
  padding: 0.5rem;
  margin: 0;
}

.indrixLabels {
  padding: 0.5rem;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.indrixLabels span {
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ===== Pagination ===== */
.pagination {
  text-align: center;
  margin: 2rem 0 1rem;
}

.pagination button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 0.5rem;
}

/* ===== Sitemap ===== */
.sitemap-container {
  max-width: 768px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
}

.series {
  margin-bottom: 2rem;
}

.series-header {
  font-weight: 600;
  font-size: 16px;
  color: #24292f;
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
  border-left: 4px solid #0969da;
  background-color: #f6f8fa;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
}

.series-content {
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 1.25rem;
}

.series-content a {
  position: relative;
  color: #0969da;
  padding-left: 1.5rem;
  font-size: 14px;
  line-height: 1.5;
}

.series-content a::before {
  counter-increment: item;
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: #57606a;
  font-weight: 500;
}

.series-content a:hover {
  text-decoration: underline;
  background-color: #f6f8fa;
  border-radius: 4px;
}

/* ===== Responsive Media Queries ===== */
@media (min-width: 700px) {
  #menuToggle {
    display: none;
  }

  #menuPanel {
    display: flex !important;
    justify-content: flex-end;
    position: static;
    border-top: none;
  }

  #menuPanel ul {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  #menuPanel a {
    padding: 0.4rem 0.75rem;
  }
}

@media (max-width: 600px) {
  table {
    font-size: 14px;
  }

  figure {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .sitemap-container {
    padding: 0.75rem;
  }

  .series-header {
    font-size: 15px;
  }

  .series-content a {
    font-size: 13.5px;
  }
}
.spo {
  position: fixed;
  top: 0;
  left: 100%;
  width: 100vw;
  height: 100vh;
  background: #00000f;
  overflow-y: auto;
  z-index: 9999;
  padding: 10px;
  box-sizing: border-box;
}

/* Gaya grid ringan tanpa efek berat */
  .photo-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  .photo-box {
    border: 1px solid #ddd;
    padding: 8px;
    background: #fafafa;
  }
  .photo-box h3 {
    font-size: 14px;
    margin: 8px 0 0;
    text-align: center;
  }
  .photo-box h3 a {
    text-decoration: none;
    color: #222;
  }

