/*
Theme Name: C8VIP Cinematic W0GBLVDz
Theme URI: https://c8viplogin.asia/
Author: C8VIP Panduan Indonesia
Description: Tema editorial independen untuk C8VIP Panduan Indonesia.
Version: 1.0.0
Text Domain: c8vip-cinematic
*/

:root {
  --bg: #090a0c;
  --surface: #12151a;
  --surface-2: #181c22;
  --info: #1d2228;
  --gold: #d8a64a;
  --blue: #7da7c7;
  --text: #f2f2ef;
  --muted: #b4b6b9;
  --border: #30343a;
  --focus: #f3ce7b;
  --reading: 820px;
  --wide: 1320px;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "DejaVu Sans", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}
a { color: #f0c873; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #fff0c8; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; left: 16px; top: -90px; z-index: 9999; padding: 12px 18px; background: var(--focus); color: #111; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  min-height: 72px;
  background: rgba(9, 10, 12, .94);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(14px);
}
.header-inner { width: min(calc(100% - 40px), var(--wide)); min-height: 72px; margin: auto; display: flex; align-items: center; gap: 30px; }
.site-branding { flex: 0 0 auto; line-height: 0; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 50px; }
.custom-logo { width: auto; max-width: 270px; height: 50px; object-fit: contain; }
.brand-fallback { display: inline-flex; min-height: 50px; align-items: center; font-size: 18px; line-height: 1.1; font-weight: 800; color: var(--text); text-decoration: none; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: var(--surface); font-size: 0; cursor: pointer; }
.menu-toggle::before { content: "☰"; font-size: 25px; }
.menu-toggle[aria-expanded="true"]::before { content: "×"; font-size: 30px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: 3px 15px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.25; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--focus); }

.site-main { min-height: 70vh; }
.page-shell { padding: 78px 20px 104px; }
.page-header { width: min(100%, 960px); margin: 0 auto 46px; text-align: center; }
.page-header::before { content: "PANDUAN EDITORIAL INDEPENDEN"; display: block; margin-bottom: 18px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
.page:not(.home) h1 { font-size: clamp(38px, 5vw, 66px); }
.entry-content { width: min(100%, var(--reading)); margin: auto; }
.entry-content > p:first-child { font-size: clamp(20px, 2.3vw, 25px); line-height: 1.55; color: #f7f3e9; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2, .entry-content h3 { scroll-margin-top: 96px; text-wrap: balance; }
.entry-content h2 { margin: 2.7em 0 .75em; color: #fff; font-size: clamp(30px, 4vw, 47px); line-height: 1.14; letter-spacing: -.025em; }
.entry-content h3 { margin: 2.2em 0 .7em; font-size: clamp(23px, 3vw, 31px); line-height: 1.2; }
.entry-content strong { color: #fff5d9; }
.entry-content ul, .entry-content ol { margin: 1.1em 0 1.8em; padding-left: 1.35em; }
.entry-content li { margin-bottom: .65em; }
.entry-content blockquote { margin: 2em 0; padding: 20px 24px; border-left: 4px solid var(--gold); background: var(--info); color: #ece9df; }
.entry-content figure.editorial-image { width: min(calc(100vw - 40px), var(--wide)); max-width: none; margin: 58px 50% 74px; transform: translateX(-50%); }
.entry-content figure.editorial-image img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 28px 72px rgba(0,0,0,.38); object-fit: cover; aspect-ratio: 16 / 9; }
.entry-content figure.editorial-image.portrait-focus img { aspect-ratio: 14 / 9; object-position: center; }
.entry-content figcaption { max-width: var(--reading); margin: 14px auto 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.entry-content .asset-block, .entry-content > ol { margin: 36px 0 48px; padding: 26px 30px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.table-wrap { width: min(calc(100vw - 40px), 1080px); margin: 36px 50% 52px; transform: translateX(-50%); overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--surface-2); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: #ffe4a3; background: #20242a; font-size: 15px; }
tr:last-child td { border-bottom: 0; }
.faq-section { margin-top: 80px; }
.faq-section details { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.faq-section summary { min-height: 56px; padding: 16px 52px 16px 20px; position: relative; cursor: pointer; font-weight: 750; line-height: 1.4; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: 20px; top: 13px; color: var(--gold); font-size: 25px; }
.faq-section details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: #d7d8d7; }
.faq-answer p:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--border); background: #07080a; }
.footer-inner { width: min(calc(100% - 40px), var(--wide)); margin: auto; padding: 52px 0 34px; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.3fr); gap: 44px; }
.footer-brand { margin: 0 0 8px; font-weight: 800; font-size: 20px; }
.footer-note { max-width: 600px; margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 12px 20px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); font-size: 14px; }
.footer-bottom { width: min(calc(100% - 40px), var(--wide)); margin: auto; padding: 20px 0 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; inset: 72px 0 auto; padding: 15px 20px 24px; background: #0b0d10; border-bottom: 1px solid var(--border); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: min(100%, var(--wide)); margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 18px; }
  .primary-nav a { min-height: 48px; font-size: 16px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .header-inner { width: calc(100% - 32px); gap: 12px; }
  .custom-logo { max-width: 215px; height: 44px; }
  .brand-fallback { max-width: 230px; font-size: 15px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .page-shell { padding: 52px 16px 58px; }
  .page-header { margin-bottom: 32px; }
  h1 { font-size: clamp(36px, 11vw, 48px); }
  .page:not(.home) h1 { font-size: clamp(34px, 10vw, 46px); }
  .entry-content h2 { margin-top: 2.2em; font-size: clamp(28px, 9vw, 38px); }
  .entry-content figure.editorial-image { width: calc(100vw - 32px); margin-top: 40px; margin-bottom: 52px; }
  .entry-content figure.editorial-image img, .entry-content figure.editorial-image.portrait-focus img { aspect-ratio: 4 / 5; border-radius: 14px; }
  .entry-content .asset-block, .entry-content > ol { padding: 20px; }
  .table-wrap { width: calc(100vw - 32px); }
  .footer-inner { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 22px; }
  .footer-links { justify-content: flex-start; }
}

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