/*
Theme Name: RBFund Blog
Theme URI: https://torik.id
Author: TorikApp
Author URI: https://torik.id
Description: Tema blog RBFund bergaya aplikasi mobile: app bar, chip kategori, feed artikel, navigasi bawah, tombol CTA melayang, dan drawer menu. Warna, tombol CTA, dan Meta Pixel diatur dari Customizer (Tampilan → Sesuaikan → Tampilan Aplikasi).
Version: 2.1.2
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rbfund-blog
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments, accessibility-ready
*/

/* ============================================================
   Token
   ============================================================ */
:root {
	--rbb-primary: #16a34a;
	--rbb-primary-ink: #ffffff;
	--rbb-dark: #0a4a21;
	--rbb-soft: #daf1e2;
	--rbb-cta: #16a34a;
	--rbb-cta-ink: #ffffff;
	--rbb-bg: #f2faf5;
	--rbb-ink: #1f2937;
	--rbb-muted: #5f6b7a;
	--rbb-line: rgba(31, 41, 55, .09);
	--rbb-card: #ffffff;
	--rbb-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--rbb-frame: 480px;
	--rbb-gutter: 16px;
	--rbb-appbar-h: 58px;
	--rbb-nav-h: 64px;
	--rbb-navpad: 0px;
	--rbb-ctabar-h: 0px;
	--rbb-safe-b: env(safe-area-inset-bottom, 0px);
	--rbb-admin: 0px;
}
.rbb-has-bottomnav { --rbb-navpad: var(--rbb-nav-h); }
.rbb-has-ctabar { --rbb-ctabar-h: 64px; }
body:not(.rbb-framed) { --rbb-frame: 760px; }
.admin-bar { --rbb-admin: 32px; }
@media (max-width: 782px) { .admin-bar { --rbb-admin: 46px; } }
@media (max-width: 600px) { .admin-bar { --rbb-admin: 0px; } }

/* ============================================================
   Dasar
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--rbb-appbar-h) + 12px); }
body {
	margin: 0;
	font-family: var(--rbb-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--rbb-ink);
	background: var(--rbb-bg);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
body.rbb-lock { overflow: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--rbb-dark); text-decoration: none; }
a:hover { text-decoration: none; }

/* Garis bawah hanya untuk link di dalam kalimat artikel, bukan kartu/tombol/plugin. */
.rbb-content :is(p, li, blockquote, figcaption, td, dd) > a:not([class]),
.rbb-content :is(p, li, blockquote, figcaption, td, dd) > :is(strong, em, b, i) > a:not([class]),
.comment-content a:not([class]),
.rbb-pagehead-desc a:not([class]) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
/* Beranda: tanpa garis bawah sama sekali (daftar campaign, kartu, dsb.). */
body.home a[href],
body.home a[href] *,
body.home .rbb-content a[href],
body.home .rbb-content a[href]:hover { text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rbb-primary); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.rbb-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--rbb-card); padding: 10px 14px; border-radius: 10px; }
.rbb-skip:focus { top: 8px; }

.rbb-ico {
	width: 22px; height: 22px; flex: none;
	fill: none; stroke: currentColor; stroke-width: 1.9;
	stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   App shell
   ============================================================ */
.rbb-app {
	position: relative;
	max-width: var(--rbb-frame);
	margin: 0 auto;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--rbb-bg);
	padding-bottom: calc(var(--rbb-navpad) + var(--rbb-ctabar-h) + var(--rbb-safe-b));
	display: flex;
	flex-direction: column;
}
.rbb-main { flex: 1; padding: 16px var(--rbb-gutter) 8px; }

@media (min-width: 600px) {
	body.rbb-framed { background: var(--rbb-soft); }
	.rbb-framed .rbb-app {
		box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 30px 80px -30px rgba(0, 0, 0, .28);
	}
}

/* App bar */
.rbb-appbar {
	position: sticky;
	top: var(--rbb-admin);
	z-index: 40;
	height: var(--rbb-appbar-h);
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 6px 0 16px;
	background: var(--rbb-primary);
	color: var(--rbb-primary-ink);
	transition: box-shadow .2s ease;
}
.rbb-appbar-light .rbb-appbar { background: var(--rbb-card); color: var(--rbb-ink); }
.rbb-appbar.is-scrolled { box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .45); }
.rbb-appbar .rbb-backbtn { margin-left: -10px; }

.rbb-brand { display: flex; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.rbb-brand img { max-height: 34px; width: auto; display: block; }
.rbb-brand-txt { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbb-appbar-title { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbb-appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 0; flex: none; }

.rbb-iconbtn {
	width: 44px; height: 44px;
	display: inline-grid; place-items: center;
	border: 0; border-radius: 50%;
	background: transparent; color: inherit;
	cursor: pointer; text-decoration: none;
}
.rbb-iconbtn:hover { background: rgba(127, 127, 127, .16); }

.rbb-cta-chip {
	display: inline-flex; align-items: center; gap: 6px;
	height: 34px; padding: 0 14px; margin-right: 4px;
	border-radius: 999px;
	background: var(--rbb-cta); color: var(--rbb-cta-ink);
	font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.rbb-cta-chip .rbb-ico { width: 16px; height: 16px; stroke-width: 2.2; }
.rbb-appbar-primary .rbb-cta-chip.is-same { background: var(--rbb-primary-ink); color: var(--rbb-primary); }
@media (max-width: 360px) {
	.rbb-cta-chip span { display: none; }
	.rbb-cta-chip { padding: 0 9px; }
}

/* Pencarian */
.rbb-search {
	display: none;
	position: sticky;
	top: calc(var(--rbb-admin) + var(--rbb-appbar-h));
	z-index: 39;
	padding: 10px 12px;
	background: var(--rbb-card);
	border-bottom: 1px solid var(--rbb-line);
}
.rbb-search.is-open { display: block; animation: rbb-drop .18s ease-out; }
@keyframes rbb-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.rbb-searchform {
	display: flex; align-items: center; gap: 8px;
	padding: 4px 4px 4px 12px;
	background: var(--rbb-bg);
	border: 1px solid var(--rbb-line);
	border-radius: 14px;
}
.rbb-searchform .rbb-ico { color: var(--rbb-muted); width: 20px; height: 20px; }
.rbb-searchform input {
	flex: 1; min-width: 0; height: 40px;
	border: 0; background: transparent; outline: 0;
	font-size: 16px;
}
.rbb-searchform input::-webkit-search-cancel-button { cursor: pointer; }

/* Tombol */
.rbb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px;
	border: 0; border-radius: 14px;
	background: var(--rbb-primary); color: var(--rbb-primary-ink);
	font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: transform .12s ease, filter .12s ease;
}
.rbb-btn:hover { filter: brightness(1.06); }
.rbb-btn:active { transform: scale(.98); }
.rbb-btn-cta { background: var(--rbb-cta); color: var(--rbb-cta-ink); }
.rbb-btn-sm { min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; }
.rbb-btn-block { display: flex; width: 100%; }
.rbb-btn .rbb-ico { width: 19px; height: 19px; stroke-width: 2.1; }

/* ============================================================
   Beranda
   ============================================================ */
.rbb-hero {
	margin: -16px calc(var(--rbb-gutter) * -1) 0;
	padding: 6px 20px 52px;
	background: var(--rbb-primary);
	color: var(--rbb-primary-ink);
	border-radius: 0 0 28px 28px;
}
.rbb-appbar-light .rbb-hero { background: var(--rbb-soft); color: var(--rbb-ink); padding-top: 20px; }
.rbb-hero h1 { margin: 0 0 6px; font-size: clamp(24px, 6.6vw, 30px); font-weight: 800; letter-spacing: -.02em; max-width: 18ch; }
.rbb-hero p { margin: 0; font-size: 14.5px; opacity: .86; max-width: 38ch; }

.rbb-chips {
	display: flex; gap: 8px;
	margin: 0 calc(var(--rbb-gutter) * -1) 16px;
	padding: 2px var(--rbb-gutter) 6px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--rbb-gutter);
	scrollbar-width: none;
}
.rbb-chips::-webkit-scrollbar { display: none; }
.rbb-hero + .rbb-chips { margin-top: -30px; position: relative; }
.rbb-chip {
	flex: none; scroll-snap-align: start;
	display: inline-flex; align-items: center;
	height: 36px; padding: 0 15px;
	border-radius: 999px;
	background: var(--rbb-card);
	border: 1px solid var(--rbb-line);
	color: var(--rbb-ink);
	font-size: 14px; font-weight: 600; white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 2px 6px -3px rgba(0, 0, 0, .15);
}
.rbb-chip.is-active { background: var(--rbb-dark); border-color: var(--rbb-dark); color: #fff; }

.rbb-pagehead { padding: 2px 2px 14px; }
.rbb-pagehead h1 { margin: 0 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.rbb-pagehead p, .rbb-pagehead-desc { margin: 0; font-size: 14px; color: var(--rbb-muted); }
.rbb-pagehead-desc p { margin: 0; }
.rbb-pagehead .rbb-searchform { background: var(--rbb-card); margin-bottom: 10px; }

.rbb-sectitle { font-size: 17px; font-weight: 800; margin: 26px 2px 10px; letter-spacing: -.01em; }
.rbb-section:first-child .rbb-sectitle { margin-top: 0; }

.rbb-cat { display: block; font-size: 12px; font-weight: 700; color: var(--rbb-dark); }
.rbb-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12.5px; color: var(--rbb-muted); }

/* Kartu besar */
.rbb-feature { margin-bottom: 12px; }
.rbb-feature > a {
	display: block; overflow: hidden;
	background: var(--rbb-card);
	border-radius: 22px;
	color: inherit; text-decoration: none;
}
.rbb-feature-cover { aspect-ratio: 16 / 9; background: var(--rbb-soft); }
.rbb-feature-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rbb-feature-body { padding: 14px 16px 16px; }
.rbb-feature-title { margin: 4px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.rbb-feature-excerpt {
	margin: 0 0 10px; font-size: 14.5px; color: var(--rbb-muted);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rbb-feature > a:active { opacity: .85; }

/* Daftar baris */
.rbb-list { background: var(--rbb-card); border-radius: 22px; padding: 2px 14px; }
.rbb-row + .rbb-row { border-top: 1px solid var(--rbb-line); }
.rbb-row > a {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 0;
	color: inherit; text-decoration: none;
}
.rbb-row > a:active { opacity: .7; }
.rbb-row-text { flex: 1; min-width: 0; }
.rbb-row-title {
	margin: 2px 0 4px; font-size: 15.5px; font-weight: 700; line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rbb-row-thumb {
	flex: none; width: 84px; height: 84px;
	border-radius: 14px; object-fit: cover; display: block;
	background: var(--rbb-soft);
}
.rbb-row-ph { display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--rbb-dark); }

/* Paginasi */
.rbb-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; }
.rbb-pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 10px;
	display: inline-grid; place-items: center;
	border-radius: 12px;
	background: var(--rbb-card); color: var(--rbb-ink);
	font-weight: 700; text-decoration: none;
}
.rbb-pagination .current { background: var(--rbb-primary); color: var(--rbb-primary-ink); }
.rbb-pagination .dots { background: transparent; }

/* Jelajah */
.rbb-explore { margin-top: 8px; }
.rbb-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rbb-tile {
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px 14px 12px;
	background: var(--rbb-card); border-radius: 18px;
	color: var(--rbb-ink); text-decoration: none;
	border-left: 4px solid var(--rbb-primary);
}
.rbb-tile strong { font-size: 14.5px; line-height: 1.3; }
.rbb-tile span { font-size: 12.5px; color: var(--rbb-muted); }

.rbb-widget { background: var(--rbb-card); border-radius: 20px; padding: 16px; margin-top: 12px; }
.rbb-widget-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.rbb-widget ul { list-style: none; margin: 0; padding: 0; }
.rbb-widget li { padding: 8px 0; border-top: 1px solid var(--rbb-line); }
.rbb-widget li:first-child { border-top: 0; }
.rbb-widget li a { color: var(--rbb-ink); text-decoration: none; font-weight: 600; }

/* Kotak ajakan */
.rbb-ctabox {
	margin-top: 20px;
	padding: 18px;
	border-radius: 20px;
	background: var(--rbb-dark);
	color: #fff;
}
.rbb-ctabox h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.rbb-ctabox p { margin: 0 0 14px; font-size: 14.5px; opacity: .85; }

/* Kosong */
.rbb-empty { background: var(--rbb-card); border-radius: 22px; padding: 32px 20px; text-align: center; }
.rbb-empty h1, .rbb-empty h2 { margin: 0 0 6px; font-size: 20px; }
.rbb-empty p { margin: 0 0 16px; color: var(--rbb-muted); }
.rbb-empty .rbb-searchform { margin: 0 0 14px; text-align: left; }

/* ============================================================
   Artikel
   ============================================================ */
.rbb-cover { position: relative; margin: -16px calc(var(--rbb-gutter) * -1) 0; background: var(--rbb-soft); }
.rbb-credit {
	position: absolute; right: 12px; bottom: 36px;
	max-width: calc(100% - 24px);
	padding: 4px 10px; border-radius: 999px;
	background: rgba(0, 0, 0, .55); color: #fff;
	font-size: 11.5px; line-height: 1.4;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.rbb-credit span { opacity: .8; }
.rbb-credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.rbb-cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.rbb-sheet { position: relative; background: var(--rbb-card); border-radius: 24px; padding: 22px 20px 24px; }
.rbb-single .rbb-cover + .rbb-sheet { margin-left: calc(var(--rbb-gutter) * -1); margin-right: calc(var(--rbb-gutter) * -1); }
.rbb-cover + .rbb-sheet { margin-top: -24px; }

.rbb-pill {
	display: inline-flex; align-items: center;
	height: 28px; padding: 0 12px;
	border-radius: 999px;
	background: var(--rbb-soft); color: var(--rbb-dark);
	font-size: 12.5px; font-weight: 700; text-decoration: none;
}
.rbb-single-title { margin: 10px 0 14px; font-size: clamp(22px, 6.2vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.rbb-byline { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--rbb-line); }
.rbb-byline .rbb-author { font-size: 14px; font-weight: 700; display: block; line-height: 1.3; color: var(--rbb-ink); text-decoration: none; }
.rbb-avatar { border-radius: 50%; display: block; }

.rbb-content { margin-top: 18px; font-size: 16.5px; line-height: 1.75; overflow-wrap: break-word; }
.rbb-content > *:first-child { margin-top: 0; }
.rbb-content p { margin: 0 0 1.1em; }
.rbb-content h2 { font-size: 1.3em; margin: 1.6em 0 .5em; }
.rbb-content h3 { font-size: 1.12em; margin: 1.4em 0 .4em; }
.rbb-content ul, .rbb-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.rbb-content li { margin-bottom: .35em; }
.rbb-content img { border-radius: 14px; }
.rbb-content figure { margin: 1.3em 0; }
.rbb-content figcaption, .wp-caption-text { font-size: 13px; color: var(--rbb-muted); text-align: center; margin-top: 6px; }
.rbb-content blockquote {
	margin: 1.3em 0; padding: 12px 16px;
	border-left: 4px solid var(--rbb-primary);
	background: var(--rbb-bg); border-radius: 0 14px 14px 0;
}
.rbb-content blockquote p:last-child { margin-bottom: 0; }
.rbb-content pre { overflow-x: auto; background: #111827; color: #e5e7eb; padding: 14px; border-radius: 12px; font-size: 14px; }
.rbb-content code { font-size: .9em; background: var(--rbb-bg); padding: .1em .35em; border-radius: 6px; }
.rbb-content pre code { background: none; padding: 0; }
.rbb-content table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
.rbb-content th, .rbb-content td { border: 1px solid var(--rbb-line); padding: 8px 10px; }
.rbb-content .alignwide, .rbb-content .alignfull { margin-left: -20px; margin-right: -20px; max-width: none; width: auto; }
.rbb-content .alignfull img { border-radius: 0; }
.rbb-content .wp-block-embed iframe, .rbb-content iframe { width: 100%; }
.rbb-content .wp-block-button__link { border-radius: 12px; background: var(--rbb-primary); color: var(--rbb-primary-ink); }
.alignleft { float: left; margin: .3em 1em .6em 0; }
.alignright { float: right; margin: .3em 0 .6em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.rbb-pagelinks { margin: 1em 0; font-weight: 700; }
.rbb-pagelinks a { margin-left: 6px; }

.rbb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rbb-tags .rbb-chip { box-shadow: none; background: var(--rbb-bg); height: 32px; font-size: 13px; }

.rbb-share { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rbb-line); }
.rbb-share-label { flex: 1; font-size: 14px; font-weight: 700; }
.rbb-round {
	width: 42px; height: 42px;
	display: inline-grid; place-items: center;
	border: 0; border-radius: 50%;
	background: var(--rbb-bg); color: var(--rbb-ink);
	cursor: pointer; text-decoration: none;
}
.rbb-round .rbb-ico { width: 19px; height: 19px; }
.rbb-round:hover { background: var(--rbb-soft); color: var(--rbb-dark); }

/* Komentar */
.rbb-comments { margin-top: 12px; background: var(--rbb-card); border-radius: 22px; padding: 4px 18px 18px; }
.rbb-comments .rbb-sectitle { margin-top: 16px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 16px; }
.comment-body { padding: 12px 0; border-top: 1px solid var(--rbb-line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; }
.comment-metadata a { color: var(--rbb-muted); text-decoration: none; }
.comment-reply-link { font-size: 13px; font-weight: 700; }
.comment-respond { margin-top: 12px; }
.comment-reply-title { font-size: 16px; margin: 8px 0; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 12px;
	border: 1px solid var(--rbb-line); border-radius: 12px;
	background: var(--rbb-bg); font-size: 16px;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.comment-form-cookies-consent label { font-weight: 400; }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--rbb-primary); }

/* ============================================================
   Footer
   ============================================================ */
.rbb-footer { padding: 26px 20px 22px; text-align: center; font-size: 13.5px; color: var(--rbb-muted); }
.rbb-footer-logo { max-height: 36px; width: auto; margin: 0 auto 8px; display: block; opacity: .9; }
.rbb-footer-name { display: block; color: var(--rbb-ink); font-size: 15px; margin-bottom: 4px; }
.rbb-footer-about { margin: 0 auto 12px; max-width: 38ch; }
.rbb-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-bottom: 10px; }
.rbb-footer-links a { color: var(--rbb-ink); font-weight: 600; text-decoration: none; }
.rbb-footer-widgets { text-align: left; }
.rbb-footer-col { background: var(--rbb-card); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
.rbb-footer-col h4 { margin: 0 0 6px; color: var(--rbb-ink); }
.rbb-footer-copy { margin: 10px 0 0; font-size: 12.5px; }

/* ============================================================
   Bar CTA & navigasi bawah
   ============================================================ */
.rbb-ctabar,
.rbb-bottomnav {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: var(--rbb-frame);
	background: var(--rbb-card);
}
.rbb-ctabar {
	z-index: 45;
	bottom: calc(var(--rbb-navpad) + var(--rbb-safe-b));
	min-height: var(--rbb-ctabar-h);
	display: flex; align-items: center; gap: 12px;
	padding: 8px 12px 8px 16px;
	border-top: 1px solid var(--rbb-line);
	box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .35);
}
body:not(.rbb-has-bottomnav) .rbb-ctabar { bottom: 0; padding-bottom: calc(8px + var(--rbb-safe-b)); }
.rbb-ctabar-note { flex: 1; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--rbb-muted); }
.rbb-ctabar .rbb-btn { flex: none; min-height: 46px; margin-left: auto; }
@media (max-width: 340px) { .rbb-ctabar-note { display: none; } .rbb-ctabar .rbb-btn { flex: 1; } }

.rbb-bottomnav {
	z-index: 46;
	bottom: 0;
	height: calc(var(--rbb-nav-h) + var(--rbb-safe-b));
	padding-bottom: var(--rbb-safe-b);
	display: flex;
	border-top: 1px solid var(--rbb-line);
}
.rbb-bn-item {
	flex: 1; min-width: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	padding: 0; border: 0; background: none;
	color: var(--rbb-muted);
	font-size: 11.5px; font-weight: 600;
	text-decoration: none; cursor: pointer;
}
.rbb-bn-label { max-width: 100%; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbb-ico-wrap { width: 56px; height: 30px; display: grid; place-items: center; border-radius: 999px; transition: background .2s ease; }
.rbb-bn-item .rbb-ico { width: 22px; height: 22px; }
.rbb-bn-item.is-active { color: var(--rbb-dark); }
.rbb-bn-item.is-active .rbb-ico-wrap { background: var(--rbb-soft); }
.rbb-bn-item.is-active .rbb-ico { stroke-width: 2.3; }
.rbb-bn-item[aria-expanded="true"] { color: var(--rbb-dark); }
.rbb-bn-item[aria-expanded="true"] .rbb-ico-wrap { background: var(--rbb-soft); }

/* ============================================================
   Drawer
   ============================================================ */
.rbb-drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s linear .25s; }
.rbb-drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.rbb-drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, .45); opacity: 0; transition: opacity .25s ease; }
.rbb-drawer.is-open .rbb-drawer-backdrop { opacity: 1; }
.rbb-drawer-panel {
	position: absolute; top: 0; bottom: 0;
	right: max(0px, calc((100% - var(--rbb-frame)) / 2));
	width: min(320px, 86%);
	display: flex; flex-direction: column;
	background: var(--rbb-card);
	overflow-y: auto; overscroll-behavior: contain;
	padding: calc(8px + env(safe-area-inset-top, 0px)) 12px calc(16px + var(--rbb-safe-b));
	opacity: 0; transform: translateX(24px);
	transition: opacity .22s ease, transform .25s ease;
}
.rbb-drawer.is-open .rbb-drawer-panel { opacity: 1; transform: none; }
.admin-bar .rbb-drawer-panel { top: var(--rbb-admin); }
.rbb-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0 8px 8px; }
.rbb-drawer-head strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbb-drawer-nav { flex: 1; }
.rbb-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.rbb-drawer-nav .sub-menu { padding-left: 12px; }
.rbb-drawer-nav a {
	display: flex; align-items: center;
	min-height: 48px; padding: 0 12px;
	border-radius: 12px;
	color: var(--rbb-ink); font-weight: 600; text-decoration: none;
}
.rbb-drawer-nav a:hover { background: var(--rbb-bg); }
.rbb-drawer-nav .current-menu-item > a, .rbb-drawer-nav .current_page_item > a { background: var(--rbb-soft); color: var(--rbb-dark); }
.rbb-drawer-foot { border-top: 1px solid var(--rbb-line); padding: 14px 4px 0; }
.rbb-drawer-foot p { margin: 12px 0 0; font-size: 13px; color: var(--rbb-muted); }

/* Toast */
.rbb-toast {
	position: fixed; left: 50%; z-index: 70;
	bottom: calc(var(--rbb-navpad) + var(--rbb-ctabar-h) + var(--rbb-safe-b) + 14px);
	transform: translate(-50%, 10px);
	padding: 10px 16px; border-radius: 999px;
	background: #1f2937; color: #fff; font-size: 14px;
	opacity: 0; pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.rbb-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* WordPress wajib */
.sticky .rbb-feature-title::before, .sticky .rbb-row-title::before { content: "📌 "; }
.gallery-caption, .wp-caption { max-width: 100%; }

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