/*
Theme Name: Android
Theme URI: https://android.web.id
Author: android.web.id
Description: Tema portal berita card magazine untuk android.web.id — latar terang lapang, kartu membulat besar, navigasi bawah ala aplikasi di HP, dan mode gelap. Dibangun dari mockup tema 2 dan mockup halaman artikel.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: android
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============ Token warna & dasar ============ */
:root {
  color-scheme: light;
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-2: #ecf2ec;
  --surface-3: #e2eee4;
  --ink: #17221b;
  --ink-2: #46564c;
  --muted: #55665c;
  --line: #e0e8df;
  --brand: #0e7a3f;
  --brand-strong: #0a5c30;
  --brand-soft: #e1f3e7;
  --amber: #8a5a00;
  --amber-soft: #fdf0da;
  --blue: #1b5fc1;
  --blue-soft: #e2ecfc;
  --rose: #b3374e;
  --rose-soft: #fce6ea;
  --violet: #5d4bc4;
  --violet-soft: #eae7fc;
  --teal: #0b6a65;
  --teal-soft: #def3f1;
  --header-bg: rgba(244, 247, 243, 0.92);
  --shadow: 0 1px 2px rgba(23, 34, 27, 0.05), 0 10px 28px -18px rgba(23, 34, 27, 0.22);
  --radius: 24px;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e120e;
  --surface: #171c18;
  --surface-2: #1e251f;
  --surface-3: #263127;
  --ink: #edf3ed;
  --ink-2: #bccabd;
  --muted: #8d9c90;
  --line: #28332a;
  --brand: #57cf8b;
  --brand-strong: #8fe3b0;
  --brand-soft: #173527;
  --amber: #f0b95a;
  --amber-soft: #3a2c11;
  --blue: #8ab8f5;
  --blue-soft: #1d2f4d;
  --rose: #f093a6;
  --rose-soft: #40202a;
  --violet: #b3a8f2;
  --violet-soft: #2b2650;
  --teal: #63d4cd;
  --teal-soft: #143936;
  --header-bg: rgba(14, 18, 14, 0.92);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-strong); }
img { max-width: 100%; height: auto; }
button, input { font-family: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============ Header lengket ============ */
.sticky-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 0 9px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.brand-mark svg { display: block; }
.brand-mark-img { width: 42px; height: 42px; flex: none; border-radius: 13px; display: block; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--brand); }
.brand-tag { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.topbar-spacer { flex: 1; }
.icon-btn {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; position: relative; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--brand-strong); border-color: var(--brand); }
.theme-btn { justify-self: end; }
.theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
.burger-btn {
  display: none; width: 42px; height: 42px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  place-items: center; padding: 0; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.burger-btn:hover { color: var(--brand-strong); border-color: var(--brand); }
.burger-btn .icon-close { display: none; }
.burger-btn.open .icon-burger { display: none; }
.burger-btn.open .icon-close { display: block; }

/* Kolom pencarian permanen (desktop): pil sangat membulat, ikon di dalam kolom */
.head-search {
  display: flex; align-items: center; gap: 9px; flex: none;
  width: 252px; height: 42px; padding: 0 8px 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s ease, width .2s ease;
}
.head-search:focus-within { border-color: var(--brand); width: 300px; }
.head-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 14px;
}
.head-search input::placeholder { color: var(--muted); }
.hs-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; flex: none; padding: 4px;
}
.hs-btn:hover { color: var(--brand-strong); }

/* Bar chip kategori (desktop, lengket bersama header) */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 13px;
  scrollbar-width: none; -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, #000 92%, transparent);
  mask-image: linear-gradient(to right, #000 92%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Panel burger: kolom pencarian, lalu daftar kategori */
.cat-menu { display: none; }
.cat-menu.open { display: block; padding: 4px 0 16px; }
.cat-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 5px 5px 16px; margin: 6px 0 4px;
}
.cat-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 14.5px;
}
.cat-search input::placeholder { color: var(--muted); }
.cat-search button {
  border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 999px; padding: 9px 18px; cursor: pointer; flex: none;
}
.cat-menu-title { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
.cat-menu-list { list-style: none; display: grid; gap: 8px; }
.cat-menu-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none;
}
.cat-menu-list a:hover { border-color: var(--brand); color: var(--brand-strong); }
.cat-menu-list a[aria-current="page"] { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.cat-menu-list .arr { color: var(--muted); }

/* Navigasi bawah ala aplikasi (HP) */
.bottomnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav .row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 480px; margin: 0 auto; }
.bnav {
  border: 0; background: none; color: var(--muted); position: relative; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 700; padding: 6px 0 4px; border-radius: 12px;
  font-family: inherit; cursor: pointer;
}
.bnav:hover, .bnav.active { color: var(--brand-strong); }

/* ============ Beranda: sapaan & headline ============ */
.greeting { padding: 26px 0 4px; }
.greeting .date { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.greeting h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.greeting .sub { color: var(--ink-2); font-size: 15.5px; max-width: 640px; }
.greeting .g-site { color: var(--brand); }
.headline-card {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.headline-head {
  display: flex; align-items: center; gap: 9px; padding: 16px 22px 0;
  font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); flex: none; box-shadow: 0 0 0 0 rgba(179, 55, 78, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(179, 55, 78, 0.45); } 70% { box-shadow: 0 0 0 9px rgba(179, 55, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 55, 78, 0); } }
.headline-lead { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; padding: 14px 22px 20px; align-items: center; }
.headline-lead .thumb { border-radius: 18px; }
.headline-lead h2 { font-size: clamp(20px, 3vw, 27px); line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; margin: 10px 0 8px; }
.headline-lead h2 a:hover { color: var(--brand-strong); }
.headline-lead p { color: var(--ink-2); font-size: 15px; }
.headline-list { list-style: none; margin: 0; padding: 0 22px 8px; border-top: 1px solid var(--line); }
.headline-list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.headline-list li:last-child { border-bottom: 0; }
.headline-list .h-title { flex: 1; min-width: 0; font-weight: 700; font-size: 15.5px; line-height: 1.4; }
.headline-list .h-title:hover { color: var(--brand-strong); }
.headline-list .num { color: var(--brand); font-weight: 800; flex: none; }
.headline-list .h-date { flex: none; width: 54px; font-size: 12.5px; font-weight: 800; color: var(--brand-strong); letter-spacing: .02em; }
.headline-list .pill { flex: none; }

/* ============ Feed kartu masonry ============ */
.feed-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 16px; flex-wrap: wrap; }
.feed-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; }
.feed-head .feed-sub { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.masonry { columns: 1; column-gap: 20px; }
.card {
  break-inside: avoid; margin: 0 0 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card a.card-link { text-decoration: none; display: block; }
.card a.card-link:hover { color: inherit; }
.card .thumb { margin: 0; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb-fallback { width: 100%; height: 100%; display: grid; place-items: end start; padding: 14px; color: rgba(255, 255, 255, 0.95); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.grad-1 { background: linear-gradient(135deg, #0e7a3f, #57cf8b); }
.grad-2 { background: linear-gradient(135deg, #1b5fc1, #8ab8f5); }
.grad-3 { background: linear-gradient(135deg, #b3374e, #f093a6); }
.grad-4 { background: linear-gradient(135deg, #5d4bc4, #b3a8f2); }
.grad-5 { background: linear-gradient(135deg, #0d7d78, #63d4cd); }
.card-body { padding: 16px 20px 18px; }
.card h3 { margin: 9px 0 7px; font-size: 18.5px; line-height: 1.36; font-weight: 800; letter-spacing: -0.015em; }
.card h3 a:hover { color: var(--brand-strong); }
.card .excerpt { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.meta .dot::before { content: "·"; margin: 0 2px; }
.pill { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; background: var(--brand-soft); color: var(--brand-strong); }
.pill:hover { color: var(--brand-strong); }
.pill-rose { background: var(--rose-soft); color: var(--rose); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-violet { background: var(--violet-soft); color: var(--violet); }
.pill-teal { background: var(--teal-soft); color: var(--teal); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-brand { background: var(--brand-soft); color: var(--brand-strong); }

/* Pagination */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 30px; }
.pagination .page-numbers {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-strong); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ============ Arsip & pencarian ============ */
.archive-head { padding: 26px 0 4px; }
.archive-head h1 { font-size: clamp(26px, 4.5vw, 36px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 8px; }
.archive-head .archive-desc { color: var(--ink-2); font-size: 15.5px; max-width: 640px; }
.archive-head .kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.empty-state {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 24px; margin: 26px 0; text-align: center;
}
.empty-state h2 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); }
.empty-state form { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.search-form-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form-inline input[type="search"] {
  flex: 1; min-width: 220px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: 14.5px; outline: 0;
}
.search-form-inline input[type="search"]:focus { border-color: var(--brand); }
.btn-primary {
  border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 14.5px;
  border-radius: 999px; padding: 10px 22px; cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-primary:hover { color: #fff; background: var(--brand-strong); }

/* ============ Halaman artikel ============ */
.article-head { padding: 26px 0 0; }
.crumbs { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-strong); }
.crumbs .sep { opacity: .6; }
.crumbs .here { color: var(--ink-2); }
.head-meta-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.readtime { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.article-head h1 { font-size: clamp(27px, 4.6vw, 40px); line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 10px; }
.dek { margin: 0; font-size: clamp(16.5px, 2.6vw, 19px); line-height: 1.6; color: var(--ink-2); }
.byline {
  display: flex; align-items: center; gap: 14px; margin-top: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 14px 18px; flex-wrap: wrap;
}
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; letter-spacing: .01em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-who { min-width: 0; }
.byline-who .who-name { font-weight: 800; font-size: 15px; }
.byline-who .who-name a:hover { color: var(--brand-strong); }
.byline-who .who-meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-fig { margin: 24px 0 0; }
.hero-fig .frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--surface-2); }
.hero-fig img { width: 100%; height: 100%; object-fit: cover; }
.hero-fig .frame-fallback { width: 100%; height: 100%; display: grid; place-items: end start; padding: 22px; color: rgba(255, 255, 255, 0.95); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.hero-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.5; }

/* Isi artikel */
.prose { margin-top: 26px; font-size: 17.5px; line-height: 1.78; color: var(--ink-2); }
.prose > * { margin-bottom: 1.15em; }
.prose h2 { font-size: 26px; line-height: 1.3; color: var(--ink); font-weight: 800; letter-spacing: -0.015em; margin: 1.4em 0 0.6em; }
.prose h3 { font-size: 21px; line-height: 1.35; color: var(--ink); font-weight: 800; margin: 1.3em 0 0.5em; }
.prose h4 { font-size: 18px; color: var(--ink); font-weight: 800; margin: 1.2em 0 0.5em; }
.prose p { margin-bottom: 1.15em; }
.prose a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.15em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 16px 16px 0; padding: 14px 20px; color: var(--ink); font-style: italic; }
.prose code { background: var(--surface-2); border-radius: 6px; padding: 2px 6px; font-size: 0.85em; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 18px; }
.prose figure { margin-bottom: 1.15em; }
.prose figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--surface-2); }
/* Daftar isi Easy Table of Contents */
#ez-toc-container {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 18px 22px; margin-bottom: 1.4em;
}
#ez-toc-container .ez-toc-title { font-weight: 800; font-size: 16px; color: var(--ink); }
#ez-toc-container a { color: var(--ink-2); text-decoration: none; }
#ez-toc-container a:hover { color: var(--brand-strong); }

/* Bagikan */
.share-bar {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.share-bar .sb-title { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.share-bar .sb-sub { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.share-row { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.share-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); border-radius: 999px;
  padding: 8px 14px; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.share-chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.share-chip.wa:hover { color: #0d7a40; border-color: #0d7a40; }
.share-chip.tg:hover { color: #1b5fc1; border-color: #1b5fc1; }
.share-chip.x:hover { color: var(--ink); border-color: var(--ink); }
.share-chip.fb:hover { color: #1b5fc1; border-color: #1b5fc1; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); display: grid; place-items: center;
  text-decoration: none; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.share-btn:hover { color: var(--brand-strong); border-color: var(--brand); }

/* Kartu penulis */
.author-card {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px;
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
}
.author-card .avatar { width: 58px; height: 58px; font-size: 19px; }
.author-card .a-body { flex: 1; min-width: 220px; }
.author-card .a-role { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.author-card .a-name { font-size: 18px; font-weight: 800; margin: 2px 0 4px; }
.author-card .a-name a:hover { color: var(--brand-strong); }
.author-card .a-bio { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* Artikel terkait */
.related { margin-top: 46px; }
.related .feed-head { margin-top: 0; }
.rel-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.rel-grid .card { margin: 0; }

/* Tag */
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.tags-label { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tags-row .tag {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; text-decoration: none;
}
.tags-row .tag:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ============ Footer ============ */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 34px 0 8px; }
.foot-col h3 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.foot-col a:hover { color: var(--brand-strong); }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 340px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); font-weight: 600; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px);
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  z-index: 120; max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Responsif ============ */
@media (min-width: 620px) {
  .masonry { columns: 2; }
}
@media (min-width: 700px) {
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 761px) {
  .burger-btn { display: none; }
}
@media (min-width: 1020px) {
  .masonry { columns: 3; }
}
@media (max-width: 760px) {
  .bottomnav { display: block; }
  body { padding-bottom: 74px; }
  .brand-tag { display: none; }
  .head-search { display: none; }
  /* HP: burger di kiri, judul rata tengah, tanpa bar chip kategori */
  .topbar { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 10px; padding: 12px 0; }
  .burger-btn { display: grid; width: 38px; height: 38px; justify-self: start; }
  .brand { gap: 9px; justify-self: center; justify-content: center; text-align: center; }
  .topbar-spacer { display: none; }
  .topbar .theme-btn { justify-self: end; }
  .chips { display: none; }
  .head-meta-row .pill { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-mark-img { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 19px; }
  .icon-btn { width: 38px; height: 38px; }
  .share-row { margin-left: 0; }
  .prose { font-size: 16.5px; }
  .headline-lead { grid-template-columns: 1fr; }
  .toast { bottom: 84px; }
}
@media (max-width: 620px) {
  .headline-lead { padding: 14px 18px 18px; }
  .headline-head, .headline-list { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}

/* Layout 2 kolom halaman artikel (seperti kabartidar): konten + sidebar. */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 132px; max-height: calc(100vh - 148px); overflow-y: auto; scrollbar-width: thin; }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sb-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 16px 18px 12px; }
.sb-head::before { content: ""; width: 5px; height: 20px; border-radius: 3px; background: var(--brand); flex: none; }
.sb-body { padding: 2px 18px 14px; }
.pop-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pop-row:last-child { border-bottom: 0; }
.pop-row:hover .pop-txt { color: var(--brand); }
.pop-num { font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--brand); min-width: 28px; }
.pop-txt { font-size: 14px; font-weight: 600; line-height: 1.5; }
.tb-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tb-row:last-child { border-bottom: 0; }
.tb-row:hover .tb-txt b { color: var(--brand); }
.tb-thumb { flex: none; }
.tb-thumb img { width: 76px; height: 56px; object-fit: cover; border-radius: 12px; display: block; }
.tb-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb-txt b { font-size: 14px; font-weight: 600; line-height: 1.5; }
.tb-meta { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; max-height: none; overflow: visible; }
}
/* Disclaimer afiliasi footer: kecil dan redup agar tidak mengganggu. */
.foot-affil { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
