/* =====================================================================
   Abu News design: Kitab (cream + serif) x Editorial (black/red) x Minimal
   Scoped to the default (light) scheme so the dark mode keeps working.
   ===================================================================== */
.retheme-default-scheme {
  --wp--preset--color--background: #fbf7ef;
  --wp--preset--color--foreground: #f3ecdd;
  --wp--preset--color--heading: #1b1411;
  --wp--preset--color--body: #3b312b;
  --wp--preset--color--meta: #7a6c61;
  --wp--preset--color--outline: #e2d7c2;
  --wp--preset--font-family--heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --abu-ink: #111111;
  --abu-red: #b3141b;
  --abu-cream: #fbf7ef;
}
.retheme-default-scheme { background: var(--abu-cream); }

/* ---- Typography ---- */
.retheme-default-scheme h1, .retheme-default-scheme h2, .retheme-default-scheme h3,
.retheme-default-scheme h4, .retheme-default-scheme .rt-post__title, .retheme-default-scheme .wp-block-post-title {
  font-family: 'Merriweather', Georgia, serif; font-weight: 700; letter-spacing: -.005em; line-height: 1.35;
}
.retheme-default-scheme .rt-post__excerpt, .retheme-default-scheme .entry-content { line-height: 1.85; }
.retheme-default-scheme .entry-content p { margin-bottom: 1.15em; }

/* ---- Header: light logo row, black menu bar with red rule ---- */
.retheme-default-scheme .site-header__middle { background: var(--abu-cream) !important; border-bottom: 1px solid var(--wp--preset--color--outline); }
.retheme-default-scheme .site-header__main,
.retheme-default-scheme .site-header.abu-compact .site-header__main,
.retheme-default-scheme .site-header-mobile__main {
  background: var(--abu-ink) !important; border-bottom: 3px solid var(--abu-red) !important;
}
.retheme-default-scheme .site-header__main .rt-menu .menu-item a { text-shadow: none; letter-spacing: .02em; }
.retheme-default-scheme .site-header__main .rt-menu .menu-item a:before { background-color: var(--abu-red); height: 3px; bottom: -9px; }
.retheme-default-scheme .site-header__main .rt-menu .sub-menu { background: var(--abu-ink); border-top: 3px solid var(--abu-red); }
.retheme-default-scheme .site-header.abu-compact { box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.retheme-default-scheme .abu-bar-search { background: rgba(255,255,255,.12); }
.retheme-default-scheme .abu-bar-search:hover { background: var(--abu-red); }
.retheme-default-scheme .site-header-mobile__middle { background: var(--abu-cream) !important; border-bottom: 3px solid var(--abu-red); }
.retheme-default-scheme .rt-search-form__input { border-radius: 2px; background: #fff; border: 1px solid var(--wp--preset--color--outline); }

/* ---- Flash bar: black, red label ---- */
.abu-flash { border-bottom: 1px solid #000; }
.abu-flash__label { border-radius: 2px; background: var(--abu-red); }
.abu-flash__thumb { border-radius: 2px; }

/* ---- Square, editorial corners ---- */
.retheme-default-scheme .rounded-sm, .retheme-default-scheme .rounded-md,
.retheme-default-scheme .rounded-lg, .retheme-default-scheme .rounded-xl,
.retheme-default-scheme .rt-swiper-gallery, .retheme-default-scheme .rt-post__thumbnail,
.retheme-default-scheme .wp-block-cover, .retheme-default-scheme .rt-toc { border-radius: 2px !important; }
.retheme-default-scheme .taxonomy-category a, .retheme-default-scheme .rt-post-category a { border-radius: 2px; letter-spacing: .04em; font-size: .78em; text-transform: uppercase; }
.retheme-default-scheme .abu-arrow { border-radius: 2px; }
.retheme-default-scheme .rt-gotop { border-radius: 2px; }

/* ---- Cards: no frame, hairline separators ---- */
.retheme-default-scheme .rt-swiper-gallery { background: #fff; border-color: var(--wp--preset--color--outline); }
.retheme-default-scheme .rt-post.is-style-list { padding-bottom: 28px; border-bottom: 1px solid var(--wp--preset--color--outline); }
.retheme-default-scheme .rt-post__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease, color .2s ease; }
.retheme-default-scheme .rt-post__title a:hover { background-size: 100% 1px; color: var(--abu-red); }
.retheme-default-scheme .rt-post-meta, .retheme-default-scheme .rt-post-meta__item { letter-spacing: .02em; }

/* ---- Section headings: double rule + ornament ---- */
.retheme-default-scheme .rt-block-heading,
.retheme-default-scheme .rt-widget__title {
  border-top: 3px solid var(--abu-ink); border-bottom: 1px solid var(--wp--preset--color--outline);
  padding: 12px 0 10px; margin-bottom: 22px; position: relative;
}
.retheme-default-scheme .rt-block-heading:after, .retheme-default-scheme .rt-block-heading__title:after,
.retheme-default-scheme .rt-widget__title:after, .retheme-default-scheme .rt-block-heading:before { content: none !important; display: none !important; }
.retheme-default-scheme .rt-block-heading__title, .retheme-default-scheme .rt-widget__title {
  font-size: 1.15rem; margin: 0; border: 0;
}
.retheme-default-scheme .rt-block-heading__title:before, .retheme-default-scheme .rt-widget__title:before {
  content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--abu-red); margin-right: .6em; vertical-align: .08em;
}
.retheme-default-scheme .rt-block-heading { border-bottom: 1px solid var(--wp--preset--color--outline); }
.retheme-default-scheme .rt-block-heading .rt-block-heading__title { padding: 0; border-top: 0; border-bottom: 0; margin: 0; }
.retheme-default-scheme .rt-widget__title { margin-bottom: 20px; }

/* ---- Articles: hadith / quote boxes + Daftar Isi ---- */
.retheme-default-scheme blockquote, .retheme-default-scheme .wp-block-quote {
  background: #fff; border: 0; border-left: 4px solid var(--abu-red); border-radius: 0;
  padding: 18px 24px; margin: 1.6em 0; font-style: normal; box-shadow: 0 1px 0 var(--wp--preset--color--outline);
}
.retheme-default-scheme .rt-toc {
  background-color: #fff; border: 1px solid var(--wp--preset--color--outline); border-top: 3px solid var(--abu-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23b3141b' stroke-opacity='.07'%3E%3Ccircle cx='0' cy='0' r='22'/%3E%3Ccircle cx='44' cy='0' r='22'/%3E%3Ccircle cx='0' cy='44' r='22'/%3E%3Ccircle cx='44' cy='44' r='22'/%3E%3Ccircle cx='22' cy='22' r='22'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Footer: black, geometric pattern, red rule ---- */
.retheme-default-scheme .site-footer {
  background-color: #0f0d0c !important; border-top: 4px solid var(--abu-red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10'%3E%3Ccircle cx='0' cy='0' r='22'/%3E%3Ccircle cx='44' cy='0' r='22'/%3E%3Ccircle cx='0' cy='44' r='22'/%3E%3Ccircle cx='44' cy='44' r='22'/%3E%3Ccircle cx='22' cy='22' r='22'/%3E%3C/g%3E%3C/svg%3E");
}
.retheme-default-scheme .site-footer .rt-widget__title { border-top-color: var(--abu-red); border-bottom-color: rgba(255,255,255,.14); color: #fff; }
.retheme-default-scheme .site-footer .rt-widget__title:before { color: var(--abu-red); }
/* ---- Footer in dark mode: keep ornament + readable colours ---- */
.retheme-dark-scheme .site-footer { background-color: #0a0a0b !important; border-top: 4px solid #e11d27; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.10'%3E%3Ccircle cx='0' cy='0' r='22'/%3E%3Ccircle cx='44' cy='0' r='22'/%3E%3Ccircle cx='0' cy='44' r='22'/%3E%3Ccircle cx='44' cy='44' r='22'/%3E%3Ccircle cx='22' cy='22' r='22'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---- Footer on mobile: tidy, centred, compact ---- */
@media (max-width: 768px) {
  .site-footer__widget { padding-top: 34px !important; padding-bottom: 6px !important; }
  .site-footer__widget .wp-block-columns { gap: 28px !important; }
  .site-footer__widget .wp-block-column:first-child { text-align: center; }
  .site-footer .rt-logo { display: block; margin: 0 auto 14px; width: 230px !important; max-width: 100%; }
  .site-footer .rt-logo img { width: 100%; height: auto; }
  .site-footer .widget_text { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.82); }
  .site-footer .widget_retheme_social, .site-footer .rt-social { justify-content: center; display: flex; }
  .site-footer .rt-widget__title { font-size: 1.02rem; padding: 10px 0 8px; margin-bottom: 14px; }
  .site-footer .widget_nav_menu ul, .site-footer .widget_categories ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0; padding: 0; list-style: none; }
  .site-footer .widget_nav_menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .site-footer .widget_nav_menu li a { display: block; padding: 9px 0; font-size: 14px; }
  .site-footer .widget_tag_cloud a { display: inline-block; margin: 0 6px 8px 0; }
  .site-footer__bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px !important; padding-bottom: 22px !important; }
  .site-footer__bottom .wp-block-columns { gap: 12px !important; justify-content: center; }
  .site-footer__bottom .wp-block-column { flex-basis: 100% !important; justify-content: center !important; text-align: center; }
  .site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 0; padding: 0; list-style: none; }
}
@media (max-width: 768px) { .site-footer__bottom { padding-bottom: 84px !important; } }

.abu-all-link { text-align: center; margin: 8px 0 34px; }
.abu-all-link a { font-weight: 700; color: var(--abu-red); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Comment badge: red notification bubble, top-left corner ---------- */
.abu-cc { left: 6px !important; top: 6px !important; min-width: 24px; height: 24px; padding: 0 6px !important; justify-content: center;
  background: #e5202e !important; color: #fff !important; font-size: 12px !important; font-weight: 700; line-height: 1 !important;
  border: 0 !important; border-radius: 999px !important; backdrop-filter: none !important;
  box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0,0,0,.28); }
.abu-cc svg { display: none !important; }

/* ---------- Pager row: "Muat lebih banyak" left, "Lihat semua artikel" right ---------- */
.abu-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 34px; padding-top: 22px; border-top: 1px solid var(--wp--preset--color--outline, #e2d7c2); }
.abu-pager > * { margin: 0 !important; }
.abu-pager .rt-pagination, .abu-pager .rt-loop-pagination, .abu-pager > div { display: flex; justify-content: flex-start; }
.abu-pager .abu-all-link { text-align: right; margin: 0 0 0 auto !important; }
.abu-pager .abu-all-link a { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--abu-ink, #111); padding: 10px 18px; border-radius: 2px; color: var(--abu-ink, #111); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease; }
.abu-pager .abu-all-link a:hover { background: var(--abu-ink, #111); color: #fff; }
@media (max-width: 520px) { .abu-pager { justify-content: center; } .abu-pager .abu-all-link { margin: 0 !important; } }
/* ====================== 404: signal lost ====================== */
.abu-404 { position: relative; overflow: hidden; background: #07080b; color: #e8eaf0; padding-top: 70px; padding-bottom: 80px; isolation: isolate; }
.abu-404__grid { position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 75%); animation: abuGrid 18s linear infinite; }
.abu-404::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); animation: abuScan 9s linear infinite; }
.abu-404__orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); opacity: .5; }
.abu-404__orb--a { width: 380px; height: 380px; left: -90px; top: -60px; background: #e11d27; animation: abuFloat 11s ease-in-out infinite; }
.abu-404__orb--b { width: 320px; height: 320px; right: -80px; bottom: -80px; background: #00c2ff; opacity: .28; animation: abuFloat 14s ease-in-out infinite reverse; }
.abu-404__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.abu-404__tag { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .22em; color: #9aa3b5; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); padding: 9px 16px; border-radius: 999px; margin: 0 0 22px; backdrop-filter: blur(6px); }
.abu-404__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b47; box-shadow: 0 0 12px #ff3b47; animation: abuBlink 1.2s steps(2) infinite; }
.abu-404__code { position: relative; margin: 0; font: 900 clamp(110px, 24vw, 230px)/1 "Merriweather", Georgia, serif; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 40px rgba(225,29,39,.55); animation: abuGlow 3.5s ease-in-out infinite; }
.abu-404__code::before, .abu-404__code::after { content: attr(data-text); position: absolute; inset: 0; overflow: hidden; }
.abu-404__code::before { color: #00e0ff; transform: translate(-3px, 0); clip-path: inset(0 0 55% 0); mix-blend-mode: screen; animation: abuGlitchA 3.2s infinite steps(1); }
.abu-404__code::after { color: #ff2f3d; transform: translate(3px, 0); clip-path: inset(48% 0 0 0); mix-blend-mode: screen; animation: abuGlitchB 2.7s infinite steps(1); }
.abu-404__title { font: 700 clamp(20px, 3.4vw, 30px)/1.3 "Merriweather", Georgia, serif; margin: 6px 0 10px; color: #fff; }
.abu-404__text { max-width: 560px; margin: 0 auto 28px; color: #a4adbf; line-height: 1.75; font-size: 15.5px; }
.abu-404__search { position: relative; display: flex; align-items: center; gap: 0; max-width: 560px; margin: 0 auto 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 2px; background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px rgba(225,29,39,.0), 0 18px 50px rgba(0,0,0,.45); transition: border-color .25s ease, box-shadow .25s ease; backdrop-filter: blur(8px); }
.abu-404__search:focus-within { border-color: #ff3b47; box-shadow: 0 0 0 3px rgba(255,59,71,.2), 0 18px 50px rgba(0,0,0,.45); }
.abu-404__prompt { padding: 0 6px 0 16px; font: 700 15px ui-monospace, Consolas, monospace; color: #ff3b47; }
.abu-404__search input[type=search] { flex: 1; min-width: 0; background: transparent !important; border: 0 !important; outline: 0; box-shadow: none !important; color: #fff; padding: 16px 10px; font-size: 15px; }
.abu-404__search input::placeholder { color: #6d778a; }
.abu-404__search button { border: 0; background: #e11d27; color: #fff; font-weight: 700; padding: 0 24px; align-self: stretch; cursor: pointer; letter-spacing: .04em; transition: background .2s ease; }
.abu-404__search button:hover { background: #ff3b47; }
.abu-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 28px; }
.abu-404__btn { display: inline-flex; align-items: center; padding: 12px 22px; border: 1px solid rgba(255,255,255,.28); border-radius: 2px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.abu-404__btn:hover { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); color: #fff; }
.abu-404__btn--primary { background: #e11d27; border-color: #e11d27; }
.abu-404__btn--primary:hover { background: #ff3b47; border-color: #ff3b47; }
.abu-404__chips { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.abu-404__chips a { display: inline-block; padding: 7px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #c4cbda; font-size: 13px; text-decoration: none; transition: all .2s ease; }
.abu-404__chips a:hover { color: #fff; border-color: #00c2ff; box-shadow: 0 0 14px rgba(0,194,255,.35); }
.abu-404__label { font: 600 12px ui-monospace, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; color: #6d778a; margin: 0 0 14px; }
.abu-404__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left; }
.abu-404__card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: 2px; text-decoration: none; color: #e8eaf0; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.abu-404__card:hover { transform: translateY(-4px); border-color: #ff3b47; background: rgba(255,255,255,.07); color: #fff; }
.abu-404__thumb img { width: 100%; height: 110px; object-fit: cover; display: block; border-radius: 2px; }
.abu-404__ctitle { font-size: 13.5px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) { .abu-404__cards { grid-template-columns: 1fr; } .abu-404__thumb img { height: 150px; } .abu-404 { padding-top: 46px; } .abu-404__prompt { display: none; } }
@keyframes abuGrid { to { background-position: 44px 44px, 44px 44px; } }
@keyframes abuScan { from { background-position: 0 0; } to { background-position: 0 90px; } }
@keyframes abuFloat { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, 30px); } }
@keyframes abuBlink { 50% { opacity: .15; } }
@keyframes abuGlow { 0%,100% { text-shadow: 0 0 34px rgba(225,29,39,.5); } 50% { text-shadow: 0 0 60px rgba(225,29,39,.85); } }
@keyframes abuGlitchA { 0%,86%,100% { clip-path: inset(0 0 100% 0); } 87% { clip-path: inset(10% 0 60% 0); transform: translate(-6px,0); } 90% { clip-path: inset(40% 0 30% 0); transform: translate(5px,0); } 93% { clip-path: inset(0 0 55% 0); transform: translate(-3px,0); } }
@keyframes abuGlitchB { 0%,80%,100% { clip-path: inset(100% 0 0 0); } 82% { clip-path: inset(55% 0 20% 0); transform: translate(6px,0); } 85% { clip-path: inset(20% 0 55% 0); transform: translate(-5px,0); } 88% { clip-path: inset(48% 0 0 0); transform: translate(3px,0); } }
@media (prefers-reduced-motion: reduce) { .abu-404__grid, .abu-404::after, .abu-404__orb, .abu-404__code, .abu-404__code::before, .abu-404__code::after, .abu-404__dot { animation: none !important; } }

/* ====================== Source credit box under each article ====================== */
.abu-source { margin: 38px 0 6px; padding: 18px 22px; background: #fff; border: 1px solid var(--wp--preset--color--outline, #e2d7c2); border-left: 4px solid var(--abu-red, #b3141b); border-radius: 2px; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.75; color: var(--wp--preset--color--body, #3b312b); }
.abu-source svg { flex: 0 0 auto; margin-top: 3px; color: var(--abu-red, #b3141b); }
.abu-source strong { color: var(--wp--preset--color--heading, #1b1411); }
.abu-source a { color: var(--abu-red, #b3141b); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.abu-source__url { word-break: break-all; font-size: 13px; color: #7a6c61; }
.retheme-dark-scheme .abu-source { background: #1c1c1e; border-color: #333; }

/* ====================== Toast: "copied with source" ====================== */
.abu-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 100003; background: #111; color: #fff; padding: 11px 18px; border-radius: 2px; border-left: 4px solid var(--abu-red, #b3141b); font-size: 13.5px; box-shadow: 0 14px 34px rgba(0,0,0,.3); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; max-width: 92vw; }
.abu-toast.is-show { opacity: 1; transform: translate(-50%, 0); }