/* Extracted from the existing post-only inline CSS; rules intentionally preserved. */
/* =================================================
 * MEDIA KAMPUNG – JADWAL SHOLAT (FINAL STABLE)
 * ================================================= */

/* -------------------------------
 * ROOT VARIABLES (LIGHT DEFAULT)
 * ------------------------------- */
.mk-sholat-wrap {
  --mk-bg: #ffffff;
  --mk-text-main: #111827;
  --mk-text-muted: #6b7280;
  --mk-border: #e5e7eb;
  --mk-head: #f3f4f6;

  --mk-brand: #2563eb;       /* BRAND COLOR */
  --mk-brand-soft: #dbeafe;

  --mk-radius: 12px;
  margin: 28px 0;

  isolation: isolate;
}

/* -------------------------------
 * DARK MODE (THEME / OS)
 * ------------------------------- */
body.dark .mk-sholat-wrap,
body[data-theme="dark"] .mk-sholat-wrap {
  --mk-bg: #0b1220;
  --mk-text-main: #e5e7eb;
  --mk-text-muted: #9ca3af;
  --mk-border: #1f2937;
  --mk-head: #111827;

  --mk-brand: #60a5fa;
  --mk-brand-soft: rgba(96,165,250,.15);
}

@media (prefers-color-scheme: dark) {
  .mk-sholat-wrap {
    --mk-bg: #0b1220;
    --mk-text-main: #e5e7eb;
    --mk-text-muted: #9ca3af;
    --mk-border: #1f2937;
    --mk-head: #111827;

    --mk-brand: #60a5fa;
    --mk-brand-soft: rgba(96,165,250,.15);
  }
}

/* -------------------------------
 * JUDUL (ANTI OPACITY / FILTER)
 * ------------------------------- */
.mk-sholat-wrap h2,
.mk-sholat-wrap .mk-title {
  color: var(--mk-brand) !important;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;

  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}

/* Badge "Hari Ini" */
.mk-sholat-wrap .mk-badge {
  display: inline-block;
  margin: 0 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand);
  vertical-align: middle;
}

/* -------------------------------
 * TABLE WRAPPER
 * ------------------------------- */
.mk-table-scroll {
  overflow-x: auto;
  border-radius: var(--mk-radius);
  background: var(--mk-bg);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* -------------------------------
 * TABLE
 * ------------------------------- */
.mk-sholat-table {
  width: 100%;
  min-width: 420px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--mk-bg);
  border-radius: var(--mk-radius);
  overflow: hidden;
}

.mk-sholat-table th {
  background: var(--mk-head);
  color: var(--mk-text-main);
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 1px solid var(--mk-border);
}

.mk-sholat-table td {
  padding: 12px 10px;
  text-align: center;
  color: var(--mk-text-main);
  border-bottom: 1px solid var(--mk-border);
  white-space: nowrap;
}

/* Zebra rows */
.mk-sholat-table tbody tr:nth-child(even) {
  background: rgba(0,0,0,.02);
}

/* Hover (desktop only) */
@media (hover: hover) {
  .mk-sholat-table tbody tr:hover {
    background: rgba(0,0,0,.04);
  }
}

/* -------------------------------
 * SOURCE TEXT
 * ------------------------------- */
.mk-source {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--mk-text-muted);
}

/* -------------------------------
 * MOBILE
 * ------------------------------- */
@media (max-width: 768px) {
  .mk-sholat-wrap {
    font-size: 14px;
  }
}

/* ===============================
 * HIGHLIGHT SHOLAT AKTIF
 * =============================== */
.mk-sholat-table td.mk-active {
  background: var(--mk-brand-soft);
  color: var(--mk-brand);
  font-weight: 800;
}

/* ===============================
 * COUNTDOWN STYLE
 * =============================== */
.mk-countdown {
  margin: 6px 0 16px;
  font-size: 14px;
  color: var(--mk-text-muted);
}

</style>

<style>
.mk-monthly thead th{position:sticky;top:0;background:var(--mk-head);z-index:2}
.mk-sholat-table tr.mk-row-active{background:var(--mk-brand-soft);font-weight:700}
.mk-sholat-table tr.mk-row-active td{color:var(--mk-brand)}
body.dark .mk-sholat-table tr.mk-row-active{background:rgba(96,165,250,.18)}
body.dark .mk-sholat-table tr.mk-row-active td{color:#e0f2fe}
</style>

<style>


/* BASE STYLE */
.news-summary {
    position: relative;
    background: #f3f9f6;
    border-left: 5px solid #174430;
    border-radius: 8px;
    padding: 18px 24px;
    margin: 20px 0;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #174430; /* warna dasar teks */
}

.news-summary .label {
    font-weight: 700;
    color: #174430;
    margin-bottom: 10px !important;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-bottom: 2px solid #206c68;
    padding-bottom: 6px;
}

.news-summary .summary-list {
    margin: 0 !important;
    padding-left: 20px;
}

.news-summary .summary-list li {
    margin-bottom: 6px;
    font-size: .95rem;
    line-height: 1.55;
    color: #174430;
}

/* Highlight badge */
.news-summary:before {
    content: "Ringkasan Artikel";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #206c68;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
}

/* Active Feature */
.news-summary.active {
    background: #fffbe2;
    border-left-color: #ffde00;
}

.news-summary.active .label {
    color: #174430;
    border-color: #ffde00;
}

.news-summary.active:before {
    content: "Ringkasan Berita";
    background: #ffde00;
    color: #174430;
}


/* ======================================
   DARK MODE SUPPORT
   — Prefers-color-scheme (automatic system)
   — .dark-mode (theme switcher)
   ====================================== */
@media (prefers-color-scheme: dark) {
    .news-summary,
    body.dark-mode .news-summary {
        background: #174430;
        border-left-color: #ffde00;
        color: #111 !important;
    }

    .news-summary .label,
    body.dark-mode .news-summary .label {
        color: #ffde00 !important;
        border-color: #ffde00 !important;
    }

    .news-summary .summary-list li,
    body.dark-mode .news-summary .summary-list li {
        color: #111 !important;
    }

    .news-summary:before,
    body.dark-mode .news-summary:before {
        background: #ffde00 !important;
        color: #174430 !important;
    }
}

/* Jika tema Anda menggunakan class .dark di HTML (opsional) */
.dark .news-summary {
    background: #174430 !important;
    color: #111 !important;
}
.dark .news-summary .label {
    color: #ffde00 !important;
    border-color: #ffde00 !important;
}
.dark .news-summary:before {
    background: #ffde00 !important;
    color: #174430 !important;
}


/* =====================================================
   MEDIA KAMPUNG – KALENDER 2026 (LIGHT + DARK MODE)
   ===================================================== */

/* GRID */
.mk-kalender-wrapper{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px
}

/* BULAN */
.mk-bulan{
  border:1px solid #e5e7eb;
  padding:12px;
  background:#ffffff;
  border-radius:8px
}

.mk-bulan h3{
  text-align:center;
  font-size:15px;
  margin-bottom:8px;
  font-weight:600
}

.mk-bulan table{
  width:100%;
  border-collapse:collapse;
  font-size:13px
}

.mk-bulan th,
.mk-bulan td{
  border:1px solid #ffffff;
  text-align:center;
  padding:6px;
  position:relative
}

/* HEADER MINGGU */
.mk-bulan th.minggu{
  color:#b91c1c;
  font-weight:600
}

/* SABTU */
.mk-bulan td.sabtu{
  background:#f8fafc
}

/* MINGGU */
.mk-bulan td.minggu-merah{
  background:#fee2e2;
  color:#991b1b;
  font-weight:600
}

/* LIBUR NASIONAL */
.mk-bulan td.libur-nasional{
  background:#fecaca;
  color:#7f1d1d;
  font-weight:700
}

/* CUTI BERSAMA */
.mk-bulan td.cuti-bersama{
  background:#fde68a;
  color:#92400e;
  font-weight:600
}

/* TOOLTIP */
.mk-tooltip{
  position:absolute;
  bottom:110%;
  left:50%;
  transform:translateX(-50%);
  background:#111827;
  color:#ffffff;
  padding:6px 8px;
  font-size:12px;
  border-radius:6px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:.2s;
  z-index:99;
  box-shadow:0 6px 18px rgba(0,0,0,.25)
}

td:hover .mk-tooltip,
td:focus-within .mk-tooltip{
  opacity:1
}

/* MOBILE */
@media(max-width:640px){
  .mk-tooltip{
    bottom:auto;
    top:110%;
    font-size:11px
  }
}

/* PDF BUTTON */
.mk-pdf-download{
  grid-column:1/-1;
  text-align:right;
  margin-bottom:10px
}

.mk-pdf-download a{
  background:#1d4ed8;
  color:#ffffff;
  padding:8px 12px;
  border-radius:6px;
  font-size:14px;
  text-decoration:none
}

/* RINGKASAN LIBUR */
.mk-ringkasan-libur{
  list-style:none;
  padding:0;
  margin:12px 0;
  font-size:14px;
  line-height:1.6
}

.mk-ringkasan-libur li{
  padding-left:26px;
  position:relative;
  margin-bottom:6px
}

.mk-ringkasan-libur li:before{
  content:"📅";
  position:absolute;
  left:0;
  top:0
}

/* IKON BULAN */
.mk-ringkasan-libur li.jan:before{content:"🎉"}
.mk-ringkasan-libur li.feb:before{content:"🧧"}
.mk-ringkasan-libur li.mar:before{content:"🌙"}
.mk-ringkasan-libur li.apr:before{content:"✝️"}
.mk-ringkasan-libur li.mei:before{content:"🛐"}
.mk-ringkasan-libur li.jun:before{content:"🇮🇩"}
.mk-ringkasan-libur li.ags:before{content:"🎌"}
.mk-ringkasan-libur li.des:before{content:"🎄"}

/* =====================================================
   DARK MODE – AUTO
   ===================================================== */
@media (prefers-color-scheme: dark){

  .mk-bulan{
    background:#020617;
    border-color:#1e293b
  }

  .mk-bulan h3{
    color:#e5e7eb
  }

  .mk-bulan th,
  .mk-bulan td{
    border-color:#1e293b;
    color:#e5e7eb
  }

  .mk-bulan td.sabtu{
    background:#020617
  }

  .mk-bulan td.minggu-merah{
    background:#7f1d1d;
    color:#fee2e2
  }

  .mk-bulan td.libur-nasional{
    background:#991b1b;
    color:#fee2e2
  }

  .mk-bulan td.cuti-bersama{
    background:#92400e;
    color:#fde68a
  }

  .mk-tooltip{
    background:#0f172a;
    color:#f8fafc
  }

  .mk-pdf-download a{
    background:#2563eb
  }
}

/* =====================================================
   DARK MODE – THEME CLASS (OPTIONAL)
   ===================================================== */
.dark .mk-bulan,
.theme-dark .mk-bulan,
[data-theme="dark"] .mk-bulan{
  background:#020617;
  border-color:#1e293b
}
