/*
Theme Name: Cerita Fauna
Theme URI: https://github.com/boysseven01-gif/wordpres-project-1
Description: Tema blok hangat untuk Cerita Fauna, situs kisah dan fakta dunia hewan. Palet Hutan & Savana.
Version: 0.2.5
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: ceritafauna
*/

/* ---------- Dasar ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
.wp-block-post-title a, .pw-card a, .pw-topic a, .wp-block-button__link { text-decoration: none; }
.wp-block-button__link { box-shadow: 0 6px 18px rgba(47, 122, 59, .25); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47, 122, 59, .3); }
.is-style-outline > .wp-block-button__link { box-shadow: none; background: transparent; border: 1.5px solid var(--wp--preset--color--primary); }
.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--deep); }

/* Jarak horizontal: bagian penuh lebar, isi tetap rapi */
.wp-block-template-part > .wp-block-group,
.wp-site-blocks > main.wp-block-group:not(.pw-front):not(.pw-single):not(.pw-archive),
.wp-site-blocks > main.pw-front > .wp-block-group,
.wp-site-blocks > main.pw-single > .wp-block-group,
.wp-site-blocks > main.pw-archive > .wp-block-group {
	padding-left: var(--wp--preset--spacing--40);
	padding-right: var(--wp--preset--spacing--40);
}

/* ---------- Header menempel ---------- */
header.wp-block-template-part {
	position: sticky; top: 0; z-index: 50;
}
/* blur di pseudo-element: backdrop-filter di header membuat menu overlay (fixed) terkurung di dalamnya */
header.wp-block-template-part::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(255, 255, 255, .85);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
}
.admin-bar header.wp-block-template-part { top: 32px; }
.pw-logo { display: inline-flex; align-items: center; gap: .5rem; }
.pw-logo svg { width: 34px; height: 34px; color: #1F5F32; flex: none; }

/* ---------- Hero ---------- */
.pw-hero { position: relative; overflow: hidden; }
.pw-hero::before, .pw-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.pw-hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(95, 174, 90, .28), transparent 65%); }
.pw-hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(242, 140, 40, .16), transparent 65%); }
.pw-hero > * { position: relative; z-index: 1; }
.pw-pill { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); box-shadow: 0 2px 8px rgba(47, 122, 59, .08); }
.pw-grad { background: linear-gradient(90deg, #2F7A3B, #5FAE5A 60%, #F28C28); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pw-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: var(--wp--preset--color--muted); font-size: .9rem; }
.pw-facts li::before { content: "✓"; color: var(--wp--preset--color--primary); font-weight: 800; margin-right: .4rem; }

/* Ilustrasi hero */
.pw-visual { position: relative; padding: 1.5rem 0 2rem; max-width: 440px; margin-left: auto; }
.pw-vcard { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 1.5rem; box-shadow: 0 30px 60px -20px rgba(27, 58, 38, .25); }
.pw-vhead { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--wp--preset--color--deep); }
.pw-dot { width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.pw-pulse { display: block; width: 100%; height: 64px; margin: .75rem 0 .25rem; color: var(--wp--preset--color--primary); }
.pw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pw-checks li { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; border-radius: 12px; background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); font-size: .95rem; }
.pw-checks li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--wp--preset--color--line); background: #fff; }
.pw-checks li.done { color: var(--wp--preset--color--muted); }
.pw-checks li.done::before { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center/70% no-repeat; }
.pw-chip { position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); box-shadow: 0 12px 28px -8px rgba(27, 58, 38, .25); font-size: .85rem; font-weight: 600; color: var(--wp--preset--color--deep); animation: pw-float 6s ease-in-out infinite; }
.pw-chip-a { left: -28px; top: 0; }
.pw-chip-b { right: -12px; bottom: 0; animation-delay: -3s; }
@keyframes pw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .pw-chip { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Kartu umum ---------- */
.pw-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pw-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -14px rgba(47, 122, 59, .25); border-color: var(--wp--preset--color--primary) !important; }
.pw-card .wp-block-post-featured-image img { transition: transform .35s ease; }
.pw-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.pw-card .wp-block-post-featured-image { overflow: hidden; border-radius: 10px; }
.wp-block-post-terms a { display: inline-block; padding: .15rem .65rem; border-radius: 999px; background: var(--wp--preset--color--mint); font-weight: 600; font-size: .8rem; }

/* ---------- Topik ---------- */
.pw-topics > .wp-block-column { display: flex; flex-direction: column; }
.pw-topics > .wp-block-column > .wp-block-group { flex: 1; }
.pw-topic { position: relative; }
.pw-topic a::after { content: ""; position: absolute; inset: 0; }
.pw-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--wp--preset--color--primary); box-shadow: 0 6px 16px -6px rgba(47, 122, 59, .35); margin-bottom: 1rem; }
.pw-icon svg { width: 24px; height: 24px; }
.pw-topic h3 { margin: 0 0 .35rem; }
.pw-more { margin-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--wp--preset--color--primary); }
.pw-topic:hover .pw-more { text-decoration: underline; }

/* ---------- Langkah ---------- */
.pw-step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2F7A3B, #5FAE5A); color: #fff; font-weight: 800; box-shadow: 0 8px 18px -6px rgba(47, 122, 59, .5); margin-bottom: 1rem; }

/* ---------- Standar editorial (latar gelap) ---------- */
.pw-dark h2, .pw-dark h3 { color: #fff; }
.pw-dark .pw-check { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 174, 90, .2); color: #9BD38A; margin-bottom: .75rem; }

/* ---------- CTA pencarian ---------- */
.pw-cta { border-radius: 28px !important; background: linear-gradient(135deg, #2F7A3B 0%, #245F2F 100%) !important; }
.pw-cta h2 { color: #fff; }
.pw-cta .wp-block-search__input { border: 0; border-radius: 999px 0 0 999px; padding: .85rem 1.25rem; }
.pw-cta .wp-block-search__button { border: 0; border-radius: 0 999px 999px 0; background: var(--wp--preset--color--accent); color: #3b2300; font-weight: 700; margin: 0; padding: .85rem 1.5rem; }

/* ---------- Footer ---------- */
.pw-footer a { color: #CFE8C4; text-decoration: none; }
.pw-footer a:hover { color: #fff; text-decoration: underline; }
.pw-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.pw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

/* ---------- Responsif ---------- */
@media (max-width: 781px) {
	.wp-block-buttons.pw-header-cta { display: none; }
	.pw-visual { margin: 1rem auto 0; }
	.pw-chip-a { left: -4px; }
	.pw-chip-b { right: -4px; }
	.admin-bar header.wp-block-template-part { top: 46px; }
	.pw-hero::before { right: -220px; }
}
@media (max-width: 600px) {
	/* admin bar tidak fixed di bawah 600px: tanpa ini header berhenti 46px dari atas */
	.admin-bar header.wp-block-template-part { top: 0; }
}

/* ---------- Menu overlay (HP) ---------- */
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem 1.25rem !important; box-sizing: border-box; }
.is-menu-open .wp-block-navigation__responsive-container-content,
.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; width: 100%; }
.is-menu-open .wp-block-navigation-item__content { font-size: 1.35rem; font-weight: 600; padding: .6rem 0; }

/* ---------- Poles v0.2.4 ---------- */
.pw-topic { display: flex; flex-direction: column; }
.pw-topic h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; }
.pw-topic p { font-size: .95rem !important; line-height: 1.55; }
.pw-topic .pw-more { margin-top: auto; padding-top: .9rem; }
.pw-footer p { font-size: .95rem; line-height: 1.6; }
.pw-footer ul { font-size: .95rem; }
.pw-footer ul li a { display: inline-block; padding: .15rem 0; }
.wp-block-post-date, .wp-block-post-author-name { font-size: .9rem; color: var(--wp--preset--color--muted); }

/* ---------- Footer selalu di dasar layar + empty state ---------- */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1 0 auto; }
.pw-empty { padding: var(--wp--preset--spacing--60) 0; }

/* judul tidak menyisakan satu kata sendirian */
h1, h2, h3 { text-wrap: balance; }

/* ---------- Isi artikel v0.1.2: subjudul jelas di bawah judul utama ---------- */
.wp-block-post-content h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-top: 2.25rem; margin-bottom: .6rem; }
.wp-block-post-content h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); margin-top: 1.75rem; margin-bottom: .5rem; }
.wp-block-post-content li { margin-bottom: .35rem; }
.wp-block-term-description { color: var(--wp--preset--color--muted); margin-top: .5rem; }

/* ---------- Kolom cari (halaman hasil pencarian) ---------- */
.wp-block-search__input { border: 1px solid var(--wp--preset--color--line); border-radius: 999px 0 0 999px; padding: .75rem 1.25rem; }
.wp-block-search__input:focus { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 0; }
.wp-block-search__button { border: 0; border-radius: 0 999px 999px 0; background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; margin: 0; padding: .75rem 1.5rem; }
.wp-block-search__button:hover { background: var(--wp--preset--color--deep); }

/* ---------- Artikel v0.1.4: diperbarui, fakta singkat, sumber, bagikan, baca juga ---------- */
.pw-updated::before { content: "· Diperbarui "; }
.pw-factbox { background: var(--wp--preset--color--mint); border: 1px solid var(--wp--preset--color--line); border-left: 4px solid var(--wp--preset--color--primary); border-radius: 14px; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.pw-factbox h3 { margin-top: 0 !important; }
.pw-factbox ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.pw-sources { border-top: 1px solid var(--wp--preset--color--line); margin-top: 2.5rem; padding-top: 1rem; font-size: .9rem; color: var(--wp--preset--color--muted); }
.pw-sources h3 { font-size: 1rem !important; margin-top: 0 !important; }
.pw-sources ol { padding-left: 1.25rem; }
.pw-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0; font-size: .9rem; color: var(--wp--preset--color--muted); }
.pw-share span { margin-right: .25rem; font-weight: 600; }
.pw-share a { display: inline-block; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--wp--preset--color--line); color: var(--wp--preset--color--deep); font-weight: 700; text-decoration: none; }
.pw-share a:hover { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--mint); }
.pw-share a.pw-share-whatsapp { background: #25D366; border-color: #25D366; color: #0b3d1e; }
.pw-share a.pw-share-whatsapp:hover { background: #1ebe5a; }
.pw-related:not(:has(.wp-block-post)) { display: none; }
.pw-related h2 { margin-bottom: 1.25rem; }

/* ---------- Beranda v0.1.5: kartu topik berilustrasi, waktu baca, badge Terbaru ---------- */
.pw-topic-art { display: flex; align-items: center; justify-content: center; gap: .35rem; height: 96px; margin-bottom: 1rem; border-radius: 14px; font-size: 2.4rem; line-height: 1; background: linear-gradient(135deg, #DDF0D3, #F4F9E9); }
.pw-topic-art span:nth-child(2) { font-size: 2.9rem; transform: translateY(-2px); }
.pw-topic-art span:nth-child(3) { font-size: 1.7rem; opacity: .85; }
.pw-art-peliharaan { background: linear-gradient(135deg, #FFE9CF, #FFF6E6); }
.pw-art-fakta-unik { background: linear-gradient(135deg, #D8ECF0, #EEF8F2); }
.pw-art-perawatan { background: linear-gradient(135deg, #E4F3D8, #FFF1DC); }
.pw-meta { color: var(--wp--preset--color--muted); font-size: .9rem; align-items: center; }
.pw-meta .wp-block-post-date { margin: 0; }
.pw-meta p { margin: 0; }
.pw-readtime { color: var(--wp--preset--color--muted); font-size: .9rem; }
.pw-front .wp-block-post-template > li:first-child .wp-block-post-terms::after { content: "Terbaru"; display: inline-block; margin-left: .4rem; padding: .15rem .65rem; border-radius: 999px; background: #FFE9CF; color: #7A3E00; font-weight: 700; font-size: .8rem; }

/* ---------- v0.1.6: tanpa celah putih antara header dan hero ---------- */
.wp-site-blocks > main.pw-front { margin-block-start: 0; }

/* ---------- v0.1.7: teks sekunder lebih nyaman di HP ---------- */
@media (max-width: 781px) {
	.wp-block-post-terms a, .pw-front .wp-block-post-template > li:first-child .wp-block-post-terms::after { font-size: .9rem; }
	.pw-card .wp-block-post-excerpt, .pw-card .wp-block-post-excerpt__excerpt,
	.pw-card .wp-block-post-date, .pw-readtime { font-size: .95rem !important; }
	.pw-topic-art { height: 72px; font-size: 2rem; margin-bottom: .75rem; }
	.pw-topic-art span:nth-child(2) { font-size: 2.4rem; }
	.pw-topic-art span:nth-child(3) { font-size: 1.4rem; }
}

/* ---------- v0.1.8: kepala artikel, paragraf pembuka, kepala kategori ---------- */
.wp-site-blocks > main.pw-single,
.wp-site-blocks > main.pw-archive { margin-block-start: 0; }
.pw-post-head .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.pw-back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--wp--preset--color--primary); text-decoration: none; }
.pw-back:hover { text-decoration: underline; }
.pw-post-head .pw-meta { font-size: .95rem; }
.pw-post-head .wp-block-post-date { font-size: inherit !important; }
.pw-single .wp-block-post-featured-image { box-shadow: 0 24px 48px -24px rgba(27, 58, 38, .35); }
.pw-single .wp-block-post-content > p:first-of-type { font-size: 1.2rem; line-height: 1.6; font-weight: 500; color: var(--wp--preset--color--deep); }
.pw-archive-head h1 { margin: .75rem 0 .5rem; }
.pw-archive-head .wp-block-term-description { color: var(--wp--preset--color--muted); }
.pw-count { margin: 1rem 0 0; font-weight: 700; color: var(--wp--preset--color--primary); }
.pw-topic-art-lg { height: 220px; border-radius: 24px; font-size: 4rem; gap: .75rem; margin: 0; box-shadow: 0 30px 60px -24px rgba(27, 58, 38, .3); border: 1px solid var(--wp--preset--color--line); }
.pw-topic-art-lg span:nth-child(2) { font-size: 5rem; }
.pw-topic-art-lg span:nth-child(3) { font-size: 3rem; }
@media (max-width: 781px) {
	.pw-single .wp-block-post-content > p:first-of-type { font-size: 1.1rem; }
	.pw-topic-art-lg { height: 140px; font-size: 2.8rem; }
	.pw-topic-art-lg span:nth-child(2) { font-size: 3.4rem; }
	.pw-topic-art-lg span:nth-child(3) { font-size: 2rem; }
}

/* ---------- v0.1.11: kartu artikel sama tinggi, tanggal rata di dasar ---------- */
.wp-block-post-template.is-layout-grid > li { display: flex; }
.wp-block-post-template.is-layout-grid > li > .pw-card { flex: 1; display: flex; flex-direction: column; }
.wp-block-post-template .pw-card > * { width: 100%; }
.wp-block-post-template .pw-card > .pw-meta { margin-top: auto; padding-top: .75rem; }

/* ---------- v0.2.0: karakter majalah (serif, bentuk lembut, kolase artikel) ---------- */
h1, h2, h3, .wp-block-post-title { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif; letter-spacing: -0.01em; }
.pw-card, .pw-topic { border-radius: 24px !important; }
.pw-card .wp-block-post-featured-image, .pw-card .wp-block-post-featured-image img { border-radius: 16px !important; }
.wp-block-button__link { border-radius: 999px; }

/* masthead beranda */
.pw-hero-mag .pw-mag-intro > h1, .pw-hero-mag .pw-mag-intro > p:not(.pw-pill) { max-width: 820px; }
.pw-chiprow { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pw-chiprow a { display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); font-weight: 700; color: var(--wp--preset--color--deep); text-decoration: none; box-shadow: 0 2px 8px rgba(47, 122, 59, .08); }
.pw-chiprow a:hover { background: var(--wp--preset--color--mint); border-color: var(--wp--preset--color--primary); }

/* kolase sorotan: artikel pertama besar */
.pw-mag > li:first-child { grid-column: span 2; grid-row: span 2; }
.pw-mag > li:first-child .wp-block-post-featured-image { position: relative; flex: 1; min-height: 320px; }
.pw-mag > li:first-child .wp-block-post-featured-image img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: cover; }
.pw-mag > li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large); line-height: 1.15; }
.pw-mag > li:first-child .wp-block-post-excerpt { font-size: 1.05rem !important; }
/* tepat 4 artikel: yang keempat melebar satu baris penuh supaya tidak ada sel kosong */
@media (min-width: 782px) {
	.pw-mag > li:nth-child(4):last-child { grid-column: 1 / -1; }
	.pw-mag > li:nth-child(4):last-child .pw-card { display: grid; grid-template-columns: 34% 1fr; column-gap: 1.75rem; align-content: center; }
	.pw-mag > li:nth-child(4):last-child .pw-card > * { grid-column: 2; max-width: none; }
	.pw-mag > li:nth-child(4):last-child .pw-card > .wp-block-post-featured-image { grid-column: 1; grid-row: 1 / span 4; margin: 0; align-self: center; }
	.pw-mag > li:nth-child(4):last-child .pw-meta { margin-top: 0; }
}

/* strip "Tahukah kamu?" */
.pw-facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.pw-factcard { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 1.5rem; }
.pw-factcard span { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: .75rem; }
.pw-factcard p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--wp--preset--color--ink); }

@media (max-width: 781px) {
	.pw-mag > li:first-child { grid-column: auto; grid-row: auto; }
	.pw-mag > li:first-child .wp-block-post-featured-image { flex: none; min-height: 0; }
	.pw-mag > li:first-child .wp-block-post-featured-image img { position: static; height: auto; aspect-ratio: 16 / 9 !important; }
	.pw-facts-grid { grid-template-columns: 1fr; }
}

/* ---------- v0.2.2 Footer lebih rapi: hierarki, kotak catatan, baris bawah ---------- */
.pw-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: #9BD38A; margin: .4rem 0 1rem; }
.pw-footer ul { gap: .55rem; }
.pw-footer .wp-block-site-title { margin: 0 0 .75rem; }
.pw-footer .pw-foot-tag { max-width: 34ch; line-height: 1.65; margin: 0; }
.pw-footnote { margin-top: 2.5rem; padding: 1.1rem 1.4rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; }
.pw-footnote p { margin: 0; font-size: .9rem; line-height: 1.65; }
.pw-footnote strong { color: #fff; }
.pw-footbar { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); gap: .75rem 1.5rem; }
.pw-footbar p { margin: 0; font-size: .85rem; opacity: .8; }
.pw-footer .pw-totop { font-size: .85rem; font-weight: 600; }
@media (max-width: 781px) {
	.pw-footer .wp-block-columns { gap: 2rem; }
	.pw-footbar { flex-direction: column; align-items: flex-start; }
}

/* footer menempel ke bagian di atasnya, sedikit lebih gelap, catatan rata kiri */
.wp-site-blocks > footer { margin-block-start: 0 !important; }
.pw-footer { background-color: #122a1b !important; border-top: 1px solid rgba(255,255,255,.1); }
.pw-footnote > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }

/* v0.2.4 Bagian bawah beranda: komitmen terang berkartu, kotak pencarian menumpang ke footer */
.pw-dark { background-color: var(--wp--preset--color--paper) !important; color: var(--wp--preset--color--ink) !important; }
.pw-dark h2, .pw-dark h3 { color: var(--wp--preset--color--deep) !important; }
.pw-dark h3 { margin: 0 0 .45rem !important; }
.pw-dark .wp-block-column { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 24px; padding: 1.5rem 1.5rem 1.25rem; }
.pw-dark .wp-block-column p { margin: 0; }
.pw-dark .pw-check { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--primary); }
.pw-front > .wp-block-group:last-child { padding-bottom: 0 !important; background-color: var(--wp--preset--color--paper); }
.pw-cta { position: relative; z-index: 3; margin-bottom: -96px !important; box-shadow: 0 24px 48px -24px rgba(18,42,27,.45); }
.pw-front + footer .pw-footer { padding-top: calc(var(--wp--preset--spacing--70) + 96px) !important; }

/* v0.2.5 Komitmen jadi ringkas (kalimat + poin), tombol pencarian serasi dengan hijau/teal */
.pw-dark .pw-promise-text { margin: 0; max-width: 62ch; color: var(--wp--preset--color--muted) !important; font-size: 1.05rem; line-height: 1.7; }
.pw-points { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.pw-point { display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: .45rem 1.1rem .45rem .5rem; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--deep); }
.pw-point .pw-check { width: 26px; height: 26px; margin: 0; font-size: .8rem; }
.pw-cta .wp-block-search__button { background: #A8DB98 !important; color: #1B3A26 !important; transition: background .15s; }
.pw-cta .wp-block-search__button:hover { background: #fff !important; }
.pw-dark .pw-promise-text { max-width: 62ch !important; margin-left: max(0px, calc((100% - 1180px) / 2)) !important; margin-right: auto !important; }
.pw-dark .pw-points { max-width: 1180px !important; margin-left: auto !important; margin-right: auto !important; }
.pw-front > .wp-block-group:last-child { padding-top: var(--wp--preset--spacing--50) !important; }
