/*
Theme Name: Panduan Merahtoto XE0N
Author: Redaksi Panduan Merahtoto Indonesia
Description: Tema artikel editorial independen untuk run xE0NIGdL.
Version: 1.0.0
Text Domain: panduan-merahtoto-xe0n
*/

:root {
  --bg: #071915;
  --article: #0b211c;
  --surface: #102a24;
  --surface-2: #15372f;
  --accent: #e8c45b;
  --accent-2: #3bc29a;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --focus: #79e0be;
  --max: 1180px;
  --article-max: 800px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 36px 36px;
  color: var(--text);
  font-family: "Noto Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
a { color: var(--accent-2); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 16px; top: 12px; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; z-index: 10000; background: var(--text); color: var(--bg); }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(7,25,21,.98); border-bottom: 1px solid var(--border); }
.header-inner { width: min(calc(100% - 32px), var(--max)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: inline-flex; align-items: center; min-height: 48px; }
.custom-logo { width: 238px; height: auto; max-height: 58px; object-fit: contain; object-position: left center; }
.text-logo { color: var(--text); font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; margin-left: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-weight: 700; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: 4px 13px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 12.5px; font-weight: 700; line-height: 1.25; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent); text-decoration-color: currentColor; }

.site-main { padding: 64px 16px 96px; }
.article-shell { width: min(100%, var(--article-max)); margin: 0 auto; }
.article-content > * { max-width: 100%; }
.article-content > h1 { margin: 0 0 24px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.06; letter-spacing: -.035em; }
.article-content > h1 + p { font-size: 1.16rem; color: #dce8e3; }
.article-content h2 { position: relative; margin: 88px 0 24px; padding-top: 22px; font-size: clamp(30px, 4vw, 43px); line-height: 1.17; letter-spacing: -.025em; border-top: 1px solid var(--border); }
.article-content h2::before { content: ""; position: absolute; top: -1px; left: 0; width: 68px; height: 3px; background: var(--accent); }
.article-content h3 { margin: 46px 0 16px; color: var(--accent-2); font-size: 1.32rem; line-height: 1.3; }
.article-content p { margin: 0 0 24px; }
.article-content ul, .article-content ol { margin: 0 0 30px; padding-left: 1.4em; }
.article-content li { margin: 0 0 10px; padding-left: .25em; }
.article-content strong { color: #fff1bc; }
.article-content code { padding: .12em .35em; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font-family: inherit; }
.table-wrap { width: 100%; margin: 28px 0 38px; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 18px 42px rgba(0,0,0,.2); }
table { width: 100%; min-width: 660px; border-collapse: collapse; background: var(--surface); font-size: .93rem; line-height: 1.55; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
th { color: var(--accent); background: var(--surface-2); }
.editorial-image { margin: 38px 0 56px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.editorial-image img { width: 100%; max-height: 680px; object-fit: cover; }
.editorial-image.is-portrait img { max-height: 720px; object-position: center 48%; }
.editorial-image figcaption { padding: 13px 16px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }
.hero-image img { aspect-ratio: 16 / 9; object-fit: cover; }
.asset-box, .decision, .timeline, .checklist { margin: 28px 0 38px; padding: 24px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; background: var(--surface-2); }
.faq-section details { margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.faq-section summary { min-height: 50px; padding: 15px 18px; cursor: pointer; color: var(--text); font-weight: 750; }
.faq-answer { padding: 0 18px 18px; color: #dce8e3; }
.updated-note { margin-top: 72px; padding-top: 18px; color: var(--muted); font-size: .86rem; border-top: 1px solid var(--border); }

.site-footer { padding: 56px 16px 34px; border-top: 1px solid var(--border); background: #05120f; }
.footer-inner { width: min(100%, var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(260px,1fr) minmax(320px,1.2fr); gap: 44px; }
.footer-title { margin: 0 0 10px; color: var(--text); font-size: 1.05rem; font-weight: 800; }
.footer-note { margin: 0 0 12px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 11px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text); }
.footer-copy { width: min(100%, var(--max)); margin: 34px auto 0; padding-top: 18px; color: #879e95; font-size: .8rem; border-top: 1px solid var(--border); }

@media (max-width: 1100px) {
  .custom-logo { width: 205px; }
  .primary-nav a { font-size: 11.5px; }
  .primary-nav ul { gap: 2px 9px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 68px; }
  .custom-logo { width: 220px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: fixed; inset: 69px 0 0; display: none; padding: 20px 16px 40px; overflow-y: auto; background: rgba(7,25,21,.995); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: block; width: min(100%, 560px); margin: 0 auto; }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav a { width: 100%; min-height: 52px; font-size: 16px; }
  body.menu-open { overflow: hidden; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-main { padding: 48px 16px 68px; }
  .article-content > h1 { font-size: clamp(34px, 10.5vw, 42px); }
  .article-content h2 { margin-top: 56px; font-size: clamp(28px, 8vw, 36px); }
  .editorial-image { margin: 30px 0 44px; border-radius: 10px; }
  .table-wrap { margin-right: 0; }
  .footer-links { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .custom-logo { width: 205px; }
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .site-main { padding-inline: 16px; }
  .asset-box, .decision, .timeline, .checklist { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
