/* assets/css/site-chrome.css (2026-11-28, SWL-9)
 * SATU sumber gaya header + footer SNISHOP. Dipakai includes/site_chrome.php di semua halaman publik
 * (beranda, kelas, produk, ebook, insight, event, FAQ, lacak, reseller, login, checkout, legal, 404).
 * Berdiri sendiri: tanpa Tailwind, tanpa ikon font, tanpa style inline, supaya halaman ber-CSP
 * "style-src 'self'" (ebook-checkout) dan 200+ halaman ebook statis tampil identik dengan beranda.
 * Selector sengaja spesifik (nav.nav-navy, footer.ft-sni) agar tidak kalah oleh CSS bawaan halaman.
 */
.sc-bf, nav.nav-navy, nav.nav-navy *, .sc-drawer, .sc-drawer *, footer.ft-sni, footer.ft-sni * { box-sizing: border-box; }
nav.nav-navy, .sc-drawer, footer.ft-sni, .sc-bf {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}

/* ---- Strip Black Friday (hilang sendiri setelah jendela promo lewat) ---- */
.sc-bf { background: #0e2d6c; border-bottom: 1px solid #c7f36b; color: #eaf1ff; position: relative; z-index: 101; }
.sc-bf .sc-bf-in {
  display: flex; align-items: stretch; gap: 6px; max-width: 1080px; margin: 0 auto; padding: 0 10px;
  min-height: 44px; font-size: 11px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden;
}
.sc-bf .sc-bf-t { display: flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sc-bf .sc-bf-t b { color: #c7f36b; font-weight: 800; flex: 0 0 auto; }
.sc-bf .sc-bf-c { display: flex; align-items: center; flex: 0 0 auto; color: #c7f36b; font-variant-numeric: tabular-nums; }
.sc-bf a.sc-bf-a {
  display: inline-flex; align-items: center; justify-content: center; margin: 0 0 0 auto; flex: 0 0 auto;
  background: #c7f36b; color: #0e2d6c; text-decoration: none; font-weight: 800; padding: 0 10px; border-radius: 8px;
  min-height: 44px; min-width: 44px; font-size: inherit;
}
.sc-bf a.sc-bf-a:hover, .sc-bf a.sc-bf-a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; text-decoration: none; }
.sc-bf .sc-bf-l { display: none; }
.sc-bf .sc-bf-s { display: inline; }
@media (min-width: 620px) {
  .sc-bf .sc-bf-l { display: inline; }
  .sc-bf .sc-bf-s { display: none; }
  .sc-bf .sc-bf-in { gap: 10px; padding: 0 16px; font-size: 13px; }
}

/* ---- Header ---- */
nav.nav-navy {
  position: sticky; top: 0; z-index: 100; width: 100%; margin: 0; padding: 0;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: none; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  color: #fff; display: block;
}
/* satu warna di semua halaman: menang atas override beranda (.site-redesign .nav-navy, .is-scrolled) */
nav.nav-navy[data-sni-chrome][data-sni-chrome][data-sni-chrome] { background: #0e2d6c !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; box-shadow: none !important; }
nav.nav-navy .nav-bar {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
}
@media (min-width: 1024px) { nav.nav-navy .nav-bar { height: 64px; padding: 0 24px; } }
nav.nav-navy a.nav-brand { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: 0; margin: 0; }
nav.nav-navy .nav-brand picture { display: inline-flex; align-items: center; }
nav.nav-navy img.nav-logo, .sc-drawer img.nav-logo {
  display: block; flex-shrink: 0; height: 28px; max-height: 28px; width: auto; max-width: none;
  aspect-ratio: 3264 / 869; object-fit: contain; filter: brightness(0) invert(1);
}
@media (min-width: 1024px) { nav.nav-navy img.nav-logo { height: 32px; max-height: 32px; } }
nav.nav-navy .nav-links { display: none; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; justify-content: flex-end; flex-wrap: nowrap; }
@media (min-width: 1024px) { nav.nav-navy .nav-links { display: flex; } }
nav.nav-navy .nav-links > a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; margin: 0; border-radius: 8px;
  color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
nav.nav-navy .nav-links > a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
nav.nav-navy .nav-links > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #c7f36b; }
nav.nav-navy .nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (min-width: 1024px) { nav.nav-navy .nav-actions { gap: 10px; } }
nav.nav-navy a.nav-wa {
  display: none; align-items: center; min-height: 44px; padding: 0 6px; color: rgba(255, 255, 255, .75);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: color .15s ease;
}
nav.nav-navy a.nav-wa:hover { color: #fff; }
@media (min-width: 1280px) { nav.nav-navy a.nav-wa { display: inline-flex; } }
@media (min-width: 1024px) and (max-width: 1151.98px) { nav.nav-navy .nav-links > a { padding: 8px 8px; } }
nav.nav-navy .nav-user {
  display: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-size: 14px; font-weight: 500;
}
@media (min-width: 768px) { nav.nav-navy .nav-user { display: inline-block; } }
@media (max-width: 639.98px) { nav.nav-navy a.nav-login { display: none; } }

/* tombol: satu gaya untuk header, drawer, dan footer */
nav.nav-navy a.sc-btn, .sc-drawer a.sc-btn, footer.ft-sni a.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; margin: 0;
  border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
nav.nav-navy a.sc-btn--lime, .sc-drawer a.sc-btn--lime { background: #c7f36b; color: #0e2d6c; }
nav.nav-navy a.sc-btn--lime:hover, .sc-drawer a.sc-btn--lime:hover { background: #d6f78f; color: #0e2d6c; }
nav.nav-navy a.sc-btn--ghost, .sc-drawer a.sc-btn--ghost, footer.ft-sni a.sc-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .18); }
nav.nav-navy a.sc-btn--ghost:hover, .sc-drawer a.sc-btn--ghost:hover, footer.ft-sni a.sc-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sc-drawer a.sc-btn { min-height: 48px; width: 100%; font-size: 16px; }
.sc-drawer a.sc-btn + a.sc-btn { margin-top: 12px; }

/* hamburger */
nav.nav-navy button.nav-burger, .sc-drawer button.nav-burger {
  width: 44px; height: 44px; flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 0; margin: 0; background: transparent; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px;
  cursor: pointer; color: #fff; transition: background-color .15s ease;
}
nav.nav-navy button.nav-burger:hover, .sc-drawer button.nav-burger:hover { background: rgba(255, 255, 255, .08); }
nav.nav-navy .nav-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; }
nav.nav-navy .nav-burger span:last-child { width: 16px; }
.sc-drawer .nav-burger svg { width: 18px; height: 18px; display: block; }
@media (min-width: 1024px) { nav.nav-navy button.nav-burger { display: none; } }

/* Lainnya: <details>, tanpa JS tetap bisa dibuka */
nav.nav-navy details.nav-more { display: none; position: relative; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; box-shadow: none; }
@media (min-width: 1024px) { nav.nav-navy details.nav-more { display: block; } }
nav.nav-navy .nav-more > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 8px;
  color: rgba(255, 255, 255, .78); font-size: 14px; font-weight: 500; list-style: none; cursor: pointer; white-space: nowrap;
}
nav.nav-navy .nav-more > summary::-webkit-details-marker { display: none; }
nav.nav-navy .nav-more > summary::after {
  content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #c7f36b;
}
nav.nav-navy .nav-more[open] > summary, nav.nav-navy .nav-more > summary:hover { color: #fff; background: rgba(255, 255, 255, .08); }
nav.nav-navy .nav-more > summary[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #c7f36b; }
nav.nav-navy .nav-more-list {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 120; min-width: 220px; padding: 6px 0;
  background: #0e2d6c; border: 1px solid rgba(199, 243, 107, .35); box-shadow: 0 8px 24px rgba(14, 45, 108, .35);
}
nav.nav-navy .nav-more-list a {
  display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 16px; border-radius: 0;
  color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 500; text-decoration: none;
}
nav.nav-navy .nav-more-list a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
nav.nav-navy .nav-more-list a[aria-current="page"] { color: #fff; box-shadow: inset 2px 0 0 #c7f36b; }
nav.nav-navy :where(a, button, summary):focus-visible, .sc-drawer :where(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
nav.nav-navy .nav-more > summary:focus-visible { outline-color: #c7f36b; }

/* Drawer ponsel: lapisan buram penuh layar */
.sc-drawer {
  position: fixed; inset: 0; z-index: 110; background: #0e2d6c; color: #fff; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s; isolation: isolate;
}
.sc-drawer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease, visibility 0s; }
.sc-drawer .sc-drawer-in {
  height: 100%; max-width: 576px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
}
.sc-drawer .sc-drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.sc-drawer .nav-mlinks { display: flex; flex-direction: column; }
.sc-drawer .nav-mlinks a {
  display: flex; align-items: center; min-height: 48px; padding: 6px 0 6px 12px; color: rgba(255, 255, 255, .9);
  font-size: 16px; font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .08); border-left: 2px solid transparent;
}
.sc-drawer .nav-mlinks a:last-child { border-bottom: 0; }
.sc-drawer .nav-mlinks a:hover { color: #fff; }
.sc-drawer .nav-mlinks a[aria-current="page"] { color: #fff; border-left-color: #c7f36b; }
.sc-drawer .sc-drawer-act { margin-top: auto; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
body.sc-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  nav.nav-navy *, .sc-drawer, .sc-drawer * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- Catatan halaman (disclaimer khusus halaman, tepat di atas footer) ---- */
.sc-note { max-width: 1040px; margin: 28px auto 0; padding: 0 16px; font-size: 14px; line-height: 1.6; color: #64748b; }
.sc-note p { margin: 0 0 10px; }
.sc-note a { color: #1e4aa3; }

/* ---- Footer gelap bersama ---- */
footer.ft-sni {
  display: block; width: 100%; max-width: none !important; margin: 48px 0 0 !important; padding: 48px 0 32px !important;
  background: #0a1628; color: #fff; border: 0; border-top: 1px solid #0a1628; font-size: 14px; position: relative; overflow: hidden;
}
footer.ft-sni .ft-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
footer.ft-sni .ft-top { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
footer.ft-sni .ft-mid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { footer.ft-sni .ft-mid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  footer.ft-sni { padding-top: 56px !important; }
  footer.ft-sni .ft-top { grid-template-columns: 4fr 8fr; gap: 56px; margin-bottom: 56px; }
}
footer.ft-sni img.ft-logo { display: block; height: 32px; width: auto; max-width: none; aspect-ratio: 3264 / 869; margin: 0 0 24px; filter: brightness(0) invert(1); }
footer.ft-sni .ft-about { margin: 0 0 24px; font-size: 14px; font-weight: 400; line-height: 1.6; color: rgba(255, 255, 255, .72); }
footer.ft-sni h4 {
  margin: 0 0 24px; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
footer.ft-sni ul { margin: 0; padding: 0; list-style: none; }
footer.ft-sni .ft-links { display: flex; flex-direction: column; gap: 2px; }
footer.ft-sni a.ft-link, footer.ft-sni .ft-links a, footer.ft-sni .ft-legal a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; color: rgba(255, 255, 255, .72); font-size: 14px; font-weight: 400;
  text-decoration: none; transition: color .15s ease;
}
@media (min-width: 1024px) { footer.ft-sni .ft-links a, footer.ft-sni .ft-legal a { min-height: 32px; } }
footer.ft-sni a.ft-link:hover, footer.ft-sni .ft-links a:hover, footer.ft-sni .ft-legal a:hover { color: #fff; }
footer.ft-sni .ft-contact { display: flex; flex-direction: column; gap: 16px; }
footer.ft-sni .ft-contact dt { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
footer.ft-sni .ft-contact dd { margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.6; }
footer.ft-sni dl.ft-contact { margin: 0; }
footer.ft-sni .ft-pay { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .06); margin-bottom: 16px; }
footer.ft-sni .ft-pay p { margin: 0 0 16px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
footer.ft-sni .ft-pay ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
footer.ft-sni .ft-pay li { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 700; }
footer.ft-sni .ft-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 0 0 32px; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 700; }
footer.ft-sni .ft-bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06);
}
footer.ft-sni .ft-copy { margin: 0; color: rgba(255, 255, 255, .55); font-size: 12px; font-weight: 500; text-align: center; }
footer.ft-sni .ft-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 20px; }
@media (min-width: 768px) {
  footer.ft-sni .ft-bottom { flex-direction: row; }
  footer.ft-sni .ft-copy { text-align: left; }
}

/* direktori ekosistem (teks rapat, dua kolom, tanpa ikon) */
footer.ft-sni .sc-eco-t { margin: 0 0 10px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .09em; text-transform: uppercase; color: rgba(226, 235, 247, .62); }
footer.ft-sni .sc-eco-l { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
footer.ft-sni .sc-eco-l li { padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
footer.ft-sni .sc-eco-l li:nth-child(-n+2) { border-top: 0; }
footer.ft-sni .sc-eco-l li:nth-child(2n) { padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .1); }
footer.ft-sni .sc-eco-l a { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.35; color: #fff; text-decoration: none; }
footer.ft-sni .sc-eco-l a:hover { color: #8fb7ff; text-decoration: underline; text-underline-offset: 3px; }
footer.ft-sni .sc-eco-l span { display: none; margin-top: 2px; font-size: 13px; line-height: 1.45; color: rgba(226, 235, 247, .62); }
@media (min-width: 720px) {
  footer.ft-sni .sc-eco-l { column-gap: 28px; }
  footer.ft-sni .sc-eco-l li { padding: 9px 0; }
  footer.ft-sni .sc-eco-l li:nth-child(2n) { padding-left: 14px; }
  footer.ft-sni .sc-eco-l li:first-child, footer.ft-sni .sc-eco-l li:nth-child(2) { padding-top: 0; }
  footer.ft-sni .sc-eco-l a { display: inline-flex; min-height: 20px; }
  footer.ft-sni .sc-eco-l span { display: block; }
}

/* beranda punya bilah aksi tetap di bawah pada ponsel: beri ruang agar baris legal tidak tertutup */
@media (max-width: 767.98px) { .landing-surface footer.ft-sni { padding-bottom: 6rem !important; } }

/* halaman reseller punya bilah aksi tetap di bawah: beri ruang di bawah footer */
body.rs footer.ft-sni { padding-bottom: 110px !important; }
