/* =========================================================================
   DarkTunnel - tema blog ringan, responsif, mode gelap.
   Warna utama diambil dari pengaturan (--brand) di <head>.
   ========================================================================= */

:root {
  --brand: #1ba124;
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #151a21;
  --muted: #5f6977;
  --line: #e3e7ec;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, .25);
  --footer-bg: #11161d;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand-ink: color-mix(in srgb, var(--brand) 70%, #fff);
  --brand-soft: color-mix(in srgb, var(--brand) 18%, transparent);
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1d232c;
  --text: #e8ecf1;
  --muted: #9aa5b4;
  --line: #29313c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, .7);
  --footer-bg: #090c10;
  color-scheme: dark;
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 66px); }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 820px; }
.site-main { min-height: 60vh; padding: 20px 0 48px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--brand); filter: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.bordered { border: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text); }
.brand img { height: 32px; width: auto; }
.brand-mark { width: 30px; height: 30px; color: var(--text); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); }
.header-actions { margin-left: auto; display: flex; gap: 2px; }
.menu-btn { display: none; }
[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }

.tag-strip { border-top: 1px solid var(--line); }
.tag-strip-inner {
  display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px;
  scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.tag-strip-inner::-webkit-scrollbar { display: none; }
/* Jarak di ujung kanan saat digulir habis (padding kanan diabaikan pada flex yang bisa digulir). */
.tag-strip-inner::after { content: ""; flex: 0 0 10px; }
.tag-strip a {
  flex: none; padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--muted); background: var(--surface-2);
}
.tag-strip a:hover { color: var(--text); }
.tag-strip a[aria-current] { background: var(--brand); color: #fff; }

/* Pencarian */
.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 0 14px; }
.search-form {
  display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
}
.search-form:focus-within { border-color: var(--brand); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: 8px 0; outline: none; }
.suggest:empty { display: none; }
.suggest { margin-top: 10px; display: grid; gap: 4px; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-sm); }
.suggest a:hover, .suggest a.is-active { background: var(--surface-2); }
.suggest img { width: 56px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.suggest .s-title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.suggest .s-tag { font-size: 12px; color: var(--brand-ink); font-weight: 600; }
.suggest .s-more { justify-content: center; font-weight: 600; color: var(--brand-ink); }
.suggest .s-empty { padding: 8px; color: var(--muted); font-size: 14px; }

/* Drawer (menu HP) */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .45); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--surface); padding: 14px 18px 24px; overflow-y: auto;
  box-shadow: var(--shadow-lg); animation: slideIn .2s ease-out;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-head .brand-name { font-weight: 800; font-size: 18px; }
.drawer-nav { display: grid; gap: 2px; margin-bottom: 18px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: var(--radius-sm); font-weight: 600; }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* ---------- Tata letak ---------- */
.layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
}
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; }
.section-title .i { color: var(--brand); }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.section-more:hover { text-decoration: underline; }
.more-wrap { margin-top: 20px; text-align: center; }

.page-head { margin: 6px 0 22px; }
.page-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-ink); }
.page-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.page-title small { font-size: .5em; font-weight: 600; color: var(--muted); margin-left: 6px; }
.page-desc { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.page-head .btn { margin-top: 14px; }

/* Breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .5; }
.crumbs a:hover { color: var(--brand-ink); }

/* ---------- Kartu ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid-ad { grid-column: 1 / -1; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card-noimg .i { width: 32px; height: 32px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card-tag {
  align-self: flex-start; position: relative; z-index: 2;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--brand-ink);
  background: var(--brand-soft); padding: 3px 10px; border-radius: 999px;
}
.card-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--brand-ink); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-rank {
  position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

/* hero */
.hero { display: grid; gap: 20px; margin-bottom: 30px; }
.card-hero .card-title { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; }
.card-hero .card-body { padding: 18px 20px 20px; }
.hero-side { display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.55fr 1fr; }
}

/* row */
.card-row { flex-direction: row; align-items: stretch; }
.card-row .card-media { flex: none; width: 38%; max-width: 200px; aspect-ratio: auto; min-height: 100px; }
.card-row .card-body { padding: 12px 14px; gap: 6px; }
.card-row .card-title { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-row .card-rank { width: 26px; height: 26px; font-size: 13px; left: 8px; top: 8px; }
.rows { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* mini (sidebar) */
.mini-list { display: grid; gap: 12px; }
.card-mini { flex-direction: row; box-shadow: none; border: 0; background: transparent; border-radius: 0; gap: 12px; }
.card-mini:hover { transform: none; box-shadow: none; }
.card-mini .card-media { flex: none; width: 84px; height: 64px; aspect-ratio: auto; border-radius: var(--radius-sm); }
.card-mini .card-body { padding: 0; gap: 4px; }
.card-mini .card-title { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-mini .card-meta { font-size: 12px; }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 20px; align-content: start; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.widget-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.widget-title .i { color: var(--brand); }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rank-list li { display: flex; gap: 12px; }
.rank-no { flex: none; width: 28px; font-size: 22px; font-weight: 800; line-height: 1.1; color: color-mix(in srgb, var(--brand) 55%, var(--muted)); }
.rank-list a { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.rank-list a:hover { color: var(--brand-ink); }
.rank-tag { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1023px) {
  .sidebar { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .sidebar-sticky { position: static; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip small { color: var(--muted); font-size: 11px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.page-btn {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600;
}
a.page-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.page-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-gap { display: inline-grid; place-items: center; min-width: 24px; color: var(--muted); }

/* ---------- Artikel ---------- */
.post { min-width: 0; }
.post-head { margin-bottom: 20px; }
.post-head .card-tag { display: inline-block; margin-bottom: 12px; }
.post-title { font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.byline img { flex: none; width: 36px; height: 36px; border-radius: 999px; object-fit: cover; background: var(--surface-2); }
.byline strong { display: block; font-size: 14.5px; }
.byline time { color: var(--muted); font-size: 13px; }
.post-stats { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; }
.post-stats span { display: inline-flex; align-items: center; gap: 5px; }
.bookmark-btn { margin-left: auto; padding: 8px 14px; font-size: 14px; }
.bookmark-btn .count { font-size: 12px; color: var(--muted); padding-left: 6px; border-left: 1px solid var(--line); }
.bookmark-btn .i-on, .bookmark-btn[aria-pressed="true"] .i-off { display: none; }
.bookmark-btn[aria-pressed="true"] .i-on { display: inline; color: var(--brand); }
.bookmark-btn[aria-pressed="true"] { border-color: var(--brand); }

/* Isi artikel (konten lama dari Blogger dipertahankan, hanya ditata) */
.prose { font-size: 18px; line-height: 1.78; overflow-wrap: break-word; }
.prose > * { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; line-height: 1.3; font-weight: 800; }
.prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.25em; }
.prose h4 { font-size: 1.1em; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:has(> img) { text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--brand); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: var(--radius-sm); margin: 0 auto; cursor: zoom-in; }
.prose table { border-collapse: collapse; max-width: 100%; }
.prose table.tr-caption-container { width: 100%; margin: 1.4em auto; }
.prose table.tr-caption-container td { padding: 0; border: 0; text-align: center; }
.prose .tr-caption { padding-top: 8px !important; font-size: 14px; line-height: 1.5; color: var(--muted); }
.prose table:not(.tr-caption-container) { display: block; overflow-x: auto; font-size: 16px; margin: 1.4em 0; }
.prose table:not(.tr-caption-container) td, .prose table:not(.tr-caption-container) th { border: 1px solid var(--line); padding: 8px 12px; }
.prose font { color: inherit !important; font: inherit !important; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

.read-also { margin: 1.6em 0; padding: 16px 18px; border-radius: var(--radius); background: var(--brand-soft); border-left: 4px solid var(--brand); }
.read-also-title { margin: 0 0 8px !important; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.read-also ul { margin: 0 !important; padding-left: 1.1em !important; }
.read-also li { margin: 0 0 6px !important; font-size: 16px; line-height: 1.45; }
.read-also a { color: var(--text) !important; font-weight: 600; text-decoration: none !important; }
.read-also a:hover { color: var(--brand-ink) !important; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.post-tags-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; margin-right: 4px; }

.share { margin-top: 24px; }
.share-title { margin: 0 0 10px; font-weight: 800; }
.share-list { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600;
}
.share-btn:hover { border-color: var(--brand); }
.share-whatsapp .i { color: #25d366; }
.share-facebook .i { color: #1877f2; }
.share-telegram .i { color: #229ed9; }
.share-pinterest .i { color: #e60023; }
.share-linkedin .i { color: #0a66c2; }

.author-box {
  display: flex; gap: 16px; margin-top: 28px; padding: 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.author-box-img { flex: none; }
.author-box-img img { display: block; width: 72px; height: 72px; border-radius: 999px; object-fit: cover; background: var(--surface-2); }
.author-box-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.author-box-name { font-size: 19px; font-weight: 800; margin: 2px 0 6px; }
.author-box-name a:hover { color: var(--brand-ink); }
.author-box-bio { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.author-box-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.related { margin-top: 36px; }

/* Lightbox gambar */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5, 8, 12, .92); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; right: 14px; top: 14px; color: #fff; background: rgba(255, 255, 255, .12); }

/* ---------- Penulis ---------- */
.profile {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
  padding: 28px; margin-bottom: 30px; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, var(--brand-soft), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.profile-img { width: 112px; height: 112px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--brand); background: var(--surface-2); }
.profile-body { flex: 1; min-width: 260px; }
.profile-bio { margin: 10px 0 0; color: var(--muted); max-width: 70ch; font-size: 16.5px; }
.profile-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 16px 0; font-size: 14.5px; color: var(--muted); }
.profile-stats strong { color: var(--text); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Pencarian / kosong / 404 ---------- */
.search-inline { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.search-inline input {
  flex: 1; min-width: 0; padding: 10px 16px; border-radius: 999px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); outline: none;
}
.search-inline input:focus { border-color: var(--brand); }
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 20px; margin-bottom: 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty > .i { width: 40px; height: 40px; color: var(--brand); }
.empty p { margin: 0; max-width: 48ch; }
.not-found { text-align: center; padding: 40px 0 10px; display: grid; justify-items: center; gap: 6px; }
.nf-code { margin: 0; font-size: clamp(72px, 14vw, 128px); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--brand); }
.not-found .search-inline { width: 100%; }

/* Halaman statis */
.static-page { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.static-page .prose { font-size: 17px; }

/* ---------- Iklan ---------- */
.ad { position: relative; display: block; text-align: center; margin: 24px auto; min-height: 50px; overflow: hidden; }
.ad-label { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-wide { margin-top: 16px; margin-bottom: 0; }
.prose .ad { margin: 1.6em auto; }
.sidebar .ad { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #c5ccd6; padding: 44px 0 20px; font-size: 15px; }
.site-footer .brand, .site-footer .brand-mark { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-about { grid-column: span 2; max-width: 380px; }
@media (max-width: 600px) { .footer-about { grid-column: 1 / -1; } }
.footer-about p { margin: 12px 0 14px; color: #9aa5b4; }
.footer-title { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a:hover, .footer-bottom a:hover { color: #fff; }
.social { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.site-footer .social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.site-footer .social a:hover { background: var(--brand); color: #fff; }
.author-box .social a, .profile-links .icon-btn { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: #8c97a6; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; }

/* Notifikasi push: ajakan berlangganan & tautan di footer */
.push-toggle { display: inline-flex; align-items: center; gap: 6px; }
.push-toggle[hidden] { display: none; }
.push-toggle .i { width: 15px; height: 15px; }
.push-ask {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; width: min(380px, calc(100% - 32px));
  display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s;
}
.push-ask.is-open { opacity: 1; transform: none; }
.push-ask-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.push-ask-icon svg { width: 22px; height: 22px; }
.push-ask-body { min-width: 0; flex: 1; }
.push-ask-title { margin: 0 0 4px; font-weight: 800; font-size: 15.5px; line-height: 1.35; }
.push-ask-text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.push-ask-status { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.push-ask-status.is-ok { color: var(--brand); font-weight: 600; }
.push-ask-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.push-ask-actions button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 0; }
.push-ask-later { background: transparent; color: var(--muted); }
.push-ask-later:hover { background: var(--surface-2); color: var(--text); }
.push-ask-ok { background: var(--brand); color: #fff; }
.push-ask-ok:hover { background: var(--brand-ink); }
.push-ask-ok:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) {
  .push-ask { left: 10px; right: 10px; bottom: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .push-ask { transition: none; } }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  transition: .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ---------- Komentar ---------- */
.post-stats a { display: inline-flex; align-items: center; gap: 5px; }
.post-stats a:hover { color: var(--brand-ink); }
.comments { margin-top: 32px; }
.section-title .count { font-size: 14px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.cmt-list { display: grid; gap: 14px; }
.cmt-list:empty { display: none; }
.cmt { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cmt-reply { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.cmt.is-pending { border-style: dashed; opacity: .85; }
.cmt.is-admin:not(.cmt-reply) { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.cmt-ava {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; object-fit: cover;
  font-weight: 800; font-size: 17px; color: #fff; background: hsl(var(--h, 140) 55% 42%);
}
.cmt-reply .cmt-ava { width: 34px; height: 34px; font-size: 15px; }
.cmt-main { flex: 1; min-width: 0; }
.cmt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 4px; }
.cmt-name { font-weight: 700; overflow-wrap: anywhere; }
.cmt-time { font-size: 13px; color: var(--muted); }
.cmt-time:hover { color: var(--brand-ink); }
.cmt-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.cmt-badge .i { width: 13px; height: 13px; }
.cmt-badge-wait { background: color-mix(in srgb, #d97706 15%, transparent); color: #b45309; }
[data-theme="dark"] .cmt-badge-wait { color: #fbbf24; }
.cmt-text { font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.cmt-text p { margin: 0 0 8px; }
.cmt-text p:last-child { margin: 0; }
.cmt-reply-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.cmt-reply-btn:hover { color: var(--brand-ink); }
.cmt-reply-btn .i { width: 15px; height: 15px; }
.cmt-replies { margin-top: 12px; display: grid; gap: 14px; }
.cmt-empty { margin: 0 0 6px; }
.cmt-form { margin-top: 18px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cmt-form-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.cmt-replying {
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--brand-soft); font-size: 14px;
}
.cmt-replying .i { width: 16px; height: 16px; color: var(--brand-ink); }
.cmt-cancel { margin-left: auto; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--brand-ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 6px; margin-bottom: 14px; position: relative; }
.field-label { font-size: 14px; font-weight: 700; }
.field-label em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); outline: none; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #dc2626; }
.field-hint { justify-self: end; font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cmt-captcha { margin-bottom: 14px; min-height: 65px; }
.cmt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cmt-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; flex: 1 1 260px; font-size: 13px; color: var(--muted); }
.cmt-note .i { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }
.cmt-note a { color: var(--brand-ink); text-decoration: underline; }
.cmt-form .btn[disabled] { opacity: .6; cursor: progress; }
.cmt-msg { margin: 14px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; background: var(--brand-soft); color: var(--brand-ink); }
.cmt-msg.is-error { background: color-mix(in srgb, #dc2626 12%, transparent); color: #b91c1c; }
[data-theme="dark"] .cmt-msg.is-error { color: #fca5a5; }
.cmt-closed { margin: 12px 0 0; }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .cmt { padding: 14px; gap: 10px; }
  .cmt-form { padding: 16px; }
  .cmt-foot .btn { width: 100%; justify-content: center; }
}
/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .container { padding: 0 14px; }
  .tag-strip-inner { gap: 8px; padding: 10px 14px 12px; }
  .site-main { padding-top: 14px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 26px; height: 26px; }
  .grid { gap: 16px; }
  .prose { font-size: 17px; }
  .post-meta { gap: 12px; }
  .bookmark-btn { margin-left: 0; }
  .author-box { flex-direction: column; }
  .profile { padding: 20px; }
  .card-row .card-media { width: 120px; }
  .share-btn span { display: none; }
  .share-btn { padding: 10px; }
  .share-native span, [data-copy-link] span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .sidebar, .share, .ad, .to-top, .related, .bookmark-btn { display: none !important; }
  body { background: #fff; color: #000; }
}
.preview-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, #2563eb 14%, transparent); color: #2563eb; font-size: 14px; font-weight: 600; }
.preview-bar a { text-decoration: underline; }
