/* Dialog liquid-glass untuk menu index.php (diadaptasi dari "Liquid Glass Modal / Dialog Window").
   Semua kelas berawalan .lg- supaya tidak bentrok dengan style.css situs. */
.lg-dialog {
  --lg-accent: oklch(0.72 0.17 152);           /* hijau sekolah */
  box-sizing: border-box;
  inline-size: min(520px, 92vw);
  max-block-size: calc(100dvh - 2rem);
  margin: auto;                                  /* style.css me-reset margin semua elemen; tanpa ini dialog menempel di pojok */
  padding: 26px 26px 28px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #fff;
  font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .35);
  /* kaca putih tipis di atas lapisan gelap tipis: teks putih tetap terbaca walau di belakangnya bagian halaman yang terang */
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)), rgba(8, 28, 22, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 40px 80px -30px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}
.lg-dialog--wide { inline-size: min(580px, 94vw); }
.lg-dialog *, .lg-dialog *::before, .lg-dialog *::after { box-sizing: border-box; }

.lg-dialog::backdrop {
  background: rgba(10, 8, 20, .45);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  overscroll-behavior: contain;
}
.lg-dialog[open] { animation: lg-in .35s cubic-bezier(.2, .9, .2, 1); }
.lg-dialog.lg-closing { animation: lg-out .2s ease forwards; }
@keyframes lg-in { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lg-out { to { transform: scale(.95); opacity: 0; } }

.lg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 18px; }
.lg-title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
.lg-close {
  flex: none; inline-size: 40px; block-size: 40px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); color: #fff;
  font: inherit; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s, transform .15s;
}
.lg-close:hover { background: rgba(255, 255, 255, .24); }
.lg-close:active { transform: scale(.94); }

.lg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-grid > .lg-link:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
.lg-group { margin: 16px 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.lg-head + .lg-group { margin-block-start: 0; }

.lg-link {
  display: flex; align-items: center; gap: .55rem; min-block-size: 48px; margin: 0; padding: 11px 16px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12);
  color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-align: start;
  text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.lg-link:hover { background: color-mix(in oklab, var(--lg-accent) 45%, transparent); border-color: color-mix(in oklab, var(--lg-accent) 40%, white); }
.lg-link:active { transform: scale(.97); }
.lg-ico { flex: none; font-size: 18px; text-shadow: none; }

.lg-close:focus-visible, .lg-link:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.lg-note { margin: 16px 2px 0; font-size: 13px; font-style: italic; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.lg-text { margin: 14px 0 0; text-align: center; font-weight: 500; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); }

.lg-frame { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.lg-frame iframe { display: block; inline-size: 100%; border: 0; }
.lg-frame--map iframe { block-size: 320px; }
.lg-frame--fb { max-inline-size: 500px; margin-inline: auto; }
.lg-frame--fb iframe { block-size: min(600px, calc(100dvh - 10rem)); }

@media (max-width: 480px) {
  .lg-dialog { padding: 20px 16px 22px; border-radius: 22px; }
  .lg-grid { grid-template-columns: 1fr; }
  .lg-grid > .lg-link:last-child:nth-child(odd) { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-dialog[open], .lg-dialog.lg-closing { animation: none; }
  .lg-link, .lg-close { transition: none; }
}
