/*
Theme Name: SLOT39 Nordic Guide AA53W3RP
Theme URI: https://slot39login.asia/
Author: SLOT39 Panduan Indonesia
Description: Tema editorial mandiri untuk panduan SLOT39 Indonesia.
Version: 1.0.0
Text Domain: slot39-guide
*/

:root {
  --page: #f6f9fa;
  --paper: #ffffff;
  --soft: #eaf1f3;
  --ink: #172126;
  --muted: #5b6c73;
  --line: #cfdce1;
  --accent: #205f73;
  --accent-dark: #154757;
  --warm: #a25e23;
  --focus: #075f78;
  --wide: 1180px;
  --read: 752px;
  --shadow: 0 8px 26px rgba(23, 50, 61, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Noto Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.76;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--warm); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

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

.site-main { min-height: 65vh; }
.article-shell { max-width: var(--wide); margin: 0 auto; padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 52px) clamp(68px, 10vw, 116px); }
.article-content { max-width: var(--read); }
.home .article-content { max-width: var(--wide); }
.article-content > h1, .article-content > p, .article-content > h2, .article-content > h3, .article-content > ul, .article-content > ol, .article-content > blockquote, .article-content > .faq-section, .article-content > .answer-note, .article-content > .conclusion-box { max-width: var(--read); }
h1, h2, h3 { margin: 0; font-weight: 750; line-height: 1.14; letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 920px !important; font-size: clamp(2.2rem, 5.4vw, 4.45rem); margin-bottom: 24px; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); margin-top: clamp(58px, 8vw, 96px); padding-top: 18px; border-top: 1px solid var(--line); }
h3 { font-size: clamp(1.28rem, 2.3vw, 1.7rem); margin-top: 38px; }
p { margin: 18px 0; }
h1 + p { font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.65; color: #31444d; }
h1 + p + p { color: var(--muted); }
strong { font-weight: 750; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: .45em; }

.editorial-figure { width: min(100%, 1040px); margin: clamp(34px, 5vw, 62px) 0; }
.editorial-figure img { width: 100%; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); background: var(--soft); aspect-ratio: var(--ratio, auto); object-fit: cover; }
.editorial-figure figcaption { max-width: var(--read); margin-top: 10px; color: var(--muted); font-size: .86rem; }
.hero-figure { width: 100%; max-width: 1100px; }
.hero-figure img { max-height: 620px; }

.wide-table { width: min(100%, 980px); margin: 30px 0 46px; overflow-x: auto; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
th, td { padding: 15px 17px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: #123d4a; background: var(--soft); font-weight: 750; }
tr:last-child td { border-bottom: 0; }

.context-note, .answer-note, .conclusion-box { margin: 32px 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: #edf5f7; }
.conclusion-box { border-left-color: var(--warm); background: #fff7ea; }
.related-reading { max-width: var(--read); margin: 52px 0 0; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.related-reading strong { display: block; margin-bottom: 8px; }
.related-reading a { margin-right: 16px; }

.faq-section { margin-top: clamp(66px, 9vw, 104px); }
.faq-section > h2 { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; min-height: 58px; padding: 14px 4px; cursor: pointer; font-weight: 750; line-height: 1.45; }
.faq-item summary::marker { color: var(--accent); }
.faq-item p { margin: 0; padding: 0 4px 24px; color: #354850; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 42px clamp(18px, 4vw, 52px); }
.footer-statement { max-width: 760px; margin: 0 0 20px; color: #3b4d54; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-meta { margin: 0; color: var(--muted); font-size: .86rem; }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; margin: 0; padding: 12px clamp(18px, 4vw, 52px) 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 0; }
  .primary-nav a { width: 100%; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .custom-logo { width: min(250px, 64vw); }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 66px; padding-inline: 16px; }
  .custom-logo { width: min(224px, 64vw); max-height: 50px; }
  .article-shell { padding: 38px 18px 72px; }
  h1 { font-size: clamp(2.1rem, 10.4vw, 2.8rem); }
  h2 { margin-top: 58px; font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .editorial-figure { margin-block: 32px; }
  .editorial-figure img { min-height: 230px; max-height: 390px; object-position: center; }
  .wide-table { margin-inline: 0; }
  table { min-width: 620px; }
  .footer-inner { padding: 38px 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; }
}
