/*
Theme Name: Panduan NA777 Editorial Grid R2OYWVJR
Theme URI: https://na777login.asia/
Author: Panduan NA777 Indonesia
Description: Tema editorial independen untuk panduan NA777 Indonesia.
Version: 1.0.0
Text Domain: panduan-na777
*/

:root {
  --ink: #111111;
  --paper: #f6f6f3;
  --surface: #ffffff;
  --muted: #5d5d58;
  --line: #1e1e1e;
  --accent: #c83e32;
  --accent-dark: #97261f;
  --info: #eaf0f4;
  --max: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: .1em; text-underline-offset: .17em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #2d5f8b; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10000; background: #fff; color: #111; border: 3px solid #111; padding: 10px 16px; }
.skip-link:focus { top: 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.email-address { display: inline-flex; white-space: nowrap; }

.site-header { position: relative; z-index: 20; background: var(--ink); color: #fff; border-bottom: 4px solid var(--accent); }
.header-inner { width: min(calc(100% - 48px), var(--max)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 52px; }
.site-brand img { width: 250px; max-height: 54px; object-fit: contain; object-position: left center; }
.brand-fallback { color: #fff; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 2px solid #fff; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.primary-nav { margin-left: auto; }
.primary-menu { display: flex; align-items: stretch; gap: 0; margin: 0; padding: 0; list-style: none; }
.primary-menu li { display: flex; }
.primary-menu a { display: flex; align-items: center; min-height: 72px; padding: 8px 13px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; border-left: 1px solid #3f3f3f; }
.primary-menu a:hover, .primary-menu a:focus-visible { background: #fff; color: #111; text-decoration: underline; }

.site-main { min-height: 70vh; }
.entry-content { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 52px 0 96px; }
.entry-content > h1, .entry-content > p, .entry-content > h2, .entry-content > h3, .entry-content > ul, .entry-content > ol, .entry-content > blockquote, .entry-content > .faq-section, .entry-content > .notice, .entry-content > dl { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.entry-content > h1 { margin-top: 0; margin-bottom: 22px; font-size: clamp(2.45rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
.entry-content > h1 + p { font-size: clamp(1.08rem, 1.8vw, 1.35rem); line-height: 1.55; }
.entry-content h2 { margin-top: 84px; margin-bottom: 18px; padding-top: 22px; border-top: 4px solid var(--line); font-size: clamp(1.75rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.entry-content h3 { margin-top: 42px; font-size: 1.35rem; line-height: 1.25; }
.entry-content p { margin-top: 0; margin-bottom: 22px; }
.entry-content li + li { margin-top: 10px; }
.entry-content strong { font-weight: 750; }
.entry-content figure { width: min(100%, 1120px); margin: 52px auto; background: var(--ink); border: 3px solid var(--line); }
.entry-content figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-content figure.hero-editorial img { aspect-ratio: 16 / 9; }
.entry-content figcaption { padding: 12px 16px; color: #f7f7f3; font-size: 14px; line-height: 1.45; }

.table-wrap, .entry-content > table { width: min(100%, 1100px); margin: 36px auto; }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 16px; line-height: 1.5; }
.entry-content th, .entry-content td { padding: 14px; vertical-align: top; text-align: left; border: 1px solid var(--line); }
.entry-content th { background: var(--ink); color: #fff; }
.entry-content blockquote { margin-top: 36px; margin-bottom: 36px; padding: 24px 26px; background: var(--info); border-left: 7px solid #2d5f8b; }

.faq-section { margin-top: 88px; padding-top: 22px; border-top: 4px solid var(--line); }
.faq-section > h2 { margin-top: 0; border: 0; padding: 0; }
.faq-item { border-top: 2px solid var(--line); background: var(--surface); }
.faq-item:last-child { border-bottom: 2px solid var(--line); }
.faq-item summary { min-height: 56px; padding: 16px 50px 16px 16px; cursor: pointer; font-weight: 750; line-height: 1.35; }
.faq-answer { padding: 0 16px 18px; }
.faq-answer p { margin: 0; }

.site-footer { background: var(--ink); color: #f7f7f3; border-top: 5px solid var(--accent); }
.footer-inner { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 54px 0 38px; display: grid; grid-template-columns: minmax(260px, 1.1fr) 2fr; gap: 48px; }
.footer-brand { margin: 0 0 12px; font-size: 1.35rem; font-weight: 800; }
.footer-statement { max-width: 520px; margin: 0; color: #d3d3cf; font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 8px 22px; align-content: start; }
.footer-links a { min-height: 44px; display: flex; align-items: center; color: #fff; font-size: 15px; font-weight: 650; }
.footer-meta { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid #565652; color: #bdbdb8; font-size: 14px; }

@media (max-width: 1050px) {
  .header-inner { width: min(calc(100% - 32px), var(--max)); min-height: 70px; }
  .site-brand img { width: 220px; }
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--ink); border-bottom: 4px solid var(--accent); }
  .primary-nav.is-open { display: block; }
  .primary-menu { display: block; width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 8px 0 18px; }
  .primary-menu li { display: block; }
  .primary-menu a { min-height: 48px; border: 0; border-top: 1px solid #3f3f3f; padding: 12px 8px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .entry-content { width: min(calc(100% - 32px), var(--max)); padding: 36px 0 64px; }
  .entry-content > h1 { font-size: clamp(2.25rem, 12.5vw, 3.35rem); }
  .entry-content h2 { margin-top: 56px; font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .entry-content figure { margin: 36px auto; }
  .entry-content figure img, .entry-content figure.hero-editorial img { aspect-ratio: 4 / 3; }
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; }
  .entry-content th, .entry-content td { min-width: 150px; padding: 10px; }
  .footer-inner { width: min(calc(100% - 32px), var(--max)); grid-template-columns: 1fr; gap: 30px; padding-top: 42px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

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