/* SultanLulu, gaya ensiklopedia (terinspirasi skin Vector) */

:root {
  --text: #202122;
  --muted: #54595d;
  --link: #3366cc;
  --link-visited: #795cb2;
  --border: #a2a9b1;
  --border-light: #c8ccd1;
  --surface: #f8f9fa;
  --surface-2: #eaecf0;
  --content-border: #a7d7f9;
  --sidebar-w: 11.5em;
  --serif: "Linux Libertine", "Georgia", "Times New Roman", "Source Serif Pro", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* Kepala halaman */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: .55em 1.25em;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .75em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 50px; height: 50px; flex: 0 0 auto; }
.brand-text { line-height: 1.1; padding-top: 2px; }
.brand-text strong {
  display: block; font-family: var(--serif); font-size: 1.6em; font-weight: normal;
  letter-spacing: .02em; color: #202122;
}
.brand-text small {
  display: block; font-family: var(--serif); font-size: .8em;
  color: var(--muted); letter-spacing: .03em; margin-top: 1px;
}
.search { display: flex; flex: 0 1 28em; min-width: 14em; }
.search input {
  flex: 1; min-width: 0; font: inherit; padding: .35em .6em;
  border: 1px solid var(--border); border-right: 0; border-radius: 2px 0 0 2px;
  background: #fff;
}
.search input:focus { outline: 0; border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.search button {
  font: inherit; padding: .35em .9em; cursor: pointer;
  border: 1px solid var(--border); border-radius: 0 2px 2px 0;
  background: var(--surface); color: var(--text);
}
.search button:hover { background: #fff; }

/* Tata letak */
.page { display: flex; align-items: stretch; min-height: 70vh; }
.sidebar {
  flex: 0 0 var(--sidebar-w);
  padding: 1.1em .9em 1em 1.25em;
  font-size: .78em;
  background: var(--surface);
}
.sidebar h3 {
  margin: 1.4em 0 .4em;
  font-size: 1em; font-weight: normal;
  color: var(--muted);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: .25em;
}
.sidebar h3:first-child { margin-top: 0; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .2em 0; }
.sidebar a[aria-current] { color: var(--text); font-weight: 600; }
.content {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border-left: 1px solid var(--content-border);
  padding: 1em 1.5em 2em;
}
.content-inner { max-width: 76em; }

/* Tab di atas judul */
.tabs {
  display: flex; justify-content: space-between;
  border-bottom: 1px solid var(--content-border);
  margin: 0 0 .4em; font-size: .85em;
}
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2em; }
.tabs a, .tabs span {
  display: block; padding: .5em .8em .35em;
  background: linear-gradient(#fff, #f6f6f6);
  border: 1px solid var(--content-border); border-bottom: 0;
}
.tabs .active { background: #fff; color: var(--text); margin-bottom: -1px; border-bottom: 1px solid #fff; }

/* Judul dan subjudul */
h1, h2 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.3;
  border-bottom: 1px solid var(--border);
  margin: 0 0 .25em;
  padding-bottom: .1em;
}
h1 { font-size: 1.9em; }
h2 { font-size: 1.5em; margin-top: 1.2em; }
h3 { font-size: 1.15em; margin: 1em 0 .3em; font-weight: 600; }
h4 { font-size: 1em; margin: .8em 0 .3em; }
.site-sub { color: var(--muted); font-size: .9em; margin-bottom: 1em; }
p { margin: .5em 0 .7em; }
ul, ol { margin: .3em 0 .5em 1.6em; padding: 0; }
li { margin-bottom: .15em; }
dl { margin: .5em 0; }
dt { font-weight: 600; }
dd { margin: 0 0 .4em 1.6em; }
code { font-family: Consolas, "Courier New", monospace; background: var(--surface); border: 1px solid var(--surface-2); padding: 1px 4px; font-size: .95em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5em 0; }
sup.ref { font-size: .75em; line-height: 1; }
small, .muted { color: var(--muted); }

/* Catatan atas (hatnote) dan kotak pesan */
.hatnote { font-style: italic; color: var(--muted); padding-left: 1.6em; margin: 0 0 .6em; font-size: .95em; }
.notice {
  border: 1px solid var(--border); border-left: 10px solid var(--link);
  background: var(--surface); padding: .4em .8em; margin: .6em 0 1em; font-size: .92em;
}
.notice.warn { border-left-color: #f0a500; }

/* Daftar isi */
.toc {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: .5em .9em .5em .5em;
  margin: .6em 0 1em;
  font-size: .93em;
}
.toc .toctitle { text-align: center; font-weight: 600; margin-bottom: .2em; }
.toc ul { list-style: none; margin: 0 0 0 .5em; }
.toc ul ul { margin-left: 1.5em; }
.toc li { margin: .15em 0; }
.toc .n { color: var(--text); padding-right: .5em; }

/* Infobox */
.infobox {
  float: right; clear: right;
  width: 22em; max-width: 100%;
  margin: .3em 0 1em 1.2em;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .88em; line-height: 1.5;
  border-spacing: 3px;
}
.infobox caption, .infobox .title {
  caption-side: top; text-align: center;
  font-size: 1.25em; font-weight: 600; padding: .4em .2em .2em;
}
.infobox th { text-align: left; vertical-align: top; padding: .25em .4em; width: 38%; }
.infobox td { vertical-align: top; padding: .25em .4em; }
.infobox .image td { text-align: center; padding: .2em 0 .5em; }
.infobox .image img { max-width: 100%; height: auto; border: 1px solid var(--border-light); }
.infobox .group th { text-align: center; background: var(--surface-2); padding: .3em; }

/* Gambar dengan bingkai */
figure.thumb {
  float: right; clear: right;
  margin: .4em 0 1em 1.2em;
  border: 1px solid var(--border-light);
  background: var(--surface);
  padding: 3px; width: 320px; max-width: 100%;
}
figure.thumb img { display: block; border: 1px solid var(--border-light); width: 100%; }
figure.thumb figcaption { font-size: .88em; padding: .4em .3em .2em; color: var(--text); }

/* Tabel */
table.wikitable {
  background: var(--surface);
  border: 1px solid var(--border);
  border-collapse: collapse;
  margin: 1em 0;
  font-size: .95em;
}
table.wikitable th, table.wikitable td { border: 1px solid var(--border); padding: .3em .6em; vertical-align: top; }
table.wikitable th { background: var(--surface-2); text-align: left; }
table.wikitable tr:hover td { background: #fff; }
.table-wrap { overflow-x: auto; }

/* Kotak halaman utama */
.mp-grid { display: grid; grid-template-columns: 1fr; gap: 1em; margin-top: 1em; }
@media (min-width: 860px) { .mp-grid { grid-template-columns: 1fr 1fr; } }
.mp-box { border: 1px solid; padding: 0; }
.mp-box h2 {
  font-family: var(--sans); font-size: 1.1em; font-weight: 600;
  margin: 0; padding: .4em .8em; border-bottom: 1px solid;
}
.mp-box .mp-body { padding: .6em .9em; }
.mp-box.blue { border-color: #a3b0bf; background: #f5faff; }
.mp-box.blue h2 { background: #cedff2; border-color: #a3b0bf; }
.mp-box.green { border-color: #a3bfb1; background: #f5fffa; }
.mp-box.green h2 { background: #cef2e0; border-color: #a3bfb1; }
.mp-box.orange { border-color: #f2cfa3; background: #fffaf5; }
.mp-box.orange h2 { background: #f8e8cf; border-color: #f2cfa3; }
.mp-box.gray { border-color: var(--border); background: var(--surface); }
.mp-box.gray h2 { background: var(--surface-2); border-color: var(--border); }
.mp-box ul { margin-left: 1.4em; }
.mp-head { display: flex; gap: 1em; align-items: center; border: 1px solid var(--content-border); background: #f5faff; padding: .7em 1em; margin: .5em 0 0; }
.mp-head img { width: 56px; height: 56px; flex: 0 0 auto; }
.mp-head p { margin: .1em 0; }

.feature-image { margin: 1em 0; }
.feature-image img { display: block; width: 100%; height: auto; border: 1px solid var(--border-light); }
.feature-image figcaption { font-size: .8em; color: var(--muted); margin-top: .4em; }
.mp-box[hidden] { display: none; }

/* Formulir */
.form { max-width: 34em; }
.form label { display: block; margin: .6em 0 .2em; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: .4em .5em;
  border: 1px solid var(--border); border-radius: 2px; background: #fff;
}
.form textarea { resize: vertical; }
.btn {
  display: inline-block; font: inherit; cursor: pointer; margin-top: .8em;
  padding: .45em 1em; border-radius: 2px;
  border: 1px solid #36c; background: #36c; color: #fff; font-weight: 600;
}
.btn:hover { background: #447ff5; border-color: #447ff5; text-decoration: none; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.secondary:hover { background: #fff; }

/* Kaki halaman */
.footer {
  margin-left: var(--sidebar-w);
  border-top: 1px solid var(--content-border);
  padding: 1.1em 1.5em 1.6em;
  font-size: .75em; color: var(--muted);
}
.footer ul { list-style: none; margin: 0 0 .5em; padding: 0; }
.footer li { display: inline; margin-right: 1em; }
.footer .legal-line { display: block; margin-bottom: .4em; }

.breadcrumbs { margin: 0 0 .8em; font-size: .85em; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35em 0; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .65em; color: var(--muted); }

/* Banner login khusus mobile */
.mobile-login-banner { display: none; }
@media screen and (max-width: 760px) {
  body.has-mobile-login { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .mobile-login-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; z-index: 100; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 0; border: 1px solid #1a73e8; border-radius: 4px;
    background: linear-gradient(120deg, #22252c, #111318); color: #fff;
    box-shadow: 0 5px 24px rgb(0 0 0 / 25%), 0 0 18px rgb(26 115 232 / 25%);
  }
  .mobile-login-link, .mobile-login-link:visited {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 58px; padding: 16px; border-radius: 3px;
    background: #1a73e8; color: #fff; font-weight: 800;
    text-align: center; line-height: 1.3; font-size: 18px;
  }
  .mobile-login-link:hover { background: #1765cc; text-decoration: none; }
  .mobile-login-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
}

/* Responsif */
@media (max-width: 760px) {
  .page { display: block; }
  .sidebar { padding: .6em 1em; font-size: .85em; border-bottom: 1px solid var(--border-light); }
  .sidebar h3 { display: none; }
  .sidebar ul { display: flex; flex-wrap: wrap; gap: .2em 1em; }
  .sidebar ul + h3 + ul { margin-top: .2em; }
  .content { border-left: 0; padding: 1em 1em 2em; }
  .footer { margin-left: 0; padding: 1em; }
  .infobox, figure.thumb { float: none; width: 100%; margin: .5em 0 1em; }
  .header-inner { padding: .5em 1em; }
  .search { flex-basis: 100%; }
  .brand img { width: 42px; height: 42px; }
  .brand-text strong { font-size: 1.4em; }
  table.wikitable { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .toc { display: block; }
  .mp-head { flex-direction: column; align-items: flex-start; }
  .mp-head img { width: 44px; height: 44px; }
  figure.thumb[style] { width: 100% !important; }
}
@media print {
  .header, .sidebar, .tabs, .footer { display: none; }
  .content { border: 0; padding: 0; }
}
