/* ===================================================================
   SISTEM SUNYI — PANEL DIALEKTIKA 3 TAB (ss-ds-*)
   Clean Build v3.0 — versi rapi, tanpa duplikasi
   =================================================================== */

/* ------------------------------------------------------
   PANEL WRAPPER
------------------------------------------------------ */
.ss-ds-panel {
  margin: 24px 0 32px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #ffffff;
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  overflow: hidden;
}

/* ------------------------------------------------------
   TAB BAR
------------------------------------------------------ */
.ss-ds-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
}

.ss-ds-tab {
  flex: 1 1 auto;
  padding: 8px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 0;
  border-right: 1px solid #ededed;
  background: transparent;
  cursor: pointer;
  color: #666;
  text-align: center;
  white-space: nowrap;
}

.ss-ds-tab:last-child {
  border-right: none;
}

.ss-ds-tab:hover {
  background: #f3f3f3;
}

.ss-ds-tab.is-active {
  background: #fff;
  color: #111;
  font-weight: 600;
  border-bottom: 2px solid #111;
  margin-bottom: -1px; /* overlap border */
}

/* ------------------------------------------------------
   BODY / PANE
------------------------------------------------------ */
.ss-ds-body {
  padding: 18px 20px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
}

.ss-ds-pane {
  display: none;
  animation: ssDsFade 0.18s ease-out;
}

.ss-ds-pane.is-active {
  display: block;
}

@keyframes ssDsFade {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------
   SECTION STRUCTURE
------------------------------------------------------ */
.ss-ds-section {
  margin: 28px 0 36px;
}

.ss-ds-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 16.5px;
  font-weight: 600;
  margin: 0 0 6px;
}

.ss-ds-section-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin: 0 0 14px;
}

/* ------------------------------------------------------
   TAB 1 — Makna Inti
------------------------------------------------------ */
.ss-ds-tab1 p {
  margin-bottom: 18px;
  line-height: 1.68;
}

.ss-ds-analogy {
  font-style: italic;
  opacity: 0.95;
}

.ss-ds-mini {
  font-size: 13.5px;
  opacity: 0.9;
}

/* ------------------------------------------------------
   TAB 2 — Relasi & Konteks
------------------------------------------------------ */
.ss-ds-badge-row,
.ss-ds-badges,
.ss-ds-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.ss-ds-badge,
.ss-ds-chip {
  font-size: 12px;
  padding: 4px 8px;
  background: #f4f4f4;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  color: #555;
  white-space: nowrap;
}

/* Catatan lintas disiplin */
.ss-ds-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 22px;
  margin-top: 24px;
}

.ss-ds-note-block {
  font-size: 14.5px;
  line-height: 1.58;
}

.ss-ds-note-block strong {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
}

/* ------------------------------------------------------
   TAB 3 — Peta Sistem Sunyi
------------------------------------------------------ */
.ss-ds-bullet-list {
  list-style: none;
  padding-left: 20px;
  margin: 10px 0 28px;
}

.ss-ds-bullet-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;
  line-height: 1.62;
  font-size: 15px;
}

.ss-ds-bullet-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #222;
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 0;
  opacity: 0.8;
}

.ss-ds-param-row {
  margin: 10px 0;
  font-size: 13.5px;
  opacity: 0.85;
}

/* ------------------------------------------------------
   DARK MODE
------------------------------------------------------ */
body.ss-dark-mode .ss-ds-panel,
body[data-theme="dark"] .ss-ds-panel {
  background: #111;
  border-color: #333;
}

body.ss-dark-mode .ss-ds-tab,
body[data-theme="dark"] .ss-ds-tab {
  color: #bbb;
  border-right-color: #333;
}

body.ss-dark-mode .ss-ds-tab:hover,
body[data-theme="dark"] .ss-ds-tab:hover {
  background: #202020;
}

body.ss-dark-mode .ss-ds-tab.is-active,
body[data-theme="dark"] .ss-ds-tab.is-active {
  background: #111;
  color: #fff;
  border-bottom-color: #fff;
}

body.ss-dark-mode .ss-ds-body,
body[data-theme="dark"] .ss-ds-body {
  color: #eee;
}

body.ss-dark-mode .ss-ds-badge,
body[data-theme="dark"] .ss-ds-badge {
  border-color: #333;
  background: #1d1d1d;
  color: #ccc;
}



/* ------------------------------------------------------
   RESPONSIVE
------------------------------------------------------ */
@media (max-width: 640px) {
  .ss-ds-section {
    margin: 24px 0 30px;
  }

  .ss-ds-notes-grid {
    grid-template-columns: 1fr;
  }

  .ss-ds-bullet-list {
    padding-left: 16px;
  }
}

@media (min-width: 960px) {
  .ss-ds-notes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}