/*
 * Meowlawan — main.css
 * Dirapikan untuk memudahkan penyuntingan langsung dari WordPress.
 * Perubahan utama: hero satu kolom, body artikel lebih lebar,
 * layout aman saat TOC dimatikan, dan paragraf artikel justified.
 */

:root {
  --bg: #f6f1e9;
  --paper: #fffdf9;
  --ink: #171717;
  --muted: #6d6a64;
  --line: #d9d2c7;
  --red: #e74638;
  --lime: #d7f45f;
  --yellow: #ffd65a;
  --blue: #7ed8ff;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --max: 1240px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open,body.search-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,input,textarea,select {
  font: inherit;
}
button {
  color: inherit;
}
.container {
  width: min(var(--max),calc(100% - 32px));
  margin-inline: auto;
}
.container-wide {
  width: min(1180px,calc(100% - 32px));
  margin-inline: auto;
}
.container-narrow {
  width: min(850px,calc(100% - 32px));
  margin-inline: auto;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ticker + header */
.top-strip {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: .55px;
}
.ticker {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 26s linear infinite;
}
.top-strip:hover .ticker {
  animation-play-state: paused;
}
@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(246, 241, 233, .94);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease,transform .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.admin-bar .site-header {
  top: 32px;
}
.nav {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk",sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.5px;
  white-space: nowrap;
}
.brand-logo .custom-logo-link {
  display: block;
  line-height: 0;
}
.brand-logo img {
  max-height: 46px;
  width: auto;
}
.cat-mark {
  width: 38px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 45% 45%;
  background: var(--red);
  position: relative;
  transform: rotate(-2deg);
  flex: 0 0 auto;
}
.cat-mark:before,.cat-mark:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-left: 2px solid var(--ink);
  border-top: 2px solid var(--ink);
  top: -7px;
  transform: rotate(45deg);
}
.cat-mark:before {
  left: 2px;
}
.cat-mark:after {
  right: 2px;
}
.cat-face:before {
  content: "•  •";
  position: absolute;
  top: 7px;
  left: 8px;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 11px;
}
.cat-face:after {
  content: "⌄";
  position: absolute;
  left: 13px;
  bottom: 2px;
  font-size: 15px;
  font-weight: 800;
}
.desktop-nav {
  justify-self: center;
}
.desktop-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.desktop-nav>.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.desktop-nav .menu>li {
  position: relative;
}
.desktop-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: .18s ease;
}
.desktop-nav a:hover,.desktop-nav li.current-menu-item>a,.desktop-nav li.current-menu-ancestor>a {
  background: var(--paper);
  color: var(--red);
}
.desktop-nav .menu-item-has-children>a:after {
  content: "⌄";
  font-size: 12px;
  transition: transform .18s ease;
}
.desktop-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: .18s ease;
  z-index: 10;
}
.desktop-nav .sub-menu .sub-menu {
  left: calc(100% + 8px);
  top: -10px;
}
.desktop-nav li:hover>.sub-menu,.desktop-nav li:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.desktop-nav li:hover>a:after {
  transform: rotate(180deg);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.btn,.icon-btn {
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn:hover,.icon-btn:hover {
  transform: translate(-2px,-2px);
  box-shadow: var(--shadow-sm);
}

.btn:focus-visible,
.icon-btn:focus-visible,
.menu-btn:focus-visible,
.submenu-toggle:focus-visible,
.search-close:focus-visible,
.circle-action:focus-visible,
.back-to-top:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-ghost {
  background: transparent;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.icon-btn>span:first-child {
  font-size: 20px;
  line-height: 1;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 0;
  cursor: pointer;
  place-items: center;
}
.menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  display: block;
  margin: 2px auto;
  transition: .2s ease;
}
.menu-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-nav {
  display: none;
}
.mobile-nav-inner {
  padding: 6px 0 18px;
}
.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}
.mobile-menu li {
  border-top: 1px solid var(--line);
  position: relative;
}
.mobile-menu a {
  display: block;
  padding: 14px 42px 14px 2px;
  font-weight: 800;
}
.mobile-menu .sub-menu {
  display: none;
  list-style: none;
  padding: 0 0 8px 18px;
}
.mobile-menu .sub-menu.is-open {
  display: grid;
}
.submenu-toggle {
  position: absolute;
  right: 0;
  top: 8px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.submenu-toggle.is-open {
  transform: rotate(180deg);
}
.mobile-support {
  margin-top: 12px;
  display: inline-block;
}

/* Search */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23,23,23,.72);
  backdrop-filter: blur(10px);
  z-index: 120;
  display: grid;
  place-items: start center;
  padding-top: min(18vh,160px);
  opacity: 0;
  visibility: hidden;
  transition: .2s ease;
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.search-panel {
  width: min(780px,calc(100% - 28px));
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: translateY(-12px);
  transition: .2s ease;
}
.search-overlay.is-open .search-panel {
  transform: translateY(0);
}
.search-close {
  position: absolute;
  top: 26px;
  right: 30px;
  border: 2px solid #fff;
  background: var(--ink);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
}
.site-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
}
.site-search-form input {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  outline: none;
  font-size: 18px;
}
.site-search-form input:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--red) 18%,transparent);
}

/* General sections */
section {
  padding: 40px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.3px;
  font-weight: 900;
  margin-bottom: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  border: 1px solid var(--ink);
}
h1,h2,h3,h4 {
  font-family: "Space Grotesk",sans-serif;
  margin-top: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: clamp(31px,4vw,50px);
  margin: 0;
  letter-spacing: -2.2px;
  line-height: 1;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 540px;
}
.tag {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
.empty-state {
  grid-column: 1/-1;
  border: 2px dashed var(--line);
  border-radius: 20px;
  padding: 28px;
  color: var(--muted);
  background: rgba(255,255,255,.35);
}

/* Hero */
.hero {
  padding: 52px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.hero-main {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--red);
  color: #fff;
  min-height: 490px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(260px,.9fr);
  position: relative;
}
.hero-main:after {
  content: "MEOW";
  position: absolute;
  left: -24px;
  bottom: -42px;
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: clamp(90px,11vw,170px);
  color: rgba(255,255,255,.06);
  line-height: .8;
  transform: rotate(-5deg);
  pointer-events: none;
}
.hero-copy {
  padding: 44px 22px 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-copy h1 {
  font-size: clamp(46px,5.3vw,78px);
  line-height: .92;
  letter-spacing: -4px;
  margin: 0 0 22px;
}
.hero-copy p {
  font-size: 17px;
  max-width: 630px;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-actions .btn:first-child {
  background: var(--lime);
  color: var(--ink);
}
.hero-actions .btn-ghost {
  color: #fff;
  border-color: #fff;
}
.hero-feature {
  margin: 14px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  align-self: stretch;
  box-shadow: var(--shadow-sm);
  background: var(--yellow);
}
.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.hero-feature-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk";
  font-size: 64px;
  font-weight: 900;
  color: var(--ink);
}
.hero-feature-shade {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent,rgba(0,0,0,.78));
}
.hero-feature-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 7px;
}
.hero-feature-copy small {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 1px;
}
.hero-feature-copy strong {
  font: 700 22px/1.08 "Space Grotesk";
}
.hero-feature:hover img {
  transform: scale(1.035);
}

/* Hero slider base */
.hero-feature.hero-slider {
  position: relative;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 100%;
  position: relative;
}

.hero-slide-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  color: #fff;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: rgba(23,23,23,.55);
  color: #fff;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  cursor: pointer;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-slider-prev { left: 14px; }
.hero-slider-next { right: 14px; }

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 6;
  display: flex;
  gap: 7px;
  transform: translateX(-50%);
}

.hero-slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
}

.hero-slider-dots button.is-active,
.hero-slider-dots button[aria-current="true"] {
  width: 22px;
  background: #fff;
}

.hero-slide-meta {
  color: rgba(255,255,255,.82);
  font-size: 11px;
}
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.side-card {
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: .2s ease;
  min-height: 0;
}
.side-card:nth-child(1) {
  background: var(--lime);
}
.side-card:nth-child(2) {
  background: var(--yellow);
}
.side-card:hover {
  transform: translateY(-4px);
}
.side-card-media {
  display: grid;
  grid-template-columns: 42% 1fr;
}
.side-thumb {
  min-height: 100%;
  border-right: 2px solid var(--ink);
  overflow: hidden;
}
.side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.side-card:hover .side-thumb img {
  transform: scale(1.05);
}
.side-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.side-card h3 {
  font-size: 24px;
  line-height: 1.06;
  margin: 10px 0 12px;
  letter-spacing: -1px;
}

/* Trending */
.trending {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  counter-reset: trend;
}
.trend-card {
  counter-increment: trend;
  border-top: 2px solid var(--ink);
  padding-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 145px;
  transition: .18s ease;
}
.trend-card:before {
  content: "0" counter(trend);
  font-family: "Space Grotesk";
  font-size: 13px;
  font-weight: 900;
  color: var(--red);
  grid-column: 1/-1;
}
.trend-thumb {
  width: 62px;
  height: 62px;
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  overflow: hidden;
}
.trend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trend-card h3 {
  font-size: 19px;
  line-height: 1.12;
  margin: 0 0 9px;
  letter-spacing: -.45px;
}
.trend-card:hover {
  transform: translateY(-3px);
}
.trend-card:hover h3 {
  color: var(--red);
}

/* Post cards */
.articles {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.article-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  transition: .2s ease;
  min-width: 0;
}
.article-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: var(--shadow);
}
.article-card-link {
  display: block;
  height: 100%;
}
.article-visual {
  aspect-ratio: 16/10;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  background: var(--blue);
}
.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.article-card:hover .article-visual img {
  transform: scale(1.045);
}
.article-fallback {
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg,var(--blue),var(--yellow));
  font-family: "Space Grotesk";
}
.article-fallback span {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}
.article-fallback strong {
  font-size: clamp(25px,3vw,48px);
  line-height: .95;
  letter-spacing: -2px;
}
.article-body {
  padding: 20px;
}
.article-body h3 {
  font-size: 24px;
  line-height: 1.08;
  margin: 10px 0;
  letter-spacing: -1px;
}
.article-body>p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 14px;
}
.article-meta-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* Newsletter */
.newsletter-section {
  padding-top: 20px;
}
.newsletter-card {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: 32px;
  border: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr minmax(320px,.7fr);
  align-items: center;
  gap: 30px;
}
.newsletter-card h2 {
  font-size: clamp(30px,4vw,48px);
  letter-spacing: -2px;
  margin: 0 0 9px;
}
.newsletter-card p {
  color: #d7d7d7;
  max-width: 620px;
  margin: 0;
}

/* Tombol pada card gelap harus punya warna teks eksplisit.
   Tanpa ini .btn mewarisi color:#fff dari parent sehingga teks hilang
   di atas background tombol yang terang. */
.newsletter-card .btn,
.support-card .btn,
.support-cta .btn {
  color: var(--ink);
}

.newsletter-card > .btn,
.support-card > .btn,
.support-actions {
  justify-self: end;
}
.newsletter-form {
  display: flex;
  gap: 8px;
}
.newsletter-form input {
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  outline: none;
}
.newsletter-form input::placeholder {
  color: #bbb;
}
.newsletter-form .btn {
  background: var(--lime);
  color: var(--ink);
  white-space: nowrap;
}
.newsletter-hint {
  border: 1px solid #555;
  border-radius: 16px;
  padding: 16px;
  color: #ccc;
}

/* Single article */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 150;
  pointer-events: none;
}
.admin-bar .reading-progress {
  top: 32px;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width .08s linear;
}
.single-layout {
  padding-top: 52px;
}
.entry-header {
  padding-bottom: 28px;
}
.entry-kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.1px;
  font-weight: 900;
  color: var(--red);
}
.entry-kicker a:hover {
  text-decoration: underline;
}
.entry-title {
  font-size: clamp(46px,6.8vw,88px);
  line-height: .93;
  letter-spacing: -4.5px;
  margin: 12px 0 20px;
}
.entry-deck {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 780px;
}
.entry-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}
.entry-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.entry-featured {
  border: 2px solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
  max-height: 680px;
}
.entry-featured img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  display: block;
}
.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0,950px) 54px;
  justify-content: center;
  gap: 34px;
  align-items: start;
  padding-top: 42px;
}
.article-reading-layout:has(#articleToc:not(:empty)) {
  grid-template-columns: 190px minmax(0,860px) 54px;
}

/* Grid placement: article tanpa TOC memakai kolom utama penuh. */
.article-reading-layout > .entry-content {
  grid-column: 1;
}
.article-reading-layout > .article-side-actions {
  grid-column: 2;
}

/* TOC hanya dihitung sebagai kolom ketika daftar isinya benar-benar terisi. */
.article-reading-layout:has(#articleToc:not(:empty)) > .toc-card {
  grid-column: 1;
}
.article-reading-layout:has(#articleToc:not(:empty)) > .entry-content {
  grid-column: 2;
}
.article-reading-layout:has(#articleToc:not(:empty)) > .article-side-actions {
  grid-column: 3;
}
.entry-content {
  font-size: 18px;
  line-height: 1.82;
  min-width: 0;
  width: 100%;
}
.entry-content p,.entry-content ul,.entry-content ol,.entry-content blockquote,.entry-content figure {
  margin: 0 0 1.4em;
}
.entry-content p,.entry-content li,.entry-content blockquote {
  text-align: justify;
  text-justify: inter-word;
}
.entry-content h2 {
  font-size: 35px;
  line-height: 1.12;
  margin: 1.55em 0 .55em;
  letter-spacing: -1.7px;
  scroll-margin-top: 110px;
}
.entry-content h3 {
  font-size: 27px;
  line-height: 1.18;
  margin: 1.35em 0 .5em;
  letter-spacing: -1px;
  scroll-margin-top: 110px;
}
.entry-content h4 {
  font-size: 22px;
  margin: 1.2em 0 .45em;
}
.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: var(--red);
}
.entry-content blockquote {
  border-left: 5px solid var(--red);
  padding: 6px 0 6px 22px;
  font-size: 1.1em;
}
.entry-content img {
  border-radius: 18px;
}
.entry-content pre {
  overflow: auto;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow: auto;
}
.entry-content th,.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
}
.toc-card {
  position: sticky;
  top: 110px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  overflow: hidden;
}

/* Cegah layout berkedip lalu menyempit ketika artikel tidak punya H2/H3. */
.toc-card:has(#articleToc:empty) {
  display: none;
}
.toc-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: var(--yellow);
  padding: 13px 14px;
  font-weight: 900;
  cursor: pointer;
}
.toc-card nav {
  padding: 9px 10px 12px;
  max-height: 58vh;
  overflow: auto;
}
.toc-card.is-collapsed nav {
  display: none;
}
.toc-card a {
  display: block;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.toc-card a.depth-3 {
  padding-left: 20px;
}
.toc-card a:hover,.toc-card a.is-active {
  background: var(--bg);
  color: var(--red);
  font-weight: 800;
}
.article-side-actions {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
}
.circle-action {
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  font-size: 18px;
  transition: .18s ease;
}
.circle-action:hover {
  transform: translate(-2px,-2px);
  box-shadow: var(--shadow-sm);
  background: var(--lime);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 50px auto 20px;
}
.post-nav a {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  padding: 18px;
  transition: .18s ease;
}
.post-nav>div:last-child {
  text-align: right;
}
.post-nav a:hover {
  transform: translate(-2px,-2px);
  box-shadow: var(--shadow-sm);
}
.post-nav span {
  color: var(--muted);
  font-size: 12px;
}
.post-nav strong {
  font-family: "Space Grotesk";
  font-size: 17px;
}
.related-section {
  margin-top: 34px;
  border-top: 2px solid var(--ink);
  padding-top: 42px;
}
.related-grid {
  grid-template-columns: repeat(3,1fr);
}

/* Comments */
.comment-area {
  width: min(850px,calc(100% - 32px));
  margin: 40px auto 70px;
  border-top: 2px solid var(--ink);
  padding-top: 34px;
}
.comment-head h2 {
  font-size: 32px;
}
.comment-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}
.comment-list .children {
  list-style: none;
  padding-left: 32px;
  margin-top: 12px;
}
.comment-body {
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  padding: 18px;
}
.comment-meta {
  font-size: 12px;
  color: var(--muted);
}
.comment-content p {
  margin-bottom: 0;
}
.comment-respond {
  margin-top: 26px;
}
.comment-respond h3 {
  font-size: 28px;
}
.comment-form textarea,.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url] {
  width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  padding: 12px 14px;
}
.comment-form textarea {
  min-height: 150px;
}
.comment-form-cookies-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Archive / search / pages */
.archive-shell {
  padding: 50px 0 70px;
}
.archive-title {
  font-size: clamp(44px,6vw,74px);
  line-height: .95;
  letter-spacing: -3px;
  margin-bottom: 12px;
}
.archive-description {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 28px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 28px;
}
.archive-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  transition: .2s ease;
}
.archive-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: var(--shadow);
}
.archive-thumb {
  aspect-ratio: 16/10;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.archive-card:hover .archive-thumb img {
  transform: scale(1.045);
}
.archive-card-body {
  padding: 20px;
}
.archive-card h2 {
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 10px 0;
}
.archive-card p {
  color: var(--muted);
  font-size: 14px;
}
.pagination {
  margin-top: 30px;
}
.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a,.pagination span {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--paper);
}
.pagination .current {
  background: var(--ink);
  color: #fff;
}
.entry-shell {
  width: min(850px,calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0;
}
.entry-shell .entry-featured {
  margin: 20px 0 30px;
}

/* Footer */
.site-footer {
  margin-top: 52px;
  border-top: 2px solid var(--ink);
  padding: 34px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .8fr;
  gap: 34px;
}
.footer-brand p {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid h4 {
  margin: 0 0 12px;
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--red);
  transform: translateX(2px);
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE — consolidated
   ========================================================= */

@media (max-width: 1100px) {
  .article-reading-layout {
    grid-template-columns: minmax(0, 900px);
    width: min(900px, calc(100% - 32px));
    margin-inline: auto;
  }

  .article-reading-layout:has(#articleToc:not(:empty)) {
    grid-template-columns: 180px minmax(0, 1fr);
    width: min(980px, calc(100% - 32px));
  }

  .article-side-actions {
    display: none;
  }

  .article-reading-layout > .entry-content {
    grid-column: 1;
  }

  .article-reading-layout:has(#articleToc:not(:empty)) > .toc-card {
    grid-column: 1;
  }

  .article-reading-layout:has(#articleToc:not(:empty)) > .entry-content {
    grid-column: 2;
  }
}

@media (max-width: 980px) {
  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .nav-actions {
    grid-column: 2;
  }

  .mobile-nav.open {
    display: block;
  }

  .trending,
  .articles,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-reading-layout,
  .article-reading-layout:has(#articleToc:not(:empty)) {
    grid-template-columns: minmax(0, 1fr);
    width: min(900px, calc(100% - 32px));
  }

  .article-reading-layout > .entry-content,
  .article-reading-layout:has(#articleToc:not(:empty)) > .toc-card,
  .article-reading-layout:has(#articleToc:not(:empty)) > .entry-content {
    grid-column: 1;
  }

  .toc-card {
    position: relative;
    top: auto;
  }

  .toc-card nav {
    max-height: none;
  }

  .newsletter-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-card > .btn,
  .support-card > .btn,
  .support-actions {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-main {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-copy {
    padding-right: 44px;
  }

  .hero-feature {
    min-height: 300px;
    margin-top: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header,
  .admin-bar .reading-progress {
    top: 46px;
  }
}

@media (max-width: 720px) {
  .support-btn {
    display: none;
  }

  .hero {
    padding: 14px 0 28px;
  }

  .hero > .container {
    width: calc(100% - 20px);
    max-width: none;
  }

  .hero-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
  }

  .hero-copy {
    order: 1;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 28px 22px 22px;
  }

  .hero-copy .eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(40px, 13vw, 56px);
    line-height: .94;
    letter-spacing: -2.5px;
    margin: 0 0 18px;
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .hero-copy p {
    width: 100%;
    max-width: none;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px;
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .hero-actions .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 12px 16px;
  }

  .hero-feature,
  .hero-feature.hero-slider {
    order: 2;
    width: calc(100% - 20px);
    max-width: none;
    height: auto;
    min-height: 300px;
    margin: 0 10px 10px;
    border-radius: 17px;
    align-self: auto;
    position: relative;
    overflow: hidden;
  }

  .hero-slider-track,
  .hero-slide,
  .hero-slide-link {
    min-height: 300px;
  }

  .hero-slide-link {
    height: 100%;
  }

  .hero-slide img,
  .hero-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-feature-shade {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.88));
  }

  .hero-feature-copy {
    left: 16px;
    right: 16px;
    bottom: 18px;
    gap: 5px;
  }

  .hero-feature-copy small,
  .hero-slide-meta {
    font-size: 10px;
  }

  .hero-feature-copy strong {
    font-size: 19px;
    line-height: 1.08;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 23px;
  }

  .hero-slider-prev { left: 10px; }
  .hero-slider-next { right: 10px; }
  .hero-slider-dots { bottom: 10px; }

  .hero-main::after {
    font-size: 90px;
    bottom: -20px;
    opacity: .7;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .articles,
  .archive-grid,
  .related-grid,
  .trending {
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-form,
  .site-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .newsletter-card > .btn,
  .support-card > .btn,
  .support-actions {
    width: 100%;
    justify-self: stretch;
  }

  .newsletter-card > .btn,
  .support-card > .btn,
  .support-actions .btn {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .entry-title {
    font-size: clamp(42px, 11vw, 48px);
    letter-spacing: -3px;
    overflow-wrap: break-word;
  }

  .entry-deck {
    font-size: 18px;
  }

  .entry-meta {
    font-size: 12px;
  }

  .entry-featured {
    border-radius: 18px;
  }

  .entry-content {
    font-size: 17px;
  }

  .entry-content p,
  .entry-content li,
  .entry-content blockquote {
    text-align: left;
    text-justify: auto;
  }

  .post-nav,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }

  .search-panel {
    padding: 24px;
  }

  .comment-list .children {
    padding-left: 14px;
  }
}

@media (max-width: 520px) {
  .container,
  .container-wide,
  .container-narrow {
    width: min(var(--max), calc(100% - 20px));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--bg);
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .nav {
    min-height: 64px;
    gap: 8px;
  }

  .brand {
    font-size: 22px;
    letter-spacing: -1.1px;
    min-width: 0;
  }

  .brand-logo img {
    max-height: 38px;
  }

  .cat-mark {
    transform: scale(.9);
  }

  .nav-actions {
    gap: 7px;
  }

  .icon-btn,
  .menu-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12.5vw, 50px);
    letter-spacing: -2px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .side-card-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-thumb {
    height: 145px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  section {
    padding: 32px 0;
  }

  .article-meta-row {
    flex-direction: column;
  }

  .newsletter-card {
    padding: 24px 20px;
    border-radius: 22px;
    gap: 22px;
  }

  .newsletter-card h2 {
    font-size: clamp(30px, 10vw, 40px);
    letter-spacing: -1.6px;
  }

  .newsletter-form .btn,
  .newsletter-card > .btn,
  .support-card > .btn,
  .support-actions .btn {
    width: 100%;
  }

  .entry-actions .btn {
    flex: 1 1 100%;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
  }

  .search-overlay {
    padding-top: 88px;
  }

  .search-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 360px) {
  .brand {
    font-size: 20px;
  }

  .cat-mark {
    display: none;
  }

  .hero-copy {
    padding-inline: 18px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .newsletter-card {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (hover: none) {
  .btn:hover,
  .icon-btn:hover,
  .article-card:hover,
  .archive-card:hover,
  .trend-card:hover,
  .side-card:hover,
  .hero-feature:hover img,
  .circle-action:hover,
  .post-nav a:hover {
    transform: none;
    box-shadow: none;
  }
}
