/* test purge cache */
/*
 * Dictio.id - Jetonomy Custom Design
 * Semua selector dibungkus dalam .jt-app agar tidak bocor ke blog
 */

/* -- TOKEN ----------------------------------------------------- */
.jt-app {
  --jt-bg:             #f2f2f2;
  --jt-bg-subtle:      #fafafa;
  --jt-bg-muted:       #f4f4f4;
  --jt-border:         #e8e8e8;
  --jt-text:           #111111;
  --jt-text-secondary: #555555;
  --jt-text-tertiary:  #999999;
  --jt-accent:         #4f46e5;
  --jt-accent-muted:   #eef2ff;
  --jt-radius:         14px;
  --jt-radius-sm:      8px;
  --jt-radius-full:    999px;
  --cat-ekonomi:       #4f46e5;
  --cat-ekonomi-bg:    #e0e7ff;
  --cat-manajemen:     #047857;
  --cat-manajemen-bg:  #d1fae5;
  --cat-keuangan:      #b45309;
  --cat-keuangan-bg:   #fef3c7;
  --cat-etika:         #be185d;
  --cat-etika-bg:      #fce7f3;
  background: #f2f2f2;
}

/* Force light mode */
@media (prefers-color-scheme: dark) {
  .jt-app {
    --jt-bg:     #f2f2f2 !important;
    --jt-text:   #111111 !important;
    --jt-border: #e8e8e8 !important;
  }
}

/* -- CARD ------------------------------------------------------ */
.jt-app .jt-row,
.jt-app .jt-qa-card {
  background: #ffffff;
  border-radius: var(--jt-radius);
  border: 1px solid var(--jt-border);
  overflow: hidden;
  margin-bottom: 8px;
  transition: box-shadow .15s;
}
.jt-app .jt-row:hover,
.jt-app .jt-qa-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* -- BAGIAN PERTANYAAN ----------------------------------------- */
.jt-app .jt-post-card__question {
  padding: 12px 13px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.jt-app .jt-post-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.jt-app .jt-post-card__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.jt-app .jt-post-card__author {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.jt-app .jt-post-card__time {
  font-size: 10px;
  color: var(--jt-text-tertiary);
  white-space: nowrap;
}

/* Tag kategori */
.jt-app .jt-post-card__category {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--jt-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}
.jt-app .jt-tag--ekonomi   { background: var(--cat-ekonomi-bg);   color: var(--cat-ekonomi); }
.jt-app .jt-tag--manajemen { background: var(--cat-manajemen-bg); color: var(--cat-manajemen); }
.jt-app .jt-tag--keuangan  { background: var(--cat-keuangan-bg);  color: var(--cat-keuangan); }
.jt-app .jt-tag--etika     { background: var(--cat-etika-bg);     color: var(--cat-etika); }

/* Badge LIVE */
.jt-app .jt-live-badge {
  font-size: 8px;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  border-radius: var(--jt-radius-full);
  padding: 2px 7px;
  margin-left: 4px;
}

/* Judul pertanyaan */
.jt-app .jt-post-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--jt-text);
  line-height: 1.45;
  text-decoration: none;
  display: block;
  margin-top: 4px;
}
.jt-app .jt-post-card__title:hover { color: var(--jt-accent); }

/* -- AREA JAWABAN ---------------------------------------------- */
/* Gambar hero full-width */
.jt-app .jt-post-card__answer-image-wrap {
  width: 100%;
  height: 148px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jt-accent-muted);
}
.jt-app .jt-post-card__answer-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label overlay */
.jt-app .jt-answer-best-label {
  position: absolute;
  top: 9px;
  left: 10px;
  background: #111;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--jt-radius-full);
  z-index: 2;
}
.jt-app .jt-answer-vote-overlay {
  position: absolute;
  top: 9px;
  right: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  font-size: 9px;
  font-weight: 600;
  color: var(--jt-accent);
  padding: 3px 8px;
  border-radius: var(--jt-radius-full);
  z-index: 2;
}

/* Body jawaban */
.jt-app .jt-answer-body {
  padding: 10px 13px 11px;
}

/* Compact (thumbnail kanan) */
.jt-app .jt-answer-compact,
.jt-app .jt-answer-text-only {
  padding: 10px 13px 11px;
  background: #fafafa;
}
.jt-app .jt-answer-compact__inner {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.jt-app .jt-answer-compact__text-col { flex: 1; min-width: 0; }
.jt-app .jt-answer-compact__thumb {
  width: 74px;
  height: 60px;
  border-radius: var(--jt-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--jt-border);
}
.jt-app .jt-answer-compact__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Meta answerer */
.jt-app .jt-answer-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.jt-app .jt-answer-meta__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--jt-border);
  overflow: hidden;
  flex-shrink: 0;
}
.jt-app .jt-answer-meta__name {
  font-size: 11px;
  font-weight: 600;
  color: #222;
}
.jt-app .jt-answer-meta__role {
  font-size: 8px;
  background: #f4f4f4;
  border: 1px solid #e4e4e4;
  color: #666;
  border-radius: var(--jt-radius-sm);
  padding: 1px 6px;
}
.jt-app .jt-answer-meta__votes {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--jt-accent);
}

/* Excerpt */
.jt-app .jt-answer-excerpt {
  font-size: 11px;
  color: var(--jt-text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read more link */
.jt-app .jt-answer-read-more {
  font-size: 10px;
  color: var(--jt-accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
  text-decoration: none;
}
.jt-app .jt-answer-read-more:hover { text-decoration: underline; }

/* Warna read-more per kategori */
.jt-app [data-category="manajemen"] .jt-answer-read-more { color: var(--cat-manajemen); }
.jt-app [data-category="keuangan"]  .jt-answer-read-more { color: var(--cat-keuangan); }
.jt-app [data-category="etika"]     .jt-answer-read-more { color: var(--cat-etika); }

/* -- FOOTER CARD ----------------------------------------------- */
.jt-app .jt-post-card__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f4f4f4;
  padding: 8px 0 2px;
}

/* Vote pill - !important karena Jetonomy plugin CSS load setelah kita */
.jt-app .jt-vote-pill {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--jt-radius-full) !important;
  background: transparent !important;        /* kill warna background pill bawaan */
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.jt-app .jt-vote-btn {
  padding: 4px 9px !important;
  font-size: 10px !important;
  color: #94a3b8 !important;                 /* slate-400 */
  background: #fafafa !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  transition: background .12s, color .12s;
}
.jt-app .jt-vote-btn:hover {
  background: #eff6ff !important;            /* blue-50 */
  color: #3b82f6 !important;                 /* blue-500 */
}
/* Upvote aktif - biru penuh */
.jt-app .jt-vote-btn.is-voted,
.jt-app .jt-vote-btn--up.is-voted {
  color: #2563eb !important;                 /* blue-600 */
  background: #eff6ff !important;
  font-weight: 700;
}
/* Downvote aktif - setengah warna, blue-300 */
.jt-app .jt-vote-btn--down.is-voted {
  color: #93c5fd !important;                 /* blue-300 */
  background: transparent !important;
  font-weight: 600;
}
.jt-app .jt-vote-sep { width: 1px !important; height: 22px !important; background: #e2e8f0 !important; }

/* Tombol aksi */
.jt-app .jt-action-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #aaa;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: var(--jt-radius-sm);
  transition: color .12s, background .12s;
}
.jt-app .jt-action-btn:hover {
  color: var(--jt-text-secondary);
  background: var(--jt-bg-muted);
}

/* "+N jawaban lain" */
.jt-app .jt-more-answers {
  margin-left: auto;
  font-size: 9px;
  color: var(--jt-text-tertiary);
  white-space: nowrap;
}

/* -- QA PILL --------------------------------------------------- */
.jt-app .jt-qa-pill {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--jt-radius-full);
}
.jt-app .jt-qa-pill-needs-answer {
  background: #fef3c7;
  color: #b45309;
}
.jt-app .jt-qa-pill-answered {
  background: #d1fae5;
  color: #047857;
}

/* -- MOBILE ---------------------------------------------------- */
@media (max-width: 600px) {
  .jt-app .jt-post-card__answer-image-wrap { height: 132px; }
  .jt-app .jt-post-card__title { font-size: 12.5px; }
  .jt-app .jt-f-hero-image { height: 210px !important; }
}


/* Override layout grid bawaan Jetonomy untuk card Q&A */
.jt-app .jt-qa-card.jt-row {
    display: block !important;
}
.jt-app .jt-qa-card .jt-votes {
    display: none !important;
}
.jt-app .jt-qa-card .jt-row-main {
    display: block !important;
    width: 100% !important;
}
.jt-app .jt-qa-card .jt-row-stat {
    display: none !important;
}
.jt-app .jt-qa-card .jt-row-time {
    display: none !important;
}


/* ===============================================================
   FORUM CARD (space type: forum) - desain diskusi
   Semua elemen pakai div/a/span, aman dari override button BuddyX
   =============================================================== */
.jt-app .jt-f-card {
  --f-blue:       #2563EB;
  --f-blue-mid:   #DBEAFE;
  --f-bubble-bg:  #F8FAFF;
  --f-text-main:  #0F1117;
  --f-text-sub:   #4B5563;
  --f-text-muted: #9CA3AF;
  --f-border:     #E5E9F2;
  --f-border-mid: #D1D9EE;
  --f-live-green: #22C55E;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--f-border);
  box-shadow: 0 1px 6px rgba(15,17,23,.04);
  overflow: hidden;
  margin-bottom: 12px;
}
.jt-app .jt-f-card--hero { box-shadow: 0 2px 12px rgba(15,17,23,.06); }
.jt-app .jt-f-card--empty {
  border: 1.5px dashed var(--f-border-mid);
  box-shadow: none;
}

/* Gambar hero */
.jt-app .jt-f-hero-image {
  width: 100%;
  height: 280px;
  position: relative;
  background: linear-gradient(135deg, #C7D9F8 0%, #A5C0F3 40%, #7BA7EE 100%);
}
.jt-app .jt-f-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jt-app .jt-f-live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--f-text-main);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.jt-app .jt-f-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--f-live-green);
  animation: jt-f-pulse 1.8s ease-in-out infinite;
}
@keyframes jt-f-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* Body */
.jt-app .jt-f-body { padding: 14px; }

/* Byline */
.jt-app .jt-f-byline {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.jt-app .jt-f-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.jt-app .jt-f-av-0 { background: #BFDBFE; color: #1E40AF; }
.jt-app .jt-f-av-1 { background: #BBF7D0; color: #166534; }
.jt-app .jt-f-av-2 { background: #FDE68A; color: #92400E; }
.jt-app .jt-f-av-3 { background: #F3E8FF; color: #7E22CE; }
.jt-app .jt-f-byline-name { font-size: 12px; font-weight: 600; color: var(--f-text-sub); }
.jt-app .jt-f-byline-sep  { font-size: 11px; color: var(--f-border-mid); }
.jt-app .jt-f-byline-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: #EFF6FF;
  color: #1D4ED8;
}
.jt-app .jt-f-tag--manajemen { background: #F0FDF4; color: #15803D; }
.jt-app .jt-f-tag--keuangan  { background: #FEF3C7; color: #B45309; }
.jt-app .jt-f-tag--etika     { background: #FCE7F3; color: #BE185D; }
.jt-app .jt-f-byline-time {
  font-size: 11px;
  color: var(--f-text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* Judul & excerpt */
.jt-app .jt-f-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  color: var(--f-text-main);
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
  text-decoration: none;
}
.jt-app .jt-f-title:hover { color: var(--f-blue); }
.jt-app .jt-f-title--hero { font-size: 15.5px; }
.jt-app .jt-f-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--f-text-sub);
  line-height: 1.5;
  margin: 0 0 12px;
}
.jt-app .jt-f-card--hero .jt-f-excerpt { font-size: 12.5px; line-height: 1.55; }

/* Layout standar dihapus — semua kartu pakai hero */



/* Bubble balasan terbaru */
.jt-app .jt-f-bubble {
  background: var(--f-bubble-bg);
  border: 1px solid var(--f-blue-mid);
  border-left: 3px solid var(--f-blue);
  border-radius: 4px 12px 12px 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.jt-app .jt-f-bubble-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--f-blue);
  margin-bottom: 3px;
}
.jt-app .jt-f-bubble-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--f-text-sub);
  line-height: 1.5;
}

/* Footer */
.jt-app .jt-f-footer {
  display: flex;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--f-border);
}
.jt-app .jt-f-card--empty .jt-f-footer { border-top: 1px solid var(--f-border); }
.jt-app .jt-f-stack { display: inline-flex; }
.jt-app .jt-f-av--stack {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  margin-left: -8px;
  font-size: 9px;
}
.jt-app .jt-f-stack .jt-f-av--stack:first-child { margin-left: 0; }
.jt-app .jt-f-av--more { background: #E5E9F2; color: var(--f-text-sub); font-size: 8px; }
.jt-app .jt-f-meta {
  font-size: 11px;
  color: var(--f-text-muted);
  margin-left: 8px;
  font-weight: 500;
}
.jt-app .jt-f-empty-text {
  font-size: 11.5px;
  color: var(--f-text-muted);
  font-weight: 500;
}

/* Tombol Gabung / Jadi yang pertama (pakai <a>, bukan <button>) */
.jt-app .jt-f-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.jt-app .jt-f-btn--solid {
  background: var(--f-blue);
  color: #fff;
  padding: 7px 14px;
}
.jt-app .jt-f-btn--solid:hover { background: #1D4ED8; color: #fff; }
.jt-app .jt-f-btn--outline {
  background: transparent;
  color: var(--f-blue);
  border: 1.5px solid var(--f-blue-mid);
  padding: 6px 13px;
}
.jt-app .jt-f-btn--outline:hover { background: #EFF6FF; color: var(--f-blue); }




/* ── KARYA SASTRA: excerpt puisi dengan jeda baris ─────────────── */
/* white-space: pre-line agar \n dari PHP ditampilkan sebagai baris baru */
.jt-app .jt-f-card .jt-f-excerpt {
  white-space: pre-line !important;
}

/* Khusus space karya sastra: lepas line-clamp, tampilkan 5 baris penuh */
.jt-app .jt-f-card[data-space-slug="karya-sastra"] .jt-f-excerpt {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  font-style: italic;
  line-height: 1.8;
  color: #444;
}

.jt-avatar-fallback[hidden] {
    display: none !important;
}