/*
Theme Name: SM605 Panduan Run kxbRVSKN
Theme URI: https://sm605login.asia/
Author: SM605 Panduan Indonesia
Description: Tema editorial independen untuk panduan SM605 Indonesia, dibuat khusus untuk run kxbRVSKN.
Version: 1.0.0
Text Domain: sm605-panduan
*/

:root {
  --page: #f7f9fa;
  --paper: #ffffff;
  --soft: #edf3f5;
  --ink: #172328;
  --muted: #5d7078;
  --line: #cfdbdf;
  --accent: #245f70;
  --accent-dark: #174653;
  --copper: #b96f38;
  --focus: #007d9c;
  --content: 742px;
  --wide: 1180px;
  --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, .965rem + .15vw, 1.125rem);
  line-height: 1.78;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: #0c7489; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.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; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wide); min-height: 72px; margin: auto; padding: 8px clamp(16px, 4vw, 48px); display: flex; align-items: center; gap: 28px; }
.site-brand { flex: 0 0 auto; }
.custom-logo-link { display: flex; min-height: 48px; align-items: center; }
.custom-logo { width: auto; height: 46px; max-width: 310px; object-fit: contain; }
.brand-fallback { display: inline-flex; min-height: 48px; align-items: center; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.menu-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--paper); font: inherit; font-weight: 700; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 25px); list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-size: .83rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { border-bottom-color: var(--copper); color: var(--accent-dark); }

.site-main { min-height: 60vh; }
.article { max-width: var(--content); margin: 0 auto; padding: clamp(44px, 8vw, 92px) 20px clamp(70px, 10vw, 120px); }
.article-home { max-width: var(--wide); }
.article-header { max-width: 900px; margin: 0 auto clamp(34px, 5vw, 60px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { color: #102027; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.2rem, 5.6vw, 4.55rem); }
h2 { margin: clamp(58px, 8vw, 94px) 0 20px; padding-top: 4px; font-size: clamp(1.7rem, 3.3vw, 2.65rem); border-top: 1px solid var(--line); }
h3 { margin: 38px 0 14px; font-size: clamp(1.25rem, 2vw, 1.7rem); }
p { margin: 0 0 1.25em; }
.article-body { max-width: var(--content); margin: 0 auto; }
.article-home .article-body { max-width: none; }
.article-home .article-body > p,
.article-home .article-body > h2,
.article-home .article-body > h3,
.article-home .article-body > ul,
.article-home .article-body > ol,
.article-home .article-body > blockquote,
.article-home .article-body > .callout,
.article-home .article-body > .faq-section { max-width: var(--content); margin-left: auto; margin-right: auto; }
.article-body > p:first-child { font-size: 1.16em; color: #2d3e45; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li { margin: .55em 0; }

.editorial-figure { max-width: 1060px; margin: clamp(34px, 6vw, 66px) auto; }
.editorial-figure img { width: 100%; max-height: 650px; object-fit: cover; border-radius: var(--radius); background: var(--soft); box-shadow: 0 4px 16px rgba(30,55,65,.06); }
.editorial-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .83rem; line-height: 1.55; }
.article-home .editorial-figure.is-hero img { aspect-ratio: 3/2; max-height: 640px; }

.table-scroll { margin: 34px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); color: #183039; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
blockquote, .callout { margin: 34px 0; padding: 20px 24px; border-left: 4px solid var(--copper); background: #fff8ef; }

.faq-section { margin-top: 78px; }
.faq-section h2 { margin-top: 0; }
.faq-item { margin: 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 56px; padding: 17px 42px 17px 0; cursor: pointer; color: #183039; font-weight: 750; list-style-position: outside; }
.faq-answer { padding: 0 0 20px; color: #30434a; }
.faq-answer p:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { max-width: var(--wide); margin: auto; padding: 42px clamp(16px,4vw,48px); }
.footer-brand { margin: 0 0 7px; font-weight: 800; }
.footer-note { max-width: 720px; margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 22px; margin: 0 0 18px; }
.footer-links a { min-width: 44px; min-height: 48px; display: inline-flex; align-items: center; font-size: .84rem; }
.footer-contact { margin: 0; font-size: .85rem; }
.footer-contact a { display: inline-flex; min-height: 48px; align-items: center; padding: 0 4px; }

@media (max-width: 1040px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; width: 100%; margin: 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; padding: 8px 0 14px; }
  .primary-nav a { font-size: .95rem; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  body { font-size: 1rem; line-height: 1.7; }
  .header-inner { min-height: 64px; padding: 6px 16px; }
  .custom-logo { height: 40px; max-width: 235px; }
  .article { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  h2 { margin-top: 54px; font-size: clamp(1.55rem, 8vw, 2rem); }
  .editorial-figure { margin: 30px 0; }
  .editorial-figure img { aspect-ratio: 5/4; object-fit: cover; object-position: center; }
  .table-scroll { margin-left: -4px; margin-right: -4px; }
  th, td { 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; }
}
