/*
Theme Name: Panduan KM777 Grid 7ZxPKTEk
Theme URI: https://km777login.asia/
Author: Redaksi Panduan KM777 Indonesia
Description: Tema editorial independen bergaya monochrome typographic grid.
Version: 1.0.0
Text Domain: panduan-km777
*/

:root {
  --ink: #151515;
  --paper: #f6f6f3;
  --white: #fff;
  --black: #111;
  --muted: #5d5d59;
  --line: #1e1e1e;
  --red: #b83228;
  --blue: #24567f;
  --soft: #e8e8e3;
  --info: #eaf0f4;
  --focus: #24567f;
  --wide: 1240px;
  --read: 760px;
  --gutter: clamp(1rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.72;
  overflow-wrap: anywhere;
}
a { color: var(--blue); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { color: var(--red); }
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; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 999; background: var(--white); color: var(--black); padding: .75rem 1rem; border: 3px solid var(--black); }
.skip-link:focus { top: 1rem; }
.site-header { background: var(--black); color: var(--white); border-bottom: 5px solid var(--red); }
.header-inner { max-width: var(--wide); margin: auto; padding: .75rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.custom-logo-link { flex: 0 1 440px; }
.custom-logo { width: min(100%, 430px); max-height: 64px; object-fit: contain; object-position: left center; }
.site-name-fallback { color: var(--white); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: .6rem; border: 2px solid var(--white); background: var(--black); color: var(--white); font: inherit; font-weight: 700; }
.primary-nav { border-top: 1px solid #555; }
.primary-nav .menu { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.primary-nav li { min-width: 0; border-left: 1px solid #555; }
.primary-nav li:last-child { border-right: 1px solid #555; }
.primary-nav a { min-height: 54px; display: flex; align-items: center; justify-content: center; padding: .55rem .45rem; color: var(--white); font-size: .8rem; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--white); color: var(--black); text-decoration: underline; }
.hero { background: var(--black); color: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--wide); margin: auto; padding: clamp(2.5rem, 8vw, 7rem) var(--gutter); }
.hero-kicker { display: inline-block; margin: 0 0 1rem; padding: .25rem .55rem; color: var(--white); border: 1px solid var(--white); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 1080px; margin: 0; color: inherit; font-size: clamp(2.25rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.page-main { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem); }
.article-body { counter-reset: chapter; }
.article-body > p, .article-body > ul, .article-body > ol, .article-body > blockquote, .article-body > h2, .article-body > h3, .article-body > details { max-width: var(--read); margin-left: auto; margin-right: auto; }
.article-body > p:first-child { margin-top: clamp(2rem, 5vw, 4rem); font-size: 1.15em; font-weight: 600; }
.article-body h2 { counter-increment: chapter; margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: 1.1rem; border-top: 5px solid var(--line); font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.025em; }
.article-body h2::before { content: counter(chapter, decimal-leading-zero) " / "; color: var(--red); font-size: .48em; letter-spacing: .04em; vertical-align: .4em; }
.article-body h3 { margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; }
.article-body p { margin-top: 1rem; margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li { margin: .65rem 0; }
.wide-table { max-width: 1100px; margin: 2.5rem auto; overflow-x: auto; border: 3px solid var(--line); background: var(--white); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .92rem; line-height: 1.45; }
th, td { padding: .8rem .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--black); color: var(--white); }
figure.editorial-image { max-width: 1100px; margin: clamp(2rem, 6vw, 4rem) auto; background: var(--black); border: 3px solid var(--black); }
figure.editorial-image img { width: 100%; aspect-ratio: var(--ratio, 14 / 9); object-fit: cover; }
figure.editorial-image.hero-image { max-width: var(--wide); --ratio: 16 / 9; }
figure.editorial-image.mobile-image { max-width: 820px; --ratio: 1 / 1; }
figcaption { padding: .75rem 1rem; color: var(--white); font-size: .85rem; line-height: 1.4; }
.direct-answer { max-width: var(--read); margin: clamp(2rem, 5vw, 4rem) auto; padding: 1.25rem; background: var(--info); border-left: 7px solid var(--blue); }
.faq-section { max-width: 920px; margin: clamp(4rem, 8vw, 7rem) auto 0; padding-top: 1rem; border-top: 8px solid var(--black); }
.faq-section h2 { max-width: none; margin-top: 1rem; }
.faq-section details { max-width: none; margin: 0; border: 1px solid var(--line); border-top: 0; background: var(--white); }
.faq-section details:first-of-type { border-top: 1px solid var(--line); }
.faq-section summary { min-height: 54px; display: flex; align-items: center; padding: .8rem 1rem; cursor: pointer; font-weight: 800; }
.faq-section details p { max-width: none; margin: 0; padding: 0 1rem 1.1rem; }
.site-footer { background: var(--black); color: var(--white); border-top: 5px solid var(--red); }
.footer-inner { max-width: var(--wide); margin: auto; padding: 2.5rem var(--gutter); display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 2.5rem; }
.footer-identity p { margin: .4rem 0; }
.site-footer a { color: var(--white); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1rem; align-content: start; }
.footer-links a { min-height: 48px; display: flex; align-items: center; }
.meta-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 839px) {
  .header-inner { min-height: 72px; }
  .custom-logo-link { flex-basis: min(72%, 390px); }
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { grid-template-columns: 1fr; padding: 0; }
  .primary-nav li, .primary-nav li:last-child { border: 0; border-bottom: 1px solid #555; }
  .primary-nav a { justify-content: flex-start; min-height: 50px; padding: .75rem var(--gutter); text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 599px) {
  :root { --gutter: 1rem; }
  h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .article-body h2 { margin-top: 3.4rem; }
  .wide-table { margin-left: -1rem; margin-right: -1rem; border-left: 0; border-right: 0; }
  .footer-links { grid-template-columns: 1fr; }
}

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

