/* Koran Digital: pencarian (kalender), arsip surat kabar, halaman edisi */
.kor-page {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, #f8fafc 0%, #f4f6fb 100%);
}

.kor-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 26px;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 58%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(79,70,229,.13);
}
.kor-kicker, .kor-label { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.kor-kicker { color: #ddd6fe; }
.kor-label { color: #4f46e5; }
.kor-hero h1 { margin: 7px 0 10px; color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; }
.kor-hero p { max-width: 670px; margin: 0 0 6px; color: rgba(255,255,255,.84); }
.kor-hero-link { color: #fff; font-weight: 700; }
.kor-hero-link:hover { color: #e0e7ff; }
.kor-hero-mark { display: grid; place-items: center; width: 104px; height: 104px; flex: 0 0 104px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(255,255,255,.08); }
.kor-hero-mark svg { width: 44px; fill: none; stroke: #fff; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.kor-panel, .kor-results {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(15,23,42,.04);
}
.kor-panel-head { margin-bottom: 16px; }
.kor-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.kor-panel h2, .kor-results h2 { margin: 4px 0 0; font-size: 1.35rem; letter-spacing: -.02em; }
.kor-count { margin-left: 8px; color: #64748b; font-size: .85rem; font-weight: 600; letter-spacing: 0; }
.kor-note { margin: 14px 0 0; color: #64748b; font-size: .84rem; }
.kor-alert { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fef3c7; color: #92400e; font-size: .9rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Pilihan surat kabar */
.kor-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kor-chip-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border: 1px solid #dbe2ea; border-radius: 999px; background: #f8fafc; color: #334155;
  font-weight: 750; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.kor-chip-link small { padding: 2px 8px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: .72rem; font-weight: 700; }
.kor-chip-link:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.kor-chip-link.aktif { border-color: #4f46e5; background: #4f46e5; color: #fff; }
.kor-chip-link.aktif small { background: rgba(255,255,255,.22); color: #fff; }

/* Navigasi bulan dan tahun */
.kor-cal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.kor-cal-nav select {
  min-height: 44px; padding: 0 12px; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; color: #0f172a; outline: none; font-weight: 650;
}
.kor-cal-nav select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99,102,241,.10); }
.kor-cal-arrow {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #dbe2ea; border-radius: 12px; background: #f8fafc; color: #334155; font-size: 1.4rem; line-height: 1; text-decoration: none;
}
.kor-cal-arrow:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.kor-btn { min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: #4f46e5; color: #fff; font-weight: 750; cursor: pointer; }
.kor-btn:hover { background: #3730a3; }
.kor-reset {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid #dbe2ea; border-radius: 12px; background: #f8fafc; color: #334155; font-weight: 750; text-decoration: none;
}
.kor-reset:hover { border-color: #c7d2fe; background: #eef2ff; color: #4338ca; }
.kor-cal-nav .kor-reset { margin-left: auto; }

/* Kalender */
.kor-cal { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.kor-cal-title { padding: 0 0 6px; text-align: left; font-size: 1.05rem; font-weight: 800; color: #0f172a; caption-side: top; }
.kor-cal th { padding: 6px 0; color: #64748b; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.kor-cal td {
  position: relative; height: 58px; padding: 0; border: 1px solid #eef2f7; border-radius: 12px; background: #fff;
  color: #94a3b8; text-align: center; vertical-align: middle; font-weight: 650;
}
.kor-cal td.kosong { border-color: transparent; background: transparent; }
.kor-cal td.ada { border-color: #c7d2fe; background: #eef2ff; }
.kor-cal td.ada a {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 11px;
  color: #3730a3; font-weight: 800; text-decoration: none;
}
.kor-cal td.ada:hover { border-color: #818cf8; background: #e0e7ff; }
.kor-cal td.ada a small {
  position: absolute; top: 4px; right: 6px; min-width: 18px; padding: 1px 5px; border-radius: 999px;
  background: #4f46e5; color: #fff; font-size: .66rem; font-weight: 800; line-height: 1.3;
}
.kor-cal td.dipilih { border-color: #4f46e5; background: #4f46e5; }
.kor-cal td.dipilih a { color: #fff; }
.kor-cal td.dipilih a small { background: #fff; color: #4f46e5; }

/* Hasil */
.kor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.kor-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; transition: box-shadow .15s, transform .15s; }
.kor-card:hover { box-shadow: 0 10px 28px rgba(15,23,42,.10); transform: translateY(-2px); }
.kor-thumb { display: block; aspect-ratio: 3 / 4; background: #eef2f7; overflow: hidden; }
.kor-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.kor-thumb-empty { display: grid; place-items: center; height: 100%; padding: 12px; color: #94a3b8; font-size: .8rem; text-align: center; }
.kor-card-body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.kor-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.kor-card h3 a { color: #0f172a; text-decoration: none; }
.kor-card h3 a:hover { color: #4f46e5; }
.kor-meta { margin: 0; color: #64748b; font-size: .8rem; }
.kor-chip { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .74rem; font-weight: 750; }

.kor-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; color: #64748b; text-align: center; }

/* Halaman satu edisi */
.kor-crumbs { margin-bottom: 14px; color: #64748b; font-size: .88rem; }
.kor-crumbs a { text-decoration: none; }
.kor-single-head { margin-bottom: 16px; }
.kor-single-head .entry-title { margin-top: 8px; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.kor-single .kd-viewer { border-radius: 16px; }
.kor-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; }
.kor-nav a {
  display: grid; gap: 2px; min-width: 170px; padding: 12px 16px;
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #0f172a; font-weight: 750; text-decoration: none;
}
.kor-nav a small { color: #64748b; font-weight: 600; }
.kor-nav a:hover { border-color: #c7d2fe; background: #eef2ff; }
.kor-nav-next { text-align: right; }

@media (max-width: 680px) {
  .kor-page { padding-top: 16px; }
  .kor-hero { padding: 26px 22px; border-radius: 20px; }
  .kor-hero-mark { display: none; }
  .kor-panel, .kor-results { padding: 16px; border-radius: 18px; }
  .kor-cal { border-spacing: 3px; }
  .kor-cal td { height: 46px; border-radius: 9px; font-size: .9rem; }
  .kor-cal td.ada a small { top: 2px; right: 3px; min-width: 16px; font-size: .6rem; }
  .kor-cal-nav { gap: 6px; }
  .kor-cal-nav .kor-reset { margin-left: 0; width: 100%; justify-content: center; }
  .kor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kor-nav a { min-width: 0; flex: 1; }
  .kor-results-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .kor-card, .kor-chip-link { transition: none; }
  .kor-card:hover { transform: none; }
}
