/*
Theme Name:  Argumenta
Theme URI:   https://argumenta.id
Author:      Argumenta.id
Author URI:  https://argumenta.id
Description: v4.2 - Tema editorial "paper & ink" untuk media berita Indonesia. v2.0: Halaman beranda khusus yang dapat diedit, plugin manajemen iklan dengan jadwal, tampilan jumlah views, logo adjustable, dan warna teal brand.
Version:     7.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: argumenta
Tags:        news, blog, custom-colors, custom-menu, featured-images, full-width-template, sticky-post, theme-options, two-columns, right-sidebar, editor-style, translation-ready
*/

/* ============================================================
   TABLE OF CONTENTS
   1.  CSS Custom Properties (Variables)
   2.  Reset & Base
   3.  Typography
   4.  Layout & Grid
   5.  Header & Navigation
   6.  Category Switcher
   7.  Hero Section
   8.  Post Cards
   9.  Single Post
   10. Sidebar & Widgets
   11. Category / Archive Hero
   12. Filter Bar
   13. Pagination
   14. Comments
   15. Footer
   16. Utilities
   17. Responsive
============================================================ */

/* ─── 1. CSS Custom Properties ─────────────────────────── */
:root {
  /* ─────────────────────────────────────────────────
     ARGUMENTA DESIGN TOKENS
     Brand color diambil langsung dari logo: #09575b
  ───────────────────────────────────────────────── */

  /* Base */
  --ink:    #0d0c0a;
  --paper:  #f5f0e8;
  --cream:  #ede8db;
  --border: #d2ccbb;
  --muted:  #70675c;

  /* Brand — logo exact + turunannya */
  --brand:      #09575b;
  --brand-dk:   #064044;
  --brand-mid:  #0d6b70;
  --brand-lt:   #e8f4f4;

  /* Alias teal → brand (backward compat) */
  --teal:       #09575b;
  --teal-light: #0d6b70;

  /* Kategori — seimbang dengan teal gelap logo */
  --red:    #b83228;
  --blue:   #1e5080;
  --gold:   #9c720a;
  --green:  #1e6645;
  --purple: #6b3080;
  --olive:  #4a5e1e;
  --brown:  #6e3818;
  --mauve:  #8a3c5a;

  /* Accent default = brand */
  --accent: #09575b;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  --max-w: 1400px;
  --col-gap: 1.5rem;
  --sidebar-w: 300px;
  --radius: 0;            /* editorial: sharp corners */
  --transition: 0.2s ease;
}

/* ─── 2. Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* paper noise texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .35;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ─── 3. Typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
h5 { font-size: 0.95rem; font-weight: 600; }
h6 { font-size: 0.85rem; font-weight: 600; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

blockquote {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
}
blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
}

code, pre {
  font-family: var(--font-mono);
  background: var(--cream);
  font-size: 0.85em;
}
code { padding: 0.1em 0.4em; border-radius: 3px; }
pre { padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); }

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ─── 4. Layout & Grid ──────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.site-main { min-height: 60vh; }

/* Two-column layout */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.main-content-area { border-right: 1px solid var(--border); padding: 2.5rem; }
.sidebar-area { padding: 2rem 1.5rem; }

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.posts-grid.layout-list { grid-template-columns: 1fr; gap: 0; }
.posts-grid.layout-three { grid-template-columns: repeat(3, 1fr); }

/* ─── 5. Header & Navigation ────────────────────────────── */
#masthead {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: rgba(245, 240, 232, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 800;
}

.site-branding-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.site-branding { display: flex; align-items: baseline; gap: 1px; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1;
}
.site-title a { color: var(--ink); transition: color var(--transition); }
.site-title a:hover { color: var(--accent); }
.site-title-dot {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--red);
  font-weight: 500;
}
.site-description {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: none; /* shown on wider screens */
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.header-search-toggle {
  background: none; border: 1px solid var(--border);
  padding: 0.42rem 0.9rem; font-size: 0.82rem;
  color: var(--muted); cursor: pointer; transition: all var(--transition);
}
.header-search-toggle:hover { border-color: var(--ink); color: var(--ink); }


/* Primary Navigation */
.main-navigation {
  border-top: 1px solid var(--border);
}
.main-navigation .nav-menu-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-navigation .nav-menu-container::-webkit-scrollbar { display: none; }

.main-navigation ul { display: flex; }
.main-navigation ul li { list-style: none; }
.main-navigation ul li a {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* Breaking ticker */
.breaking-ticker {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 34px;
}
.ticker-label {
  background: var(--red);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(245,240,232,0.7);
  padding: 0 2.5rem;
}
.ticker-item::after {
  content: '◆';
  margin-left: 2.5rem;
  color: var(--red);
  font-size: 0.55rem;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── 6. Category Switcher (Archive pages) ──────────────── */
.category-switcher {
  background: var(--ink);
  position: relative; /* tidak sticky */
  z-index: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-switcher::-webkit-scrollbar { display: none; }
.category-switcher-inner {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.cat-switch-btn {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 1rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(245,240,232,0.35);
  background: none; border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
}
.cat-switch-btn:hover { color: rgba(245,240,232,0.75); }
.cat-switch-btn.is-active {
  color: var(--paper);
  border-bottom-color: var(--accent);
}
.cat-switch-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cat-switch-count {
  font-family: var(--font-mono); font-size: 0.6rem;
  background: rgba(255,255,255,0.08); color: rgba(245,240,232,0.4);
  padding: 0.1rem 0.42rem; border-radius: 100px;
  transition: all var(--transition);
}
.cat-switch-btn.is-active .cat-switch-count {
  background: var(--accent); color: white;
}

/* ─── 7. Hero Section ───────────────────────────────────── */
/* Homepage Hero */
.home-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 2.5rem 0;
  overflow: hidden;
}
.home-hero .container { max-width: var(--max-w); margin: 0 auto; padding: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: end;
}

/* Category Archive Hero */
.archive-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.archive-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: end;
}
.archive-hero-watermark {
  position: absolute; right: -1rem; top: 50%;
  transform: translateY(-55%);
  font-family: var(--font-display);
  font-size: 13rem; font-weight: 900;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: 0.1em;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(245,240,232,0.35);
  margin-bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent); flex-shrink: 0;
}
.archive-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -1.5px;
  margin-bottom: 1rem;
}
.archive-hero-desc {
  font-size: 0.9rem; font-weight: 300; line-height: 1.75;
  color: rgba(245,240,232,0.45);
  max-width: 440px;
}
.archive-hero-stats {
  display: flex; gap: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2rem;
}
.hstat { display: flex; flex-direction: column; gap: 0.2rem; }
.hstat-num {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700; line-height: 1;
  color: var(--paper);
}
.hstat-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.28);
}

/* Featured / Lead card inside hero */
.hero-featured { padding-bottom: 2.5rem; }
.hero-feat-img {
  height: 220px;
  background: rgba(255,255,255,0.04);
  overflow: hidden; margin-bottom: 1.25rem;
  position: relative;
}
.hero-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-feat-img .no-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: rgba(255,255,255,0.12);
}
.hero-feat-tag {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.4rem;
}
.hero-feat-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; line-height: 1.35;
  color: var(--paper); margin-bottom: 0.5rem;
  transition: opacity var(--transition);
}
.hero-feat-title:hover { opacity: 0.75; }
.hero-feat-meta { font-size: 0.72rem; color: rgba(245,240,232,0.35); }

/* ─── 8. Post Cards ─────────────────────────────────────── */
.post-card {
  cursor: pointer;
  transition: opacity var(--transition);
}
.post-card:hover { opacity: 0.85; }
.post-card a { display: block; }

.post-card-thumb {
  overflow: hidden;
  margin-bottom: 1rem;
  height: 200px;
  background: var(--cream);
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb .no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted);
  background: linear-gradient(135deg, var(--cream) 0%, #ccc8be 100%);
}

.post-card-type {
  font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.35rem;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--ink); margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.post-card:hover .post-card-title { color: var(--blue); }
.post-card-excerpt {
  font-size: 0.82rem; font-weight: 300; line-height: 1.65;
  color: var(--muted); margin-bottom: 0.7rem;
}
.post-card-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; color: var(--muted);
  flex-wrap: wrap;
}
.post-card-author { font-weight: 600; color: var(--ink); }
.post-card-time { font-family: var(--font-mono); }
.post-card-read { font-family: var(--font-mono); }

/* List layout override */
.posts-grid.layout-list .post-card {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  cursor: pointer;
}
.posts-grid.layout-list .post-card:first-child { border-top: 1px solid var(--border); }
.posts-grid.layout-list .post-card .post-card-thumb {
  height: 88px; margin: 0; order: 2;
}
.posts-grid.layout-list .post-card:hover .post-card-thumb img { transform: none; }
.posts-grid.layout-list .post-card .post-card-excerpt { display: none; }

/* Badges */
.post-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.58rem;
  padding: 0.12rem 0.45rem; border-radius: 100px;
  margin-left: auto;
}
.post-badge-new   { border: 1px solid var(--accent); color: var(--accent); }
.post-badge-pop   { border: 1px solid var(--gold);   color: var(--gold);   }
.post-badge-inv   { border: 1px solid var(--blue);   color: var(--blue);   }

/* Featured / sticky card */
.post-card.is-featured .post-card-thumb { height: 260px; }
.post-card.is-featured .post-card-title { font-size: 1.25rem; }

/* ─── 9. Single Post ────────────────────────────────────── */

/* Reading progress */
.sp-progress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; z-index: 999; pointer-events: none;
}
.sp-progress__bar { height: 100%; width: 0%; transition: width .1s linear; }

/* Breadcrumb */
.sp-breadcrumb {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}
.sp-breadcrumb__inner {
    max-width: var(--max-w); margin: 0 auto; padding: .55rem 2rem;
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-mono); font-size: .6rem;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted);
}
.sp-breadcrumb__inner a { color: var(--muted); text-decoration: none; transition: color .2s; }
.sp-breadcrumb__inner a:hover { color: var(--teal); }
.sp-breadcrumb__current { color: var(--ink); }

/* Outer layout */
.sp-main { min-height: 60vh; background: var(--paper); }
.sp-wrap {
    display: grid;
    grid-template-columns: 1fr 284px;
    max-width: var(--max-w);
    margin: 0 auto;
    align-items: start;
}

/* Article area */
.sp-article {
    padding: 2.75rem 3rem 3.5rem;
    border-right: 1px solid var(--border);
    min-width: 0;
}

/* ── Pre-header: eyebrow + judul + subtitle ── */
.sp-pre { margin-bottom: 0; }

.sp-eyebrow {
    display: flex; align-items: center; gap: .7rem;
    margin-bottom: 1.1rem;
}
.sp-eyebrow__bar {
    width: 20px; height: 2.5px; flex-shrink: 0; border-radius: 1px;
}
.sp-eyebrow__text {
    font-family: var(--font-mono);
    font-size: .63rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
}

.sp-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    font-weight: 900; line-height: 1.07;
    letter-spacing: -.5px;
    margin-bottom: 1rem; color: var(--ink);
}
.sp-title__em {
    font-style: italic; font-weight: 900;
}

.sp-subtitle {
    font-family: var(--font-display);
    font-size: 1.12rem; font-style: italic;
    font-weight: 400; color: var(--muted);
    line-height: 1.65; margin-bottom: 0;
    max-width: 640px;
}

/* ── Meta bar horizontal ── */
.sp-metabar {
    display: flex; align-items: center;
    gap: 1.25rem; flex-wrap: wrap;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.5rem 0 2rem;
}
.sp-metabar__author {
    display: flex; align-items: center; gap: .7rem;
    flex-shrink: 0;
}
.sp-metabar__av {
    width: 44px; height: 44px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0; background: var(--border);
}
.sp-metabar__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-metabar__author-info { display: flex; flex-direction: column; gap: .08rem; }
.sp-metabar__name {
    font-family: var(--font-body);
    font-size: .85rem; font-weight: 700;
    color: var(--ink); text-decoration: none;
    transition: color .2s;
}
.sp-metabar__name:hover { color: var(--cat-color, var(--teal)); }
.sp-metabar__role {
    font-family: var(--font-mono);
    font-size: .58rem; color: var(--muted);
    letter-spacing: .05em;
}

/* Separator vertikal */
.sp-metabar__sep {
    width: 1px; height: 36px;
    background: var(--border); flex-shrink: 0;
}

/* Stats: tanggal · waktu · views */
.sp-metabar__stats {
    display: flex; align-items: center; gap: 1.5rem;
    flex-wrap: wrap;
}
.sp-metabar__stat {
    display: flex; flex-direction: column; gap: .06rem;
}
.sp-metabar__stat-lbl {
    font-family: var(--font-mono);
    font-size: .5rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--muted);
}
.sp-metabar__stat-val {
    font-family: var(--font-mono);
    font-size: .75rem; font-weight: 600; color: var(--ink);
}

/* Share icons — kanan */
.sp-metabar__share {
    display: flex; align-items: center; gap: .35rem;
    margin-left: auto;
}
.sp-metabar__share-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); color: var(--muted);
    text-decoration: none; background: none; cursor: pointer;
    transition: all .18s;
}
.sp-metabar__share-btn:hover {
    background: var(--ink); color: #fff; border-color: var(--ink);
}
.sp-metabar__share-btn.copied {
    background: var(--teal); color: #fff; border-color: var(--teal);
}

/* ── Featured image ── */
.sp-featured { margin-bottom: 2.25rem; }
.sp-featured__img {
    width: 100%; max-height: 520px; object-fit: cover; display: block;
}
.sp-featured__cap {
    font-family: var(--font-mono); font-size: .62rem;
    color: var(--muted); padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    letter-spacing: .04em;
}

/* ── Content typography ── */
.sp-content { line-height: 1.9; color: var(--ink); font-size: 1.02rem; }
.sp-content p   { margin-bottom: 1.5rem; }
.sp-content h2  {
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
    margin: 2.75rem 0 1rem; line-height: 1.18;
    border-bottom: 1px solid var(--border); padding-bottom: .5rem;
}
.sp-content h3  { font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.sp-content h4  { font-family: var(--font-display); font-size: 1.06rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.sp-content ul,
.sp-content ol  { padding-left: 1.6rem; margin-bottom: 1.5rem; }
.sp-content ul  { list-style: disc; }
.sp-content ol  { list-style: decimal; }
.sp-content li  { margin-bottom: .5rem; }
.sp-content a   { color: var(--cat-color, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.sp-content img { max-width: 100%; height: auto; display: block; margin: 1.75rem auto; }
.sp-content blockquote {
    border-left: 3px solid var(--cat-color, var(--accent));
    padding: .9rem 1.5rem; margin: 2rem 0;
    background: rgba(0,0,0,.025); font-style: italic; color: var(--muted); font-size: 1.06rem;
}
.sp-content blockquote p:last-child { margin-bottom: 0; }
.sp-content pre { background: var(--ink); color: var(--paper); padding: 1.25rem; overflow-x: auto; font-size: .85rem; line-height: 1.65; margin-bottom: 1.5rem; }
.sp-content code { font-family: var(--font-mono); font-size: .88em; background: var(--cream); padding: .1em .35em; }
.sp-content pre code { background: none; padding: 0; color: inherit; }
.sp-content hr  { border: none; border-top: 1px solid var(--border); margin: 2.75rem 0; }
.sp-content figure { margin: 2rem 0; }
.sp-content figcaption { font-family: var(--font-mono); font-size: .62rem; color: var(--muted); padding-top: .45rem; text-align: center; }
.sp-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: .9rem; }
.sp-content table th,
.sp-content table td { border: 1px solid var(--border); padding: .65rem .9rem; text-align: left; }
.sp-content table th { background: var(--cream); font-family: var(--font-display); font-weight: 700; }

/* ── Baca Juga (tengah konten) ── */
.sp-baca-juga {
    margin: 2.5rem 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    padding: 1.5rem 0;
}
.sp-baca-juga__lbl {
    font-family: var(--font-mono); font-size: .62rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--c, var(--accent));
    padding: .25rem .65rem;
    border: 1.5px solid var(--c, var(--accent));
    display: inline-block; margin-bottom: 1.15rem;
}
.sp-baca-juga__item {
    display: grid; grid-template-columns: 90px 1fr; gap: .9rem;
    padding: .9rem 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: background .15s, padding-left .18s;
}
.sp-baca-juga__item:last-child { border-bottom: none; }
.sp-baca-juga__item:hover { background: rgba(0,0,0,.015); padding-left: .3rem; }
.sp-baca-juga__thumb { width: 90px; height: 64px; overflow: hidden; background: var(--cream); }
.sp-baca-juga__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-baca-juga__no-img { width: 100%; height: 100%; background: var(--cream); }
.sp-baca-juga__info { min-width: 0; display: flex; flex-direction: column; gap: .22rem; }
.sp-baca-juga__cat { font-family: var(--font-mono); font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sp-baca-juga__title {
    font-family: var(--font-display); font-size: .92rem; font-weight: 700;
    line-height: 1.32; color: var(--ink); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.sp-baca-juga__item:hover .sp-baca-juga__title { color: var(--cat-color, var(--teal)); }
.sp-baca-juga__date { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }

/* ── Tags ── */
.sp-tags {
    display: flex; flex-wrap: wrap; gap: .45rem;
    margin: 2.25rem 0 2rem;
    padding-top: 1.75rem; border-top: 1px solid var(--border);
}
.sp-tag {
    display: inline-block; padding: .3rem .8rem;
    font-family: var(--font-mono); font-size: .63rem; letter-spacing: .05em;
    border: 1px solid var(--border); color: var(--muted);
    text-decoration: none; transition: all .16s;
}
.sp-tag:hover { border-color: var(--cat-color, var(--accent)); color: var(--cat-color, var(--accent)); }

/* ── Author Box ── */
.sp-author-box {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.6rem; background: var(--cream);
    border-top: 3px solid var(--c, var(--teal));
    margin-bottom: 2.25rem;
}
.sp-author-box__av { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--border); }
.sp-author-box__av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-author-box__name {
    display: block; text-decoration: none; color: var(--ink);
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    margin-bottom: .2rem; transition: color .2s;
}
.sp-author-box__name:hover { color: var(--c, var(--teal)); }
.sp-author-box__role { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.sp-author-box__bio { font-size: .82rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Related bawah ── */
.sp-related-bot { margin-bottom: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sp-related-bot__hdr {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 900;
    margin: 0 0 1.25rem; display: flex; align-items: center; gap: .5rem;
}
.sp-related-bot__hdr::before {
    content: ''; width: 4px; height: 15px;
    background: var(--c, var(--teal)); border-radius: 1px; flex-shrink: 0;
}
.sp-related-bot__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.sp-relcard { display: block; text-decoration: none; color: var(--ink); }
.sp-relcard__thumb { height: 148px; overflow: hidden; background: var(--cream); margin-bottom: .75rem; }
.sp-relcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.sp-relcard:hover .sp-relcard__img { transform: scale(1.04); }
.sp-relcard__no-img { width: 100%; height: 100%; background: var(--cream); }
.sp-relcard__cat { font-family: var(--font-mono); font-size: .57rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: .28rem; }
.sp-relcard__ttl {
    font-family: var(--font-display); font-size: .9rem; font-weight: 700;
    line-height: 1.35; margin: 0 0 .28rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.sp-relcard:hover .sp-relcard__ttl { color: var(--cat-color, var(--teal)); }
.sp-relcard__date { font-family: var(--font-mono); font-size: .6rem; color: var(--muted); }

/* ── Prev/Next ── */
.sp-post-nav {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border);
    border-top: 2px solid var(--ink); margin-top: 2rem;
}
.sp-post-nav__item {
    display: flex; flex-direction: column; gap: .32rem;
    padding: 1.25rem 1.5rem; background: var(--paper);
    text-decoration: none; color: var(--ink); transition: background .2s;
}
.sp-post-nav__item:hover { background: var(--cream); }
.sp-post-nav__next { text-align: right; }
.sp-post-nav__dir {
    font-family: var(--font-mono); font-size: .6rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.sp-post-nav__ttl {
    font-family: var(--font-display); font-size: .95rem; font-weight: 700;
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.sp-post-nav__item:hover .sp-post-nav__ttl { color: var(--cat-color, var(--teal)); }

/* ═══ SIDEBAR ════════════════════════════════ */
.sp-sidebar { padding: 2rem 1.5rem 2rem; }
.sp-sidebar__inner {
    position: sticky; top: 70px;
    max-height: calc(100vh - 90px);
    overflow-y: auto; overflow-x: hidden;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
    padding-right: 3px;
}
.sp-sidebar__inner::-webkit-scrollbar { width: 3px; }
.sp-sidebar__inner::-webkit-scrollbar-thumb { background: var(--border); }

/* ── TOC ── */
.sp-toc nav { display: flex; flex-direction: column; }
.sp-toc__link {
    font-size: .8rem; color: var(--muted);
    text-decoration: none; padding: .32rem 0;
    border-bottom: 1px solid var(--cream);
    transition: color .18s, padding-left .18s;
    line-height: 1.4; display: block;
}
.sp-toc__link:last-child { border-bottom: none; }
.sp-toc__link--h3 { padding-left: .85rem; font-size: .75rem; }
.sp-toc__link:hover { color: var(--teal); }
.sp-toc__link.sp-toc--active { color: var(--teal); font-weight: 600; padding-left: .4rem; }
.sp-toc__link--h3.sp-toc--active { padding-left: 1.25rem; }

/* ── Artikel Populer ── */
.sp-pop__item {
    display: flex; align-items: flex-start; gap: .65rem;
    padding: .62rem 0; border-bottom: 1px solid var(--cream);
    text-decoration: none; color: var(--ink); transition: color .15s;
}
.sp-pop__item:last-child { border-bottom: none; }
.sp-pop__item:hover { color: var(--teal); }
.sp-pop__num {
    font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
    color: var(--teal); flex-shrink: 0; min-width: 22px; padding-top: 1px;
}
.sp-pop__ttl {
    font-size: .8rem; font-weight: 500; line-height: 1.42;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .2s;
}
.sp-pop__item:hover .sp-pop__ttl { color: var(--teal); }

/* ══ RESPONSIVE ══════════════════════════════ */
@media (max-width: 1100px) {
    .sp-article { padding: 2.25rem 2rem 3rem; }
    .sp-wrap { grid-template-columns: 1fr 264px; }
}
@media (max-width: 1024px) {
    .sp-wrap { grid-template-columns: 1fr; }
    .sp-article { border-right: none; padding: 2rem 1.75rem; }
    .sp-sidebar { border-top: 1px solid var(--border); padding: 2rem 1.75rem; }
    .sp-sidebar__inner { position: static; max-height: none; overflow: visible; }
    .sp-related-bot__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .sp-article { padding: 1.5rem 1.25rem; }
    .sp-sidebar  { padding: 1.5rem 1.25rem; }
    .sp-title    { letter-spacing: -.3px; }
    .sp-metabar  { gap: .75rem; }
    .sp-metabar__stats { gap: 1rem; }
    .sp-metabar__share { margin-left: 0; }
    .sp-related-bot__grid { grid-template-columns: 1fr; }
    .sp-post-nav { grid-template-columns: 1fr; }
    .sp-post-nav__next { text-align: left; }
}
@media (max-width: 540px) {
    .sp-article { padding: 1.25rem 1rem; }
    .sp-breadcrumb__inner { padding: .5rem 1rem; }
    .sp-title { font-size: 1.75rem; }
    .sp-subtitle { font-size: .95rem; }
    .sp-metabar__sep { display: none; }
    .sp-baca-juga__item { grid-template-columns: 72px 1fr; }
    .sp-baca-juga__thumb { width: 72px; height: 52px; }
}

/* ─── 10. Sidebar & Widgets ─────────────────────────────── */
.widget { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.widget:last-child { border-bottom: none; margin-bottom: 0; }
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 900;
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.widget-title::before {
  content: '';
  width: 4px; height: 15px;
  background: var(--accent); flex-shrink: 0;
}

/* Trending widget */
.trending-item {
  display: flex; gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0ece2;
  cursor: pointer;
}
.trending-item:last-child { border-bottom: none; }
.trending-item:hover .trending-title { color: var(--red); }
.trending-num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent); flex-shrink: 0;
  padding-top: 2px; font-weight: 500;
}
.trending-title { font-size: 0.82rem; font-weight: 500; line-height: 1.4; transition: color var(--transition); }
.trending-meta { font-size: 0.67rem; color: var(--muted); margin-top: 0.2rem; font-family: var(--font-mono); }

/* Categories widget */
.cat-widget-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0; border-bottom: 1px solid #f0ece2;
}
.cat-widget-list li:last-child { border-bottom: none; }
.cat-widget-list a {
  font-size: 0.82rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--ink); transition: color var(--transition);
}
.cat-widget-list a:hover { color: var(--accent); }
.cat-color-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cat-widget-count {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--muted); background: var(--cream);
  padding: 0.1rem 0.4rem; border-radius: 100px;
}

/* Tags widget */
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.tag-cloud a {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--muted); border-radius: 2px;
  transition: all var(--transition);
}
.tag-cloud a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Author widget */
.author-widget { text-align: center; }
.author-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 0.75rem;
  background: var(--cream); overflow: hidden;
}
.author-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.author-name-lg { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.author-role-lg { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.author-bio-lg { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* Newsletter widget */
.newsletter-widget { background: var(--ink); color: var(--paper); padding: 1.5rem; }
.nl-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; font-style: italic; margin-bottom: 0.35rem; }
.nl-subtitle { font-size: 0.75rem; color: rgba(245,240,232,0.4); line-height: 1.5; margin-bottom: 0.9rem; }
.nl-input {
  width: 100%; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--paper); padding: 0.5rem 0.75rem;
  font-size: 0.8rem; outline: none;
  margin-bottom: 0.5rem; transition: border var(--transition);
}
.nl-input:focus { border-color: rgba(255,255,255,0.35); }
.nl-input::placeholder { color: rgba(245,240,232,0.25); }
.nl-submit {
  width: 100%; background: var(--accent); color: white;
  border: none; padding: 0.6rem;
  font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: filter var(--transition);
}
.nl-submit:hover { filter: brightness(1.1); }

/* ─── 11. Filter Bar ────────────────────────────────────── */
.filter-bar { border-bottom: 1px solid var(--border); background: var(--paper); }
.filter-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 50px; gap: 1rem;
}
.sort-tabs { display: flex; gap: 2px; }
.sort-btn {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 500;
  color: var(--muted); background: none; border: none;
  padding: 0.38rem 0.75rem; border-radius: 4px;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.sort-btn:hover { color: var(--ink); background: var(--cream); }
.sort-btn.is-active { background: var(--ink); color: var(--paper); }
.filter-right { display: flex; align-items: center; gap: 1rem; }
.result-count { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); }
.view-toggle { display: flex; gap: 3px; }
.view-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border); background: none;
  cursor: pointer; color: var(--muted); font-size: 0.75rem;
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.view-btn.is-active, .view-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── 12. Pagination ────────────────────────────────────── */
.pagination-wrap { padding: 2rem 0; border-top: 1px solid var(--border); }
.nav-links { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.page-numbers {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--muted);
  transition: all var(--transition); border-radius: 3px;
}
.page-numbers:hover, .page-numbers.current {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.page-numbers.dots { border: none; }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 0.75rem; }

.load-more-btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink); border: 1.5px solid var(--ink);
  background: none; padding: 0.7rem 2rem;
  cursor: pointer; transition: all var(--transition);
}
.load-more-btn:hover { background: var(--ink); color: var(--paper); }

/* ─── 13. Comments ──────────────────────────────────────── */
.comments-area { padding-top: 3rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.comments-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900; margin-bottom: 2rem;
}
.comment {
  display: flex; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--cream); }
.comment-author-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.2rem; }
.comment-meta { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); margin-bottom: 0.6rem; }
.comment-text { font-size: 0.88rem; line-height: 1.65; color: var(--ink); }
.comment-reply-link { font-size: 0.72rem; color: var(--accent); margin-top: 0.5rem; display: inline-block; }

/* Comment form */
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--cream);
  border: 1px solid var(--border); padding: 0.6rem 0.85rem;
  font-size: 0.85rem; outline: none; margin-bottom: 0.75rem;
  transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ink); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
  background: var(--ink); color: var(--paper);
  border: none; padding: 0.7rem 1.75rem;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: background var(--transition);
}
.comment-form .submit:hover { background: var(--accent); }

/* ─── 14. Footer ────────────────────────────────────────── */
#colophon {
  background: var(--ink);
  color: var(--paper);
  padding: 3.5rem 2.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-w); margin: 0 auto;
  margin-bottom: 2.5rem;
}
.footer-col-label {
  font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,232,0.3); margin-bottom: 0.9rem;
}
.footer-link {
  display: block; font-size: 0.82rem;
  color: rgba(245,240,232,0.6); padding: 0.22rem 0;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--paper); }
.footer-tagline {
  font-size: 0.8rem; color: rgba(245,240,232,0.38);
  line-height: 1.6; font-style: italic; margin-top: 0.65rem; max-width: 220px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.footer-copy {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: rgba(245,240,232,0.25);
}
.footer-socials { display: flex; gap: 0.75rem; }
.social-link {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,240,232,0.45);
  font-size: 0.72rem; font-weight: 600;
  transition: all var(--transition);
}
.social-link:hover { background: var(--red); border-color: var(--red); color: white; }

/* Footer Nav */
.footer-nav ul { display: flex; flex-direction: column; gap: 0; }
.footer-nav ul li a {
  font-size: 0.82rem; color: rgba(245,240,232,0.6);
  padding: 0.22rem 0; display: block; transition: color var(--transition);
}
.footer-nav ul li a:hover { color: var(--paper); }

/* ─── 15. Utilities ─────────────────────────────────────── */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  height: 1px; overflow: hidden; position: absolute; width: 1px;
}
.skip-link { position: absolute; top: -40px; left: 0; z-index: 9999; transition: top 0.2s; }
.skip-link:focus { top: 0; }
.alignleft  { float: left;  margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide   { margin-left: -2rem; margin-right: -2rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin-top: 0.4rem; }
.sticky .post-card::before { content: '★ Artikel Pilihan'; display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }

/* Loading / skeleton */
.skeleton-card .post-card-thumb { background: linear-gradient(90deg, var(--cream) 25%, rgba(212,207,196,.6) 50%, var(--cream) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* Fade in */
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
.post-card { animation: fadeUp 0.35s ease both; }
.post-card:nth-child(1){animation-delay:.02s}
.post-card:nth-child(2){animation-delay:.06s}
.post-card:nth-child(3){animation-delay:.1s}
.post-card:nth-child(4){animation-delay:.14s}
.post-card:nth-child(5){animation-delay:.18s}
.post-card:nth-child(6){animation-delay:.22s}

/* ─── 16. Responsive ────────────────────────────────────── */
@media (max-width: 1280px) {
  .posts-grid.layout-three { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 260px; }
  .archive-hero-inner, .hero-grid { grid-template-columns: 1fr; }
  .hero-featured, .home-hero .hero-secondary { display: none; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar-area { border-top: 1px solid var(--border); padding: 2rem 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .main-content-area { padding: 1.5rem 1.25rem; }
  .home-hero, .archive-hero { padding: 2rem 1.25rem 0; }
  .filter-bar-inner { padding: 0 1.25rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid.layout-list .post-card { grid-template-columns: 1fr 90px; }
  .related-grid { grid-template-columns: 1fr; }
  .header-date { display: none; }
  .site-branding-bar { padding: 0 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  #colophon { padding: 2.5rem 1.25rem 1.25rem; }
}

/* ─── 18. View Count in Post Cards ──────────────────── */
.post-card-views {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--muted);
}
.post-card-views svg { opacity: 0.6; }

/* ─── 19. Teal Brand Color Overrides ────────────────── */
.ticker-label            { background: var(--teal) !important; }
.btn-subscribe:hover     { background: var(--teal) !important; }
.sort-btn.is-active      { background: var(--teal) !important; }
.view-btn.is-active      { background: var(--teal) !important; border-color: var(--teal) !important; }
.social-link:hover       { background: var(--teal) !important; border-color: var(--teal) !important; }
.page-numbers.current    { background: var(--teal) !important; border-color: var(--teal) !important; }
.comment-form .submit:hover { background: var(--teal) !important; }
.entry-content a         { color: var(--teal); }
.nl-submit               { background: var(--teal) !important; }
.hp-hero-btn             { background: var(--teal) !important; }
.load-more-btn:hover     { background: var(--teal) !important; border-color: var(--teal) !important; }
.cat-widget-list a:hover { color: var(--teal) !important; }
.tag-cloud a:hover       { background: var(--teal) !important; border-color: var(--teal) !important; }
.entry-tag:hover         { background: var(--teal) !important; border-color: var(--teal) !important; }

/* Logo sizing */
.custom-logo-link .custom-logo,
.site-branding .custom-logo {
  object-fit: contain;
  height: auto;
}

</style>

/* ─── Search Overlay ────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(15,14,12,0.96);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-overlay.is-open { opacity: 1; pointer-events: all; }
.search-overlay-inner { width: 100%; max-width: 640px; padding: 2rem; position: relative; }
.search-close {
  position: absolute; top: -1.5rem; right: 2rem;
  background: none; border: none; color: rgba(245,240,232,0.4);
  font-size: 1.25rem; cursor: pointer; transition: color 0.2s;
}
.search-close:hover { color: var(--paper); }

/* Search form inside overlay */
.search-overlay .search-form {
  display: flex; border-bottom: 2px solid rgba(245,240,232,0.2);
}
.search-overlay .search-field {
  flex: 1; background: none; border: none;
  color: var(--paper); font-family: var(--font-display);
  font-size: 2rem; font-weight: 700; padding: 0.75rem 0;
  outline: none;
}
.search-overlay .search-field::placeholder { color: rgba(245,240,232,0.2); }
.search-overlay .search-submit {
  background: none; border: none; color: rgba(245,240,232,0.5);
  cursor: pointer; padding: 0.5rem;
  transition: color 0.2s;
}
.search-overlay .search-submit:hover { color: var(--paper); }

/* Regular search form (not in overlay) */
.search-form {
  display: flex; border: 1px solid var(--border); background: var(--cream);
}
.search-form .search-field {
  flex: 1; background: none; border: none;
  padding: 0.6rem 0.85rem; font-size: 0.85rem; outline: none;
}
.search-form .search-submit {
  background: none; border: none; border-left: 1px solid var(--border);
  padding: 0.5rem 0.85rem; cursor: pointer; color: var(--muted);
  transition: all 0.2s;
}
.search-form .search-submit:hover { background: var(--ink); color: var(--paper); }

/* ─── Footer nav list ─────────────────────────────── */
.footer-nav-list { list-style: none; }
.footer-nav-list li a { font-size: 0.82rem; color: rgba(245,240,232,0.6); display: block; padding: 0.22rem 0; transition: color 0.15s; }
.footer-nav-list li a:hover { color: var(--paper); }
.footer-logo { display: inline-flex; align-items: baseline; gap: 1px; text-decoration: none; margin-bottom: 0.65rem; }
.footer-logo-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--paper); }

/* ─── Author item (sidebar) ───────────────────────── */
.a-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px solid #f0ece2; cursor: pointer; }
.a-item:last-child { border-bottom: none; }
.a-item:hover .a-name { color: var(--red); }
.a-item .a-ava { overflow: hidden; }
.a-item .a-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ─── 20. Homepage Layout Styles ────────────────────── */
.hp-hero { padding: 2.5rem 2.5rem 0; }
.hp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 3rem;
    align-items: center;
    padding-bottom: 2.5rem;
}
.hp-hero-content { display: flex; flex-direction: column; gap: 0.85rem; }
.hp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -1.5px; color: var(--paper);
}
.hp-hero-title a { color: var(--paper); }
.hp-hero-title a:hover { color: rgba(245,240,232,.75); }
.hp-hero-subtitle {
    font-size: .95rem; font-weight: 300; line-height: 1.75;
    color: rgba(245,240,232,.55); max-width: 500px;
}
.hp-hero-meta {
    display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: .7rem;
    color: rgba(245,240,232,.4);
}
.hp-hero-author { color: rgba(245,240,232,.8); font-weight: 600; }
.hp-views { display: flex; align-items: center; gap: .3rem; }
.hp-hero-btn {
    display: inline-flex; align-items: center;
    background: var(--accent); color: #fff;
    padding: .6rem 1.4rem; font-size: .82rem; font-weight: 500;
    transition: filter .2s; width: fit-content; margin-top: .5rem;
    border: none;
}
.hp-hero-btn:hover { filter: brightness(1.12); color: #fff; }
.hp-hero-image { position: relative; height: 360px; overflow: hidden; }
.hp-hero-img { width: 100%; height: 100%; object-fit: cover; }
.hp-hero-no-img {
    width: 100%; height: 100%;
    background: rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: .7rem;
    color: rgba(255,255,255,.2);
}

/* Section headers */
.hp-section { margin-bottom: 2.5rem; }
.hp-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: .85rem; margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ink);
}
.hp-section-title {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 900;
    display: flex; align-items: center; gap: .55rem;
}
.hp-section-title::before {
    content: ''; width: 4px; height: 16px;
    background: var(--accent); flex-shrink: 0;
}
.hp-section-more {
    font-family: var(--font-mono); font-size: .68rem;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); transition: color .2s;
}
.hp-section-more:hover { color: var(--accent); }

/* Ad zones */
.hp-ad-wrap {
    padding: .85rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.hp-ad-leaderboard .container,
.hp-ad-footer-banner .container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }
.hp-ad-label {
    font-family: var(--font-mono); font-size: .52rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 4px; text-align: center;
}
.hp-ad-content { text-align: center; }
.hp-ad-content img { display: inline-block; max-width: 100%; height: auto; }
.hp-ad-sidebar-rect { border: 1px solid var(--border); padding: .75rem; background: var(--cream); }
.hp-ad-sidebar-rect .hp-ad-content img { width: 100%; }

/* Popular widget */
.hp-popular-widget .widget-title { margin-bottom: 1rem; }

/* Footer logo */
.footer-logo-wrap .custom-logo { max-height: 50px; width: auto; }

@media (max-width: 1024px) {
    .hp-hero-grid { grid-template-columns: 1fr; }
    .hp-hero-image { height: 240px; }
}
@media (max-width: 768px) {
    .hp-hero { padding: 1.5rem 1.25rem 0; }
    .hp-hero-grid { gap: 1.25rem; }
    .hp-hero-title { font-size: 1.75rem; }
    .hp-ad-leaderboard .container,
    .hp-ad-footer-banner .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .sort-tabs { overflow-x: auto; scrollbar-width: none; }
  .sort-tabs::-webkit-scrollbar { display: none; }
  .hero-stats { gap: 1.5rem; }
  .pull-quote { float: none; width: 100%; margin: 1.5rem 0; }
}

/* Overrides moved to header.css + footer.php */

/* ================================================================
   SIDEBAR WIDGETS — global, dipakai di homepage & archive
================================================================ */
/* ── SIDEBAR WIDGETS ──────────────────────────────────────────── */
.sb-widget {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}
.sb-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.sb-widget__title {
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 900;
    margin: 0 0 .9rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--ink);
}
.sb-widget__title::before {
    content: '';
    display: inline-block;
    width: 4px; height: 13px;
    background: var(--teal);
    border-radius: 1px;
    flex-shrink: 0;
}
/* Rank items */
.sb-rank-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--cream);
    text-decoration: none;
    color: var(--ink);
    transition: color .15s;
}
.sb-rank-item:last-child { border-bottom: none; }
.sb-rank-item:hover { color: var(--teal); }
.sb-rank-item__num {
    font-family: var(--font-mono);
    font-size: .65rem;
    font-weight: 700;
    color: var(--teal);
    flex-shrink: 0;
    padding-top: 2px;
    min-width: 22px;
}
.sb-rank-item__title {
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.42;
    transition: color .2s;
}
/* Newsletter widget */
.sb-newsletter {
    background: var(--ink);
    color: var(--paper);
    padding: 1.4rem 1.3rem;
    margin-bottom: 1.75rem;
}
.sb-newsletter__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: .45rem;
}
.sb-newsletter__title em {
    color: var(--teal);
    font-style: italic;
}
.sb-newsletter__sub {
    font-size: .72rem;
    color: rgba(245,240,232,.42);
    line-height: 1.55;
    margin: 0 0 .9rem;
}
.sb-newsletter__input {
    width: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--paper);
    padding: .52rem .75rem;
    font-size: .76rem;
    outline: none;
    margin-bottom: .45rem;
    font-family: var(--font-body);
    transition: border-color .2s;
}
.sb-newsletter__input::placeholder { color: rgba(245,240,232,.25); }
.sb-newsletter__input:focus { border-color: var(--teal); }
.sb-newsletter__btn {
    width: 100%;
    background: var(--teal);
    color: #fff;
    border: none;
    padding: .6rem;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: .04em;
    font-family: var(--font-body);
    transition: filter .2s;
}
.sb-newsletter__btn:hover { filter: brightness(1.12); }
/* Tags */
.sb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.sb-tag {
    font-family: var(--font-mono);
    font-size: .56rem;
    letter-spacing: .04em;
    padding: .22rem .6rem;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.sb-tag:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
/* Category rows */
.sb-cat-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem 0;
    border-bottom: 1px solid var(--cream);
    text-decoration: none;
    color: var(--ink);
    font-size: .8rem;
    transition: color .2s;
}
.sb-cat-row:last-child { border-bottom: none; }
.sb-cat-row:hover { color: var(--teal); }
.sb-cat-row__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sb-cat-row__name { flex: 1; }
.sb-cat-row__count {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--muted);
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */

/* ================================================================
   ARCHIVE / CATEGORY / TAG — Sticky Sidebar (arc-sidebar)
   SAMA seperti homepage: sticky, TANPA scroll internal
================================================================ */
.arc-sidebar {
    padding: 2rem 1.5rem;
    position: sticky;
    top: 54px; /* JS akan override ini */
    align-self: start;
    /* TIDAK ada overflow/max-height — tidak ada scroll internal */
    overflow: visible !important;
    max-height: none !important;
}

/* Kategori aktif di sidebar */
.sb-cat-row--active {
    background: rgba(26,95,95,.06);
    color: #09575b;
    font-weight: 600;
}
.sb-cat-row--active .sb-cat-row__name { color: #09575b; }
.sb-cat-row--active .sb-cat-row__count {
    background: #09575b;
    color: #fff;
}

/* ================================================================
   ARGUMENTA v4.2 — Archive/Tag sidebar sticky + layout
================================================================ */

/* Archive/Tag page: 2-col layout */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w, 300px);
    gap: 0;
    max-width: var(--max-w);
    margin: 0 auto;
    align-items: start; /* PENTING: agar sticky bekerja */
}

/* Sticky sidebar di halaman kategori/tag — sama seperti hp-sidebar */
.arc-sidebar {
    position: sticky;
    top: 46px; /* fallback; JS akan update ke tinggi navbar yang benar */
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem 1.25rem;
    border-left: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.1) transparent;
}
.arc-sidebar::-webkit-scrollbar { width: 4px; }
.arc-sidebar::-webkit-scrollbar-track { background: transparent; }
.arc-sidebar::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 2px; }

/* arg-sidebar di dalam arc-sidebar */
.arg-sidebar { width: 100%; }

/* Responsive: collapse sidebar di mobile */
@media (max-width: 900px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
    .arc-sidebar {
        position: static;
        max-height: none;
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 1.5rem 1.5rem;
    }
}
