/*
Theme Name: PAUS188 Ivory Editorial Run 44NUbuxg
Theme URI: https://paus188login.asia/
Author: PAUS188 Panduan Indonesia
Description: Tema editorial independen untuk panduan PAUS188 berbahasa Indonesia.
Version: 1.0.0
Text Domain: paus188-ivory
*/

:root {
  --paper: #f5f0e7;
  --surface: #fffcf7;
  --soft: #ebe2d5;
  --ink: #252321;
  --muted: #6d6861;
  --line: #d7cdbf;
  --brick: #9e3f35;
  --sage: #2f6f62;
  --gold: #c28b35;
  --focus: #2f6f62;
  --info: #eaf1ed;
  --warning: #fff1d0;
  --wrap: 1160px;
  --reading: 740px;
  --wide: 980px;
  --shadow: 0 10px 28px rgba(60,45,30,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(rgba(75,55,35,.035) 1px, transparent 1px) 0 0/6px 6px,
    var(--paper);
  font-family: "DejaVu Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 9999; background: var(--ink); color: #fff; padding: .65rem 1rem; }
.skip-link:focus { top: 12px; }

.site-header { background: rgba(255,252,247,.97); border-bottom: 1px solid var(--line); }
.masthead { max-width: var(--wrap); margin: auto; min-height: 70px; padding: 12px 28px; display: flex; align-items: center; justify-content: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: min(430px, 100%); max-height: 72px; object-fit: contain; }
.brand-fallback { color: var(--ink); font-size: 1.45rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.nav-bar { border-top: 1px solid var(--line); }
.nav-inner { max-width: var(--wrap); margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .55rem .8rem; font: inherit; font-weight: 700; }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.primary-menu a { display: flex; align-items: center; min-height: 50px; padding: .45rem .7rem; color: var(--ink); font-size: .78rem; font-weight: 700; line-height: 1.25; text-decoration: none; border-bottom: 3px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--brick); border-bottom-color: var(--brick); }

.site-main { min-height: 60vh; }
.article-shell { max-width: var(--wrap); margin: 0 auto; padding: 70px 28px 92px; }
.article-content { max-width: var(--reading); margin: 0 auto; }
.home .article-content { max-width: var(--wrap); }
.article-content > h1, .article-content > p, .article-content > h2, .article-content > h3, .article-content > ul, .article-content > ol, .article-content > blockquote, .article-content > details, .article-content > .source-note { max-width: var(--reading); margin-left: auto; margin-right: auto; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--ink); line-height: 1.12; text-wrap: balance; }
h1 { margin-top: 0; margin-bottom: 1.4rem; font-size: clamp(2.35rem, 5.7vw, 4rem); letter-spacing: -.04em; }
h2 { position: relative; margin-top: 4.8rem; margin-bottom: 1.25rem; padding-top: 1.1rem; border-top: 2px solid var(--brick); font-size: clamp(1.8rem, 3.8vw, 2.65rem); letter-spacing: -.025em; }
h3 { margin-top: 2.7rem; margin-bottom: .85rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
p { margin-top: 0; margin-bottom: 1.45rem; }
.article-content > h1 + p { font-size: 1.16rem; line-height: 1.7; color: #3f3b37; }
strong { color: #171614; }
.article-content ul, .article-content ol { padding-left: 1.35rem; }
.article-content li { margin-bottom: .55rem; }

.editorial-figure { max-width: var(--wide); margin: 3.2rem auto 4.5rem; background: var(--surface); border: 1px solid var(--line); padding: 12px; box-shadow: var(--shadow); }
.editorial-figure img { width: 100%; border-radius: 4px; }
.editorial-figure figcaption { margin: .75rem .3rem .2rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.editorial-figure.hero-figure { max-width: var(--wrap); margin-top: 2rem; padding: 0; border: 0; background: transparent; }
.editorial-figure.hero-figure img { border-radius: 8px; box-shadow: var(--shadow); }

.table-wrap { max-width: var(--wide); margin: 2rem auto 3.2rem; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.55; }
th, td { padding: .85rem 1rem; text-align: left; vertical-align: top; border: 1px solid var(--line); }
th { background: var(--soft); font-weight: 800; }
tr:nth-child(even) td { background: #faf6ef; }

.faq-section { max-width: var(--reading); margin: 5rem auto 0; padding-top: 1rem; border-top: 4px double var(--line); }
.faq-section h2 { margin-top: 1.5rem; }
details.faq-item { max-width: var(--reading); margin: 0 auto .75rem; background: var(--surface); border: 1px solid var(--line); }
details.faq-item summary { cursor: pointer; min-height: 52px; padding: .85rem 2.8rem .85rem 1rem; list-style: none; font-weight: 800; line-height: 1.45; position: relative; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; position: absolute; right: 1rem; top: .65rem; color: var(--brick); font-size: 1.5rem; }
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p { padding: 0 1rem 1rem; margin: 0; color: #443f3a; }

.site-footer { color: #f6efe5; background: #252321; border-top: 8px solid var(--brick); }
.footer-inner { max-width: var(--wrap); margin: auto; padding: 48px 28px 26px; }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 52px; align-items: start; }
.footer-brand { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.footer-note { color: #d7cdbf; font-size: .87rem; max-width: 440px; }
.footer-email { color: #fff; }
.footer-menu { columns: 2; column-gap: 34px; }
.footer-menu li { break-inside: avoid; margin-bottom: .5rem; }
.footer-menu a { color: #fff; font-size: .85rem; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid #514b45; color: #bfb5aa; font-size: .76rem; }

@media (max-width: 900px) {
  .site-header { position: relative; }
  .masthead { justify-content: space-between; min-height: 76px; padding: 10px 18px; }
  .custom-logo { width: min(300px, calc(100vw - 90px)); max-height: 58px; }
  .nav-bar { border-top: 0; }
  .nav-inner { display: block; padding: 0 18px; }
  .menu-toggle { display: block; position: absolute; top: 16px; right: 18px; }
  .primary-menu { display: none; padding: .6rem 0 1.2rem; }
  .primary-menu.is-open { display: block; }
  .primary-menu a { min-height: 48px; padding: .55rem .25rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .article-shell { padding: 50px 20px 70px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .article-shell { padding: 40px 16px 56px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.7rem); }
  h2 { margin-top: 3.4rem; font-size: 1.8rem; }
  .editorial-figure { margin: 2.2rem -4px 3.2rem; padding: 6px; }
  .hero-figure { margin-left: -16px !important; margin-right: -16px !important; }
  .hero-figure img { min-height: 300px; object-fit: cover; }
  .table-wrap { margin-left: -4px; margin-right: -4px; box-shadow: none; }
  table { min-width: 660px; }
  th, td { padding: .7rem .75rem; }
  .footer-inner { padding: 38px 18px 22px; }
  .footer-menu { columns: 1; }
}

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