/* ==========================================================================
   AMG TEMA — Base: reset, tipografi, latar, utilitas
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: .875rem;
  line-height: 1.45;
  color: var(--text-on-primary);
  background: var(--primary);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .6; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--text-on-accent); }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Latar belakang situs: gambar tetap + lapisan gelap di mobile */
.site-bg {
  position: fixed; inset: 0; z-index: -2;
  background: var(--primary) var(--site-bg-image, url("../img/brand/background.webp")) center / cover no-repeat;
}
.site-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
}
@media (min-width: 1024px) { .site-bg::after { background: transparent; } }

/* Kerangka halaman */
.page { min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: calc(var(--bottom-nav-h) + .75rem); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.main {
  flex: 1; display: flex; flex-direction: column; gap: .5rem;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: 0 0 1rem;
}
@media (min-width: 1024px) {
  .main { gap: 1rem; padding: 0 1.5rem 1.5rem; background: var(--primary); }
  .page { padding-bottom: 0; }
  .page--member { padding-bottom: calc(var(--bottom-nav-h) + 1.5rem); }
}

/* Scrollbar tipis untuk baris geser */
.scroll-x { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; padding-bottom: .25rem; }
.scroll-x > * { scroll-snap-align: start; flex: 0 0 auto; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }

/* Utilitas kecil */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; }
.grow { flex: 1 1 auto; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.hide-desktop { display: initial; } .show-desktop { display: none !important; }
@media (min-width: 1024px) { .hide-desktop { display: none !important; } .show-desktop { display: initial !important; } .show-desktop.flex { display: flex !important; } }

/* Ukuran default ikon sprite */
.ic { width: 1.25rem; height: 1.25rem; flex: none; }
