/*
Theme Name: Panduan 888R Indonesia Run iOn7lraH
Theme URI: https://888rlogin.asia/
Author: Panduan 888R Indonesia
Description: Tema editorial independen, mobile-first, untuk Panduan 888R Indonesia.
Version: 1.0.0
Text Domain: panduan-888r
*/

:root {
  --page: #f3f7f6;
  --surface: #ffffff;
  --band: #e7f3ef;
  --ink: #142b2a;
  --muted: #637572;
  --deep: #123c3a;
  --teal: #167d72;
  --violet: #6d5bd0;
  --coral: #e97869;
  --gold: #f0b84a;
  --line: #d3e3df;
  --focus: #5a46c8;
  --shadow: 0 14px 34px rgba(20, 70, 65, .10);
  --radius: 18px;
  --wide: 1140px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: #075f57; text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--violet); }
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; }
.site-shell { width: min(calc(100% - 32px), var(--wide)); margin-inline: auto; min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  background: rgba(18, 60, 58, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.custom-logo-link { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.custom-logo { width: auto; height: 42px; max-width: 330px; }
.brand-fallback { color: #fff; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; color: #fff; background: transparent; font: inherit; font-weight: 700; }
.primary-nav { min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { display: flex; min-height: 44px; align-items: center; padding: 8px 10px; color: #fff; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.13); color: #fff; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 92px) 0 42px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 12%, rgba(240,184,74,.30), transparent 22%),
    radial-gradient(circle at 75% 80%, rgba(109,91,208,.27), transparent 27%),
    linear-gradient(132deg, #123c3a 0%, #075f57 70%, #173b50 100%);
}
.page-hero::after { content: ""; position: absolute; inset: auto -8% -70px 44%; height: 170px; border-radius: 50%; background: rgba(233,120,105,.16); transform: rotate(-6deg); }
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; color: #d9f3ec; font-size: .83rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 28px; height: 4px; border-radius: 99px; background: var(--gold); }
h1 { max-width: 890px; margin: 0; font-size: clamp(40px, 5.5vw, 68px); line-height: 1.05; letter-spacing: -.045em; text-wrap: balance; }
.hero-summary { max-width: 720px; margin: 22px 0 0; color: #ddf1ed; font-size: 1.08rem; }

.content-wrap { padding: 0 0 72px; }
.editorial-content { width: min(calc(100% - 32px), var(--reading)); margin: 0 auto; min-width: 0; }
.editorial-content > * { min-width: 0; }
.editorial-content > p:first-child { margin-top: 0; padding-top: 44px; font-size: 1.16rem; line-height: 1.7; color: #203f3d; }
.editorial-content p { margin: 0 0 1.25em; }
.editorial-content h2 { scroll-margin-top: 92px; margin: 64px 0 18px; font-size: clamp(29px, 4vw, 43px); line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
.editorial-content h2::before { content: ""; display: block; width: 48px; height: 5px; margin-bottom: 16px; border-radius: 99px; background: linear-gradient(90deg, var(--coral), var(--gold)); }
.editorial-content h3 { scroll-margin-top: 92px; margin: 42px 0 14px; font-size: clamp(22px, 3vw, 29px); line-height: 1.24; letter-spacing: -.02em; }
.editorial-content strong { color: #0f4f4a; }
.editorial-content code { padding: .08em .35em; border-radius: 6px; color: #5a2d65; background: #f1ecff; font: inherit; font-weight: 700; }
.editorial-content blockquote { margin: 34px 0; padding: 22px 24px; border-left: 5px solid var(--coral); border-radius: 0 var(--radius) var(--radius) 0; background: #fff7f4; }

.editorial-figure { width: min(calc(100vw - 32px), 1040px); margin: 42px 50%; transform: translateX(-50%); }
.editorial-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #dbe9e5; }
.editorial-figure figcaption { max-width: 760px; margin: 13px auto 0; color: var(--muted); font-size: .92rem; line-height: 1.5; text-align: center; }

.table-wrap { width: min(calc(100vw - 32px), 1040px); margin: 30px 50%; transform: translateX(-50%); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--deep); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f6faf9; }

.faq-section { width: min(calc(100vw - 32px), 900px); margin: 64px 50% 0; transform: translateX(-50%); padding: clamp(22px, 5vw, 42px); border-radius: 28px; background: var(--band); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(20,70,65,.06); }
.faq-item summary { min-height: 54px; padding: 16px 50px 16px 18px; cursor: pointer; color: var(--deep); font-weight: 800; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; top: 14px; right: 18px; color: var(--violet); font-size: 1.35rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: #304846; }

.site-footer { padding: 44px 0 34px; color: #dcecea; background: var(--deep); }
.footer-statement { max-width: 760px; margin: 0 0 10px; font-weight: 700; }
.footer-identity { margin: 0 0 24px; color: #bcd6d2; }
.footer-identity a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #ffd68b; }

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .primary-nav { display: none; position: fixed; inset: 58px 0 0; overflow-y: auto; padding: 22px 16px 40px; background: #123c3a; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 8px; }
  .primary-nav a { padding: 12px 14px; font-size: 17px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header, .header-inner { min-height: 58px; }
  .custom-logo { height: 34px; max-width: 250px; }
  .page-hero { padding: 42px 0 32px; }
  h1 { font-size: clamp(34px, 11vw, 42px); }
  .hero-summary { font-size: 1rem; }
  .editorial-content > p:first-child { padding-top: 34px; font-size: 1.07rem; }
  .editorial-content h2 { margin-top: 48px; }
  .editorial-content h3 { margin-top: 34px; }
  .editorial-figure, .table-wrap { width: calc(100vw - 32px); margin-top: 30px; margin-bottom: 30px; }
  .editorial-figure img { border-radius: 14px; }
  .faq-section { width: calc(100vw - 24px); padding: 18px 12px; border-radius: 18px; }
  .footer-links { display: grid; grid-template-columns: 1fr; gap: 2px; }
}

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

