/*
============================================================
SISTEM EDITORIAL DIALEKTIKA SUNYI v1.0.1
UNIFIED READING SYSTEM
============================================================

Components:
1. Editorial Essay foundation (light-only)
2. Main Introduction visual surface (light-only)
3. Peta Pendamping I–III editorial reading system
4. Peta Pendamping scoped dark mode

Isolation contract:
- .ss-editorial-essay never receives a dark-mode layer here.
- .ss-peta-map owns its own dark-mode variables and selectors.
- ss-tabel-lorong-kata-clean-final.css is intentionally not included or modified.
- Existing Peta I–III baseline is preserved.
============================================================
*/

/*
 * Sistem Sunyi Editorial Essay Layout v1.0.3
 * Reusable Premium Article Structure + KBDS Term Family Integration
 * Canonical Horizontal Scroll Table + Mobile Card Removal + Action Divider Cleanup + Light-Only Post Article
 * Scope utama: .td-post-content .ss-editorial-essay
 */

/* =========================================================
   01. LOCAL CONTAINMENT
   ========================================================= */

.td-post-content .ss-editorial-essay,
.td-post-content .ss-editorial-essay *,
.td-post-content .ss-editorial-essay *::before,
.td-post-content .ss-editorial-essay *::after {
  box-sizing: border-box;
}

.td-post-content .ss-editorial-essay {
  --sse-text: #282b2e;
  --sse-muted: #686f75;
  --sse-heading: #171a1d;
  --sse-accent: #8a6b3f;
  --sse-accent-soft: rgba(138, 107, 63, 0.12);
  --sse-line: rgba(30, 34, 38, 0.13);
  --sse-surface: #f7f6f2;
  --sse-surface-strong: #efede6;
  --sse-table-bg: #ffffff;
  --sse-radius: 18px;

  max-width: 100%;
  color: var(--sse-text);
  font-size: clamp(17px, 1.18vw, 19px);
  line-height: 1.82;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.td-post-content .ss-editorial-essay .ss-editorial-prose {
  width: min(100%, 780px);
  margin-inline: auto;
}

.td-post-content .ss-editorial-essay p {
  margin: 0 0 1.35em;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* =========================================================
   02. EDITORIAL HEADING RHYTHM
   ========================================================= */

.td-post-content .ss-editorial-essay h2,
.td-post-content .ss-editorial-essay h3,
.td-post-content .ss-editorial-essay h4 {
  clear: both;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: 0;
  color: var(--sse-heading);
  font-style: normal;
  text-transform: none;
  text-wrap: balance;
}

.td-post-content .ss-editorial-essay h2 {
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  margin-bottom: 1.15rem;
  padding-top: 1.2rem;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -0.025em;
}

.td-post-content .ss-editorial-essay h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--sse-accent);
}

.td-post-content .ss-editorial-essay h3 {
  margin-top: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.8rem;
  font-size: clamp(22px, 2.35vw, 29px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.td-post-content .ss-editorial-essay h4 {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0.7rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sse-accent);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* =========================================================
   03. INTRO AND EDITORIAL NOTES
   ========================================================= */

.td-post-content .ss-editorial-essay .ss-editorial-intro {
  margin: 0 0 clamp(3rem, 7vw, 5.5rem);
}

.td-post-content .ss-editorial-essay .ss-editorial-lead {
  margin-bottom: 1.6rem;
  color: var(--sse-heading);
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.018em;
}

.td-post-content .ss-editorial-essay .ss-editorial-note {
  margin: 2rem 0 2.3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--sse-line);
  border-radius: var(--sse-radius);
  background: var(--sse-surface);
  box-shadow: none;
}

.td-post-content .ss-editorial-essay .ss-editorial-note p:last-child {
  margin-bottom: 0;
}

.td-post-content .ss-editorial-essay .ss-editorial-note-label,
.td-post-content .ss-editorial-essay .ss-editorial-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--sse-accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.td-post-content .ss-editorial-essay .ss-editorial-note--clarity {
  border-left: 4px solid var(--sse-accent);
}

.td-post-content .ss-editorial-essay .ss-editorial-note--boundary {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--sse-surface-strong);
}

.td-post-content .ss-editorial-essay .ss-editorial-note--boundary h3 {
  margin-top: 0;
}

/* =========================================================
   04. TERM LINKS
   ========================================================= */

.td-post-content .ss-editorial-essay a.ss-editorial-term-link {
  color: inherit;
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: rgba(138, 107, 63, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.td-post-content .ss-editorial-essay a.ss-editorial-term-link:hover,
.td-post-content .ss-editorial-essay a.ss-editorial-term-link:focus-visible {
  color: var(--sse-accent);
  text-decoration-color: currentColor;
}

/* =========================================================
   05. TERM FAMILY SHELL
   ========================================================= */

.td-post-content .ss-editorial-essay .ss-editorial-term-family {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  margin: clamp(4rem, 8vw, 7rem) 50%;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  transform: translateX(-50%);
  border: 1px solid var(--sse-line);
  border-radius: 24px;
  background: var(--sse-surface);
}

.td-post-content .ss-editorial-essay .ss-editorial-section-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.td-post-content .ss-editorial-essay .ss-editorial-section-head h2 {
  margin-top: 0;
  padding-top: 0;
}

.td-post-content .ss-editorial-essay .ss-editorial-section-head h2::before {
  display: none;
}

.td-post-content .ss-editorial-essay .ss-editorial-section-head p {
  margin-bottom: 0;
  color: var(--sse-muted);
}

/* =========================================================
   06. CANONICAL HORIZONTAL-SCROLL TABLE
   Tabel tetap tabel pada semua breakpoint. Tidak ada card mode.
   ========================================================= */

.td-post-content .ss-editorial-essay .ss-editorial-table-wrap {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-inline: contain !important;
  border: 1px solid var(--sse-line) !important;
  border-radius: 16px !important;
  background: var(--sse-table-bg) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 107, 63, 0.48) transparent;
}

/* Jangan warisi aksen garis/pseudo-element dari wrapper tabel lain. */
.td-post-content .ss-editorial-essay .ss-editorial-table-wrap::before,
.td-post-content .ss-editorial-essay .ss-editorial-table-wrap::after {
  content: none !important;
  display: none !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.td-post-content .ss-editorial-essay .ss-editorial-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.td-post-content .ss-editorial-essay .ss-editorial-table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(138, 107, 63, 0.48);
}

.td-post-content .ss-editorial-essay table.ss-editorial-term-table {
  display: table !important;
  width: 100% !important;
  min-width: 920px !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: transparent !important;
  color: var(--sse-text) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table thead {
  display: table-header-group !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table tbody {
  display: table-row-group !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table tr {
  display: table-row !important;
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table th,
.td-post-content .ss-editorial-essay .ss-editorial-term-table td {
  display: table-cell !important;
  float: none !important;
  width: auto;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--sse-line) !important;
  border-bottom: 1px solid var(--sse-line) !important;
  background: transparent !important;
  color: inherit !important;
  text-align: left !important;
  vertical-align: top !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table th:last-child,
.td-post-content .ss-editorial-essay .ss-editorial-term-table td:last-child {
  border-right: 0 !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table th {
  background: var(--sse-surface-strong) !important;
  color: var(--sse-heading) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table th:nth-child(1),
.td-post-content .ss-editorial-essay .ss-editorial-term-table td:nth-child(1) {
  width: 22% !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table th:nth-child(2),
.td-post-content .ss-editorial-essay .ss-editorial-term-table td:nth-child(2) {
  width: 47% !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table th:nth-child(3),
.td-post-content .ss-editorial-essay .ss-editorial-term-table td:nth-child(3) {
  width: 31% !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-table p {
  margin: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-name {
  font-size: 16px;
  line-height: 1.4;
}

/* =========================================================
   07. SIX KBDS ACTIONS
   Bersihkan divider/pseudo-element Newspaper pada action row.
   ========================================================= */

.td-post-content .ss-editorial-essay .ss-editorial-term-actions,
.td-post-content .ss-editorial-essay .ss-editorial-term-actions.ss-ds-kbd-card-actions {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(6, 34px) !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 7px !important;
  width: max-content !important;
  max-width: none !important;
  min-width: 239px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-actions::before,
.td-post-content .ss-editorial-essay .ss-editorial-term-actions::after,
.td-post-content .ss-editorial-essay .ss-editorial-term-actions.ss-ds-kbd-card-actions::before,
.td-post-content .ss-editorial-essay .ss-editorial-term-actions.ss-ds-kbd-card-actions::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-actions .ss-ds-kbd-card-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--sse-line) !important;
  border-radius: 9px !important;
  background: var(--sse-table-bg) !important;
  color: var(--sse-heading) !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.td-post-content .ss-editorial-essay .ss-editorial-term-actions .ss-ds-kbd-card-action:hover,
.td-post-content .ss-editorial-essay .ss-editorial-term-actions .ss-ds-kbd-card-action:focus-visible {
  border-color: var(--sse-accent) !important;
  background: var(--sse-accent-soft) !important;
  color: var(--sse-accent) !important;
  transform: translateY(-1px);
  outline: none !important;
}

.td-post-content .ss-editorial-essay .ss-editorial-note-legend,
.td-post-content .ss-editorial-essay .ss-editorial-family-disclaimer {
  margin: 1rem 0 0;
  color: var(--sse-muted);
  font-size: 13px;
  line-height: 1.6;
}

.td-post-content .ss-editorial-essay .ss-editorial-family-disclaimer {
  padding-top: 1rem;
  border-top: 1px solid var(--sse-line);
}

/* =========================================================
   08. TABLET AND MOBILE
   Tetap horizontal-scroll; tidak ada transformasi menjadi kartu.
   ========================================================= */

@media (max-width: 1100px) {
  .td-post-content .ss-editorial-essay table.ss-editorial-term-table {
    min-width: 900px !important;
  }

  .td-post-content .ss-editorial-essay .ss-editorial-term-table th,
  .td-post-content .ss-editorial-essay .ss-editorial-term-table td {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

@media (max-width: 767px) {
  .td-post-content .ss-editorial-essay {
    font-size: 17px;
    line-height: 1.76;
  }

  .td-post-content .ss-editorial-essay h2 {
    margin-top: 3.8rem;
    font-size: 29px;
  }

  .td-post-content .ss-editorial-essay h3 {
    font-size: 23px;
  }

  .td-post-content .ss-editorial-essay h4 {
    font-size: 20px;
  }

  .td-post-content .ss-editorial-essay .ss-editorial-term-family {
    width: calc(100vw - 24px);
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding: 14px;
    border-radius: 18px;
  }

  .td-post-content .ss-editorial-essay .ss-editorial-table-wrap {
    border-radius: 14px !important;
  }

  .td-post-content .ss-editorial-essay table.ss-editorial-term-table {
    min-width: 900px !important;
    font-size: 14px !important;
  }

  .td-post-content .ss-editorial-essay .ss-editorial-term-table th,
  .td-post-content .ss-editorial-essay .ss-editorial-term-table td {
    padding: 12px 11px !important;
  }

  .td-post-content .ss-editorial-essay .ss-editorial-term-table th {
    font-size: 11px !important;
  }
}

/* =========================================================
   09. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .td-post-content .ss-editorial-essay a.ss-editorial-term-link,
  .td-post-content .ss-editorial-essay .ss-editorial-term-actions .ss-ds-kbd-card-action {
    transition: none !important;
  }
}


/* =========================================================
   07A. INTEGRATED PETA BASELINE
   The production darkmode-fix baseline is preserved verbatim.
   ========================================================= */

/*
============================================================
SISTEM SUNYI
PETA PENDAMPING DIALEKTIKA SUNYI I–III
EDITORIAL READING SYSTEM v1.0
============================================================

Purpose:
- Dedicated visual system for Peta Pendamping I–III.
- Replaces horizontal table reading with vertical editorial reading.
- Preserves the visual DNA of ss-tabel-lorong-kata-clean-final.css.
- Does NOT modify or depend on the generic Lorong Kata table CSS.

Canonical variants:
  .ss-peta-map--tradisi
  .ss-peta-map--pengalaman
  .ss-peta-map--pendalaman

Important:
This stylesheet is intentionally isolated under .ss-peta-map.
============================================================
*/

/* =========================================================
   01. TOKENS
   ========================================================= */

.ss-peta-map {
  --ss-peta-bg: #f8f3ea;
  --ss-peta-text: #182235;
  --ss-peta-soft: rgba(24, 34, 53, .58);
  --ss-peta-line: rgba(24, 34, 53, .105);
  --ss-peta-line-strong: rgba(24, 34, 53, .16);
  --ss-peta-cell-line: rgba(24, 34, 53, .055);

  --ss-peta-gold: #9a6f35;
  --ss-peta-gold-strong: #7d5526;
  --ss-peta-gold-soft: rgba(154, 111, 53, .105);
  --ss-peta-gold-line: rgba(154, 111, 53, .32);

  --ss-peta-blue-soft: rgba(49, 72, 98, .085);
  --ss-peta-red: #a71d1d;

  --ss-peta-row-soft: rgba(255, 255, 255, .42);
  --ss-peta-surface-gradient:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38));
  --ss-peta-shadow: 0 18px 48px rgba(24, 34, 52, .10);
  --ss-peta-radius: 18px;

  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 24px 0 30px;
  box-sizing: border-box;

  overflow: hidden;
  border: 1px solid var(--ss-peta-line);
  border-radius: var(--ss-peta-radius);

  background:
    radial-gradient(circle at 10% 0%, var(--ss-peta-gold-soft), transparent 34%),
    radial-gradient(circle at 92% 10%, var(--ss-peta-blue-soft), transparent 38%),
    var(--ss-peta-surface-gradient),
    var(--ss-peta-bg);

  color: var(--ss-peta-text);
  box-shadow: var(--ss-peta-shadow);

  font-family: Inter, "Lato", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

.ss-peta-map *,
.ss-peta-map *::before,
.ss-peta-map *::after {
  box-sizing: border-box;
}

/* =========================================================
   02. DARK MODE
   Mirrors the established Lorong Kata table visual language.
   ========================================================= */

:is(
  html.ss-darkmode,
  body.ss-darkmode,
  body.ss-dark-mode,
  body.dark-sunyi,
  body[data-theme="dark"]
) .ss-peta-map {
  --ss-peta-bg: #07111d;
  --ss-peta-text: rgba(244, 239, 230, .88);
  --ss-peta-soft: rgba(244, 239, 230, .52);
  --ss-peta-line: rgba(255, 255, 255, .105);
  --ss-peta-line-strong: rgba(255, 255, 255, .16);
  --ss-peta-cell-line: rgba(255, 255, 255, .055);

  --ss-peta-gold: #caa766;
  --ss-peta-gold-strong: #e6c982;
  --ss-peta-gold-soft: rgba(202, 167, 102, .115);
  --ss-peta-gold-line: rgba(230, 201, 130, .40);

  --ss-peta-blue-soft: rgba(145, 171, 196, .105);
  --ss-peta-red: #e6a0a0;

  --ss-peta-row-soft: rgba(255, 255, 255, .035);
  --ss-peta-surface-gradient:
    linear-gradient(145deg, rgba(16, 31, 50, .72), rgba(7, 17, 29, .94));
  --ss-peta-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

/* =========================================================
   03. TOP EDGE
   Retains the subtle gold visual cue from the table wrapper.
   ========================================================= */

.ss-peta-map::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ss-peta-gold),
    transparent
  );
  opacity: .72;
  pointer-events: none;
}

/* =========================================================
   04. ENTRY
   Continuous editorial sequence, not a dashboard of cards.
   ========================================================= */

.ss-peta-entry {
  position: relative;
  margin: 0;
  padding: 30px 30px 32px;
  border-bottom: 1px solid var(--ss-peta-line);
}

.ss-peta-entry:last-child {
  border-bottom: 0;
}

/* Slight tonal rhythm without creating separate cards. */
.ss-peta-entry:nth-child(even) {
  background: var(--ss-peta-row-soft);
}

/* =========================================================
   05. ENTRY HEADING
   ========================================================= */

.ss-peta-entry-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 25px;
}

.ss-peta-entry-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  min-height: 42px;
  margin-top: 1px;

  border: 1px solid var(--ss-peta-gold-line);
  border-radius: 10px;

  color: var(--ss-peta-gold-strong);
  background: var(--ss-peta-gold-soft);

  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .075em;
}

.ss-peta-entry-heading h3 {
  margin: 0 !important;
  padding: 0 !important;

  color: var(--ss-peta-text) !important;

  font-family: Inter, "Lato", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(20px, 2.1vw, 27px) !important;
  line-height: 1.28 !important;
  font-weight: 800 !important;
  letter-spacing: -.012em !important;
}

/* Theme isolation: Newspaper/TagDiv applies explicit colors to heading anchors.
   The Peta heading is a navigational link and must retain the Peta gold. */
.ss-peta-map .ss-peta-entry-heading h3 a,
.ss-peta-map .ss-peta-entry-heading h3 a:link,
.ss-peta-map .ss-peta-entry-heading h3 a:visited {
  color: var(--ss-peta-gold-strong) !important;
  font: inherit !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ss-peta-map .ss-peta-entry-heading h3 a:hover,
.ss-peta-map .ss-peta-entry-heading h3 a:focus-visible {
  color: var(--ss-peta-red) !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* =========================================================
   06. FIELDS
   The former table columns become sequential editorial fields.
   ========================================================= */

.ss-peta-field {
  position: relative;
  margin: 0;
  padding: 0 0 22px;
}

.ss-peta-field + .ss-peta-field {
  padding-top: 21px;
  border-top: 1px solid var(--ss-peta-cell-line);
}

.ss-peta-field:last-child {
  padding-bottom: 0;
}

.ss-peta-field-label {
  margin: 0 0 8px !important;
  padding: 0 !important;

  color: var(--ss-peta-gold-strong) !important;

  font-family: Inter, "Lato", system-ui, sans-serif !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 850 !important;
  letter-spacing: .085em !important;
  text-transform: uppercase !important;
}

.ss-peta-field-content {
  max-width: 940px;
  margin: 0;
  color: var(--ss-peta-text);
  font-size: 15px;
  line-height: 1.62;
}

.ss-peta-field-content > :first-child {
  margin-top: 0 !important;
}

.ss-peta-field-content > :last-child {
  margin-bottom: 0 !important;
}

.ss-peta-field-content p {
  margin: 0 0 12px;
}

.ss-peta-field-content p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   07. LINKS
   Same gold / red refinement as the established table CSS.
   ========================================================= */

.ss-peta-map a.ss-editorial-tradition-link,
.ss-peta-map .ss-peta-field-content a {
  color: var(--ss-peta-gold-strong) !important;
  border-bottom: 1px solid var(--ss-peta-gold-line) !important;

  text-decoration: none !important;
  font-weight: 800 !important;

  transition:
    color .18s ease,
    border-color .18s ease,
    opacity .18s ease;
}

.ss-peta-map a.ss-editorial-tradition-link:hover,
.ss-peta-map .ss-peta-field-content a:hover {
  color: var(--ss-peta-red) !important;
  border-bottom-color: var(--ss-peta-red) !important;
  text-decoration: none !important;
}

.ss-peta-map a:focus-visible {
  outline: 2px solid var(--ss-peta-gold) !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
  box-shadow: 0 0 0 3px var(--ss-peta-gold-soft) !important;
}

/* =========================================================
   08. LISTS
   Peta II deliberately exposes the former nested lens list.
   ========================================================= */

.ss-peta-field-content ul,
.ss-peta-field-content ol {
  margin: 0 0 12px;
  padding-left: 1.35em;
}

.ss-peta-field-content li {
  margin: 0 0 9px;
  padding-left: 2px;
}

.ss-peta-field-content li:last-child {
  margin-bottom: 0;
}

.ss-peta-field-content li::marker {
  color: var(--ss-peta-gold);
}

/* =========================================================
   09. SYSTEM SUNYI LENS
   Peta II uses the existing source class, now surfaced as a
   first-class editorial field rather than hidden in a table cell.
   ========================================================= */

.ss-peta-field-content .ss-editorial-system-lens {
  margin: 0 !important;
  padding: 15px 17px !important;

  border-left: 3px solid var(--ss-peta-gold);
  border-radius: 0 10px 10px 0;

  background: var(--ss-peta-gold-soft);

  color: var(--ss-peta-text);
}

.ss-peta-field-content .ss-editorial-system-lens strong {
  color: var(--ss-peta-gold-strong);
}

/* =========================================================
   10. VARIANT: TRADITION
   Peta I: 24 traditions across three packages.
   ========================================================= */

.ss-peta-map--tradisi .ss-peta-entry-heading {
  margin-bottom: 24px;
}

.ss-peta-map--tradisi .ss-peta-field:first-of-type {
  /* Keeps the first question close to the tradition title. */
}

/* =========================================================
   11. VARIANT: EXPERIENCE
   Peta II: the experience is the entry point; lenses follow.
   ========================================================= */

.ss-peta-map--pengalaman .ss-peta-entry-heading h3 {
  font-size: clamp(19px, 2vw, 25px) !important;
}

.ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 17px;
  border-bottom: 1px solid var(--ss-peta-cell-line);
}

.ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses li:first-child {
  padding-top: 0;
}

.ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ss-peta-gold);
}

.ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses li:first-child::before {
  top: .55em;
}

/* =========================================================
   12. VARIANT: DEEPENING
   Peta III: change, correction, clarity, boundaries.
   ========================================================= */

.ss-peta-map--pendalaman .ss-peta-entry-heading {
  margin-bottom: 24px;
}

.ss-peta-map--pendalaman .ss-peta-field-label {
  letter-spacing: .075em !important;
}

/* =========================================================
   13. TABLET
   ========================================================= */

@media (max-width: 900px) {
  .ss-peta-map {
    margin: 22px 0 27px;
    border-radius: 16px;
  }

  .ss-peta-entry {
    padding: 27px 25px 29px;
  }

  .ss-peta-entry-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .ss-peta-entry-number {
    width: 40px;
    min-height: 40px;
  }
}

/* =========================================================
   14. MOBILE
   No horizontal scroll. The document becomes one-column reading.
   ========================================================= */

@media (max-width: 600px) {
  .ss-peta-map {
    margin: 20px 0 24px;
    border-radius: 15px;
    box-shadow: 0 14px 34px rgba(24, 34, 52, .08);
  }

  :is(
    html.ss-darkmode,
    body.ss-darkmode,
    body.ss-dark-mode,
    body.dark-sunyi,
    body[data-theme="dark"]
  ) .ss-peta-map {
    box-shadow: 0 18px 46px rgba(0, 0, 0, .30);
  }

  .ss-peta-map::before {
    left: 17px;
    right: 17px;
  }

  .ss-peta-entry {
    padding: 23px 19px 26px;
  }

  .ss-peta-entry-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 21px;
  }

  .ss-peta-entry-number {
    width: 36px;
    min-height: 36px;
    border-radius: 9px;
    font-size: 10.5px;
  }

  .ss-peta-entry-heading h3 {
    font-size: 19px !important;
    line-height: 1.32 !important;
  }

  .ss-peta-field {
    padding-bottom: 19px;
  }

  .ss-peta-field + .ss-peta-field {
    padding-top: 18px;
  }

  .ss-peta-field-label {
    margin-bottom: 7px !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
    letter-spacing: .075em !important;
  }

  .ss-peta-field-content {
    font-size: 14px;
    line-height: 1.62;
  }

  .ss-peta-field-content ul,
  .ss-peta-field-content ol {
    padding-left: 1.2em;
  }

  .ss-peta-map--pengalaman .ss-peta-field-content ul.ss-editorial-tradition-lenses {
    margin-top: 1px;
  }

  .ss-peta-field-content .ss-editorial-system-lens {
    padding: 13px 14px !important;
  }
}

/* =========================================================
   15. VERY NARROW SCREENS
   ========================================================= */

@media (max-width: 380px) {
  .ss-peta-entry {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ss-peta-entry-heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .ss-peta-entry-number {
    width: 32px;
    min-height: 32px;
    font-size: 10px;
  }

  .ss-peta-entry-heading h3 {
    font-size: 18px !important;
  }

  .ss-peta-field-content {
    font-size: 13.6px;
  }
}

/* =========================================================
   16. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .ss-peta-map a,
  .ss-peta-map * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* =========================================================
   SISTEM EDITORIAL DIALEKTIKA SUNYI v1.0
   08. MAIN INTRODUCTION READING SURFACE
   Light-only. No dark-mode layer is applied to the article.
   ========================================================= */

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] {
  --ss-ds-ink: #182235;
  --ss-ds-muted: #686f75;
  --ss-ds-gold: #9a6f35;
  --ss-ds-gold-soft: rgba(154, 111, 53, .10);
  --ss-ds-line: rgba(24, 34, 53, .12);
  --ss-ds-surface: #f8f3ea;
  --ss-ds-surface-strong: #efebe2;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-editorial-kicker {
  display: block;
  margin: 0 0 .7rem;
  color: var(--ss-ds-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-editorial-subtitle {
  margin: 0 0 1.65rem;
  color: var(--ss-ds-muted);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.55;
  font-weight: 500;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-editorial-intro > h1 {
  margin: 0 0 1rem;
  color: var(--sse-heading);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 700;
}

/* A single orientation surface, not three cards. */
.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-orientation {
  width: 100%;
  margin: clamp(2.7rem, 6vw, 4.8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  padding: clamp(1.35rem, 3vw, 2rem) 0;
  border-top: 1px solid var(--ss-ds-line);
  border-bottom: 1px solid var(--ss-ds-line);
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-label {
  margin: 0 0 1.1rem;
  color: var(--ss-ds-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-orientation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: .25rem clamp(1rem, 2.5vw, 1.7rem) .25rem 0;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item + .ss-ds-orientation-item {
  padding-left: clamp(1rem, 2.5vw, 1.7rem);
  border-left: 1px solid var(--ss-ds-line);
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(154,111,53,.32);
  border-radius: 8px;
  color: var(--ss-ds-gold);
  background: var(--ss-ds-gold-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item strong {
  display: block;
  margin: 0 0 .35rem;
  color: var(--sse-heading);
  font-size: 14px;
  line-height: 1.35;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item p {
  margin: 0;
  color: var(--sse-muted);
  font-size: 14px;
  line-height: 1.62;
}

/* Package anchors reveal the existing three-part architecture without fragmenting the essay. */
.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-anchor {
  position: relative;
  margin: clamp(4rem, 8vw, 7rem) 0 1.9rem;
  padding: clamp(1.15rem, 2.6vw, 1.65rem) 0 clamp(1.25rem, 2.8vw, 1.8rem);
  border-top: 1px solid var(--ss-ds-line);
  border-bottom: 1px solid var(--ss-ds-line);
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-anchor::before {
  content: attr(data-package);
  display: block;
  margin-bottom: .55rem;
  color: var(--ss-ds-gold);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  letter-spacing: .16em;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-anchor h2 {
  margin: 0 0 1rem !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-anchor > p {
  margin: 0;
  max-width: 740px;
  color: var(--sse-muted);
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.72;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] h2.ss-ds-section-marker {
  scroll-margin-top: 5rem;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-closing {
  margin-top: clamp(4.5rem, 8vw, 7rem);
  padding: clamp(1.5rem, 4vw, 2.6rem) clamp(1.25rem, 4vw, 2.4rem);
  border: 1px solid var(--ss-ds-line);
  border-radius: 20px;
  background: var(--ss-ds-surface);
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-closing h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-closing p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-orientation-grid {
    grid-template-columns: 1fr;
  }

  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item,
  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item + .ss-ds-orientation-item {
    padding: 1rem 0;
    border-left: 0;
    border-top: 1px solid var(--ss-ds-line);
  }

  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-orientation-item:first-child {
    padding-top: .25rem;
    border-top: 0;
  }
}

@media (max-width: 600px) {
  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-editorial-intro > h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.12;
  }

  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-editorial-subtitle {
    font-size: 17px;
    line-height: 1.52;
  }

  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-orientation {
    margin-top: 2.8rem;
    margin-bottom: 3.8rem;
  }

  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-package-anchor {
    margin-top: 4.5rem;
  }

  .td-post-content .ss-editorial-essay[data-ss-editorial-role="main-introduction"] .ss-ds-closing {
    border-radius: 16px;
    padding: 1.25rem 1rem;
  }
}

/* =========================================================
   09. SYSTEM INTEGRATION / ISOLATION CONTRACT
   - Main Introduction and Editorial Essay remain light-only.
   - Peta dark mode is scoped to .ss-peta-map only.
   - Generic Lorong Kata table CSS remains external and untouched.
   ========================================================= */

/* No dark-mode selector is intentionally added for .ss-editorial-essay. */
