/* Dipindah dari index/layout/header.php */
/* ====== HEAD / GLOBAL VARIABLES ====== */
:root {
  --g-green-dark:  #245e3c;
  --g-green-mid:   #31734c;
  --g-green-teal:  #2c826b;
  --g-orange:      #f08418;
  --g-white-75:    rgba(255,255,255,0.75);
  --g-nav-height:  3.625rem;
  --g-font:        'Poppins', sans-serif;
}

/* ── Font size control (satu-satunya tempat) ── */
html { font-size: 18px; }
@media (max-width: 600px) { html { font-size: 16px; } }

* { box-sizing: border-box; }

body {
  font-family: var(--g-font);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background-color: #31734c;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/images/bg-batik.png");
  background-repeat: repeat;
  background-size: 34.375rem;
  background-position: center top;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

/* ── Main: max-width terpusat ── */
main {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.875rem;
}

/* ── Main khusus halaman /admin*: lebar untuk tabel & layar desktop,
      tetap fluid (100%) sehingga responsif di tablet/HP ── */
main.main-admin { max-width: 100rem; }
@media (min-width: 1024px) {
  main.main-admin { padding-left: 2rem; padding-right: 2rem; }
}
