/*
Theme Name: Dingdong77 Atlas ERZjRZ
Theme URI: https://dingdong77login.asia/
Author: Dingdong77 Panduan Indonesia
Description: Midnight modular editorial theme created for the ERZjRZed fresh build.
Version: 1.0.0
Text Domain: dingdong77-atlas
*/

:root {
  --bg: #07111f;
  --bg-soft: #0d1c31;
  --panel: #122640;
  --panel-bright: #173551;
  --text: #f5f8fc;
  --muted: #b8c7d8;
  --line: #2a4b69;
  --cyan: #55d7ef;
  --violet: #9aa4ff;
  --coral: #ff9a7e;
  --amber: #f4c66b;
  --focus: #b8f2ff;
  --max: 1220px;
  --reading: 790px;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(0,0,0,.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 86% 3%, rgba(85,215,239,.1), transparent 25rem), var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
a { color: var(--cyan); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #aeefff; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.site-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 14px; top: -100px; z-index: 1000; padding: 10px 16px; background: #fff; color: #06101d; }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7,17,31,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.site-branding { display: flex; flex: 0 0 auto; align-items: center; max-width: 275px; }
.custom-logo-link { display: block; }
.custom-logo { width: 250px; max-height: 58px; object-fit: contain; object-position: left center; }
.brand-fallback { display: flex; align-items: center; color: var(--text); font-weight: 800; text-decoration: none; line-height: 1.15; }
.brand-fallback img { width: 250px; max-height: 58px; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; padding: 10px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; min-height: 48px; align-items: center; padding: 10px 11px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--text); border-bottom-color: var(--cyan); }

.page-hero { padding: clamp(48px, 8vw, 104px) 0 42px; border-bottom: 1px solid rgba(42,75,105,.7); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr); gap: 34px; align-items: end; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
h1 { max-width: 950px; margin: 0; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -.035em; }
.page-lede { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.hero-node { min-height: 170px; padding: 24px; display: grid; align-content: end; background: linear-gradient(145deg, rgba(85,215,239,.14), rgba(154,164,255,.08)), var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-node span { color: var(--coral); font-weight: 800; }

.content-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr); gap: 36px; padding: 56px 0 92px; }
.entry-content { min-width: 0; }
.entry-content > * { max-width: var(--reading); }
.entry-content > figure, .entry-content > table, .entry-content > .wide, .entry-content > .faq-section { max-width: 100%; }
.entry-content h2 { margin: 78px 0 18px; font-size: clamp(29px, 4vw, 43px); line-height: 1.15; letter-spacing: -.025em; scroll-margin-top: 100px; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 38px 0 12px; font-size: 24px; line-height: 1.25; }
.entry-content p { margin: 0 0 22px; color: #edf3fa; }
.entry-content strong { color: #fff; }
.entry-content ul, .entry-content ol { max-width: var(--reading); padding-left: 26px; }
.entry-content li { margin-bottom: 12px; }
.entry-content figure { margin: 36px 0 58px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.entry-content figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.entry-content figure.hero-visual img { aspect-ratio: 16 / 9; object-position: center; }
.entry-content figcaption { padding: 12px 18px 16px; color: var(--muted); font-size: 14px; }
.entry-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 30px 0 44px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.entry-content th, .entry-content td { min-width: 160px; padding: 15px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.entry-content th { color: #07111f; background: var(--cyan); font-size: 14px; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content blockquote { margin: 30px 0; padding: 22px 26px; background: var(--panel); border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; }
.content-rail { min-width: 0; }
.rail-card { position: sticky; top: 104px; padding: 24px; background: linear-gradient(160deg, rgba(85,215,239,.1), transparent), var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rail-card h2 { margin: 0 0 12px; font-size: 20px; }
.rail-card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.rail-card a { display: inline-flex; min-height: 48px; align-items: center; font-weight: 750; }

.faq-section { margin-top: 80px; padding: clamp(22px,4vw,38px); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; }
.faq-section h2 { margin-top: 0; }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section summary { min-height: 56px; padding: 15px 2px; cursor: pointer; color: var(--text); font-weight: 750; }
.faq-section details p { padding: 0 0 18px; color: var(--muted); }

.site-footer { padding: 50px 0 30px; background: #050d18; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-title { font-weight: 850; font-size: 20px; }
.site-footer p { color: var(--muted); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 1050px) {
  .header-inner { min-height: 68px; }
  .site-branding, .custom-logo, .brand-fallback img { max-width: 225px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 12px 20px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .primary-nav a { padding-inline: 14px; border: 1px solid transparent; }
}

@media (max-width: 839px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--max)); }
  .page-hero { padding-top: 42px; }
  .page-hero-grid, .content-layout { grid-template-columns: 1fr; }
  .page-hero-grid { gap: 24px; }
  .hero-node { min-height: 115px; }
  .content-layout { padding: 40px 0 70px; }
  .content-rail { order: -1; }
  .rail-card { position: static; }
  .entry-content h2 { margin-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .site-shell { width: min(calc(100% - 32px), var(--max)); }
  .site-branding, .custom-logo, .brand-fallback img { max-width: 205px; }
  .primary-nav ul { grid-template-columns: 1fr; }
  .page-hero { padding: 34px 0 30px; }
  h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero-node { display: none; }
  .entry-content figure { margin: 26px 0 42px; border-radius: 12px; }
  .entry-content figure img, .entry-content figure.hero-visual img { aspect-ratio: 4 / 3; }
  .entry-content th, .entry-content td { min-width: 150px; padding: 12px; }
}

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