/* Sokoguru — lapisan tampilan mobile.
   Halaman prototipe memakai style inline untuk desktop; aturan di sini menimpa tata letak
   pada layar kecil. Kelas sg-* dipasang oleh tools/patch_pages.py. */

.sg-burger, .sg-drawer, .sg-bburger { display: none; }
img, video, iframe { max-width: 100%; }
.sg-share { display: inline-flex; gap: 6px; }
.sg-share a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; text-decoration: none; }
.sg-share a:hover { filter: brightness(.9); }

/* ============ Tablet & laptop kecil: header tetap satu baris, sejajar dengan isi halaman ============ */
@media (min-width: 761px) and (max-width: 1140px) {
  .sg-hrow { flex-wrap: nowrap !important; gap: 8px 14px !important; }
  .sg-hrow > a:first-child { flex: 0 0 auto; }
  .sg-tag { display: none !important; }
  .sg-nav { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .sg-nav::-webkit-scrollbar { display: none; }
  .sg-nav a { padding-left: 9px !important; padding-right: 9px !important; white-space: nowrap; }
  .sg-hact { flex: 0 0 auto; margin-left: auto; }
  .sg-masuk { padding-left: 8px !important; padding-right: 8px !important; }
  .sg-hact .sg-btn { padding-left: 16px !important; padding-right: 16px !important; }
  .sg-fmt > div[style] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 4px 16px !important;
                         -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .sg-fmt > div::-webkit-scrollbar { display: none; }
  .sg-fmt > div > a, .sg-fmt > div > span { flex: 0 0 auto; white-space: nowrap; }
  .sg-fmt .sg-peluang { order: -1; margin: 0 !important; }
}

/* ============ Kolom samping (Terpopuler, Info Sokoguru, iklan) ============
   Di layar lebar kolom ini 300px di kanan isi. Begitu turun ke bawah isi (layar < ~1040px),
   ia harus selebar isi — bukan tetap 300px dengan ruang kosong di kanan. */
@media (max-width: 1040px) {
  aside[style*="flex: 0 1 300px"], aside[style*="flex: 0 1 340px"] { flex: 1 1 100% !important; position: static !important; }
}

/* ============ Backend: sidebar jadi laci di tablet & HP ============ */
@media (max-width: 900px) {
  .sg-bside { display: none; }
  body.sg-bnav-open .sg-bside { display: block; position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 86vw; z-index: 1001; overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.sg-bnav-open::after { content: ""; position: fixed; inset: 0; background: rgba(35,31,32,.45); z-index: 1000; }
  .sg-bburger { display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #E6E3E1; border-radius: 8px; background: #FFFFFF; cursor: pointer; flex: 0 0 auto; }
}

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }

  /* ---------- tipografi & jarak umum ---------- */
  h1[style*="font-size"] { font-size: clamp(25px, 7vw, 32px) !important; line-height: 1.2 !important; }
  h2[style*="font-size"] { font-size: clamp(20px, 5.6vw, 24px) !important; line-height: 1.25 !important; }
  [style*="max-width: 1200px"][style*="padding: 0 24px"], [style*="max-width: 1200px"][style*="padding: 0px 24px"] { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="max-width: 1200px"][style*="padding: 48px 24px"], [style*="max-width: 1200px"][style*="padding: 56px 24px"], [style*="max-width: 1200px"][style*="padding: 64px 24px"],
  [style*="max-width: 1200px"][style*="padding: 40px 24px"], [style*="max-width: 1200px"][style*="padding: 32px 24px"] { padding-left: 16px !important; padding-right: 16px !important; padding-top: 28px !important; padding-bottom: 28px !important; }
  [style*="padding: 32px"][style*="border-radius"] { padding: 20px !important; }
  [style*="padding: 28px"][style*="border-radius"] { padding: 18px !important; }
  [style*="gap: 48px"], [style*="gap: 40px"] { gap: 24px !important; }
  [style*="grid-template-columns: repeat(auto-fit, minmax(3"], [style*="grid-template-columns: repeat(auto-fit, minmax(4"], [style*="grid-template-columns: repeat(auto-fit, minmax(5"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(3"], [style*="grid-template-columns: repeat(auto-fill, minmax(4"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="flex: 1 1 4"], [style*="flex: 1 1 5"], [style*="flex: 1 1 6"], [style*="flex: 1 1 7"] { flex-basis: 100% !important; min-width: 0 !important; }
  section[style*="padding: 40px 24px"], section[style*="padding: 48px 24px"] { padding: 28px 16px !important; }
  [style*="position: fixed"][style*="left: 0"][style*="right: 0"] { max-width: 100vw; box-sizing: border-box; overflow-x: auto; }
  /* Kolom yang menempel saat digulir (desktop) jangan menimpa konten di HP. */
  [style*="position: sticky"][style*="top: 1"]:not(.sg-dside), [style*="position: sticky"][style*="top: 9"]:not(.sg-dside), [style*="position: sticky"][style*="top: 8"]:not(.sg-dside) { position: static !important; }
  /* Form: isian berpasangan jadi satu kolom, bingkai lebih tipis supaya kolom lebar. */
  form [style*="grid-template-columns: repeat(2, minmax(0"], form [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  form [style*="grid-template-columns: repeat(2, minmax(0"]:has(input[type="checkbox"]):not(:has(input[type="text"], input[type="tel"], input[type="email"], select)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  section:has(> form)[style*="padding: 24px"] { padding: 10px !important; border-radius: 18px !important; margin: 0 -8px; }
  form > div[style*="padding: 24px"] { padding: 18px 16px !important; }
  [style*="max-width: 1200px"][style*="padding: 40px 24px 64px"] { padding: 20px 16px 48px !important; gap: 28px !important; }
  table { font-size: 13px; }
  *:has(> table) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  input, select, textarea { font-size: 16px !important; }
  /* satu garis tepi kiri-kanan (16px) untuk header, iklan, dan isi halaman */
  [style*="max-width: 1200px"]:not(.sg-hrow) { padding-left: 16px !important; padding-right: 16px !important; }
  [style*="background: rgb(246, 245, 244)"]:has(> * > .sg-adband) { padding-left: 16px !important; padding-right: 16px !important; }
  *:has(> .sg-adband) { align-self: stretch !important; }

  /* ---------- header publik (logo kiri | cari + menu kanan) ---------- */
  .sg-hrow { display: grid !important; grid-template-columns: 1fr auto; align-items: center; position: relative; padding: 0 !important; min-height: 0 !important; gap: 0 !important; }
  .sg-hrow > a:first-child { grid-column: 1; grid-row: 1; justify-self: start; padding: 0 !important; height: 56px; display: flex !important; align-items: center; }
  .sg-hrow > a:first-child img { height: 27px !important; }
  .sg-tag, .sg-masuk, .sg-hact .sg-btn { display: none !important; }
  .sg-hact { grid-column: 2; grid-row: 1; justify-self: end; padding-right: 0; margin-right: -9px; gap: 2px !important; }
  .sg-hact > button:first-child { width: 42px !important; height: 42px !important; border: 0 !important; background: transparent !important; }
  .sg-hact > button:first-child svg { width: 21px; height: 21px; }
  .sg-hact > a[aria-label="Notifikasi"] { display: none !important; }
  .sg-hact > a[href*="Beranda"] span[style*="flex-direction: column"], .sg-hact > a span + span { display: none !important; }
  .sg-hact > a[style*="padding"] { padding: 2px !important; border: 0 !important; }
  .sg-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; background: transparent; color: #231F20; cursor: pointer; padding: 0; }
  .sg-burger svg { width: 24px; height: 24px; }
  .sg-nav { grid-column: 1 / -1; grid-row: 2; box-sizing: border-box; display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; height: 46px; margin: 0 -16px; padding: 0 6px; background: #FFFFFF; border-top: 1px solid #EFECEA; font-size: 15px !important; font-weight: 600 !important;
            -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .sg-nav::-webkit-scrollbar { display: none; }
  .sg-nav a { color: #231F20 !important; white-space: nowrap; padding: 0 10px !important; display: flex !important; align-items: center; border: 0 !important; box-shadow: none !important; }
  .sg-nav a[aria-current="page"] { color: #ED1C24 !important; box-shadow: inset 0 -3px 0 #ED1C24 !important; }
  /* baris chip format (seperti "Telaah · Sorot · Analisis Data") */
  .sg-fmt { border-top: 1px solid #EFECEA !important; }
  .sg-fmt > div[style] { padding: 8px 16px !important; min-height: 0 !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; gap: 8px !important; }
  .sg-fmt > div::-webkit-scrollbar { display: none; }
  .sg-fmt > div > span { display: none !important; }
  .sg-fmt > div > a { flex: 0 0 auto; white-space: nowrap; background: #F3F1EF; color: #3B3536 !important; font-size: 13px !important; font-weight: 500; padding: 7px 12px !important; border-radius: 8px !important; }
  .sg-fmt .sg-peluang { order: -1; margin: 0 !important; background: #FDECEC !important; color: #C8161E !important; font-weight: 700 !important; gap: 6px !important; }
  .sg-hidehead { transition: transform .25s ease; }
  body.sg-hdr-up .sg-hidehead { transform: translateY(calc(-100% - 12px)); }
  .sg-drawer { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 2000; background: #231F20; color: #FFFFFF; padding: 16px 16px 28px; overflow-y: auto; font-family: Inter, system-ui, sans-serif; }
  .sg-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .sg-drawer-top img { height: 26px; filter: brightness(0) invert(1); }
  .sg-drawer-x { width: 40px; height: 40px; border-radius: 10px; border: 0; background: #3B3536; color: #FFFFFF; font-size: 20px; cursor: pointer; }
  .sg-drawer nav a { display: block; color: #FFFFFF !important; text-decoration: none; font-family: Outfit, sans-serif; font-size: 19px; font-weight: 600; padding: 15px 0; border-bottom: 1px solid #3B3536; }
  .sg-drawer nav a[aria-current="page"] { color: #FF6B70 !important; }
  .sg-drawer-cta { display: block; margin-top: 24px; text-align: center; background: #ED1C24; color: #FFFFFF !important; text-decoration: none; font-weight: 700; padding: 14px; border-radius: 999px; }
  .sg-drawer-sub { display: block; text-align: center; color: #FFFFFF !important; text-decoration: none; font-weight: 600; padding: 14px; }
  body.sg-lock { overflow: hidden; }

  /* ---------- iklan: pita abu-abu selebar layar, materi iklan sejajar tepi isi (16px), label "IKLAN" di tengah ---------- */
  .sg-adband { flex: 0 0 auto !important; width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
               align-self: stretch; background: #F3F1EF; padding: 10px 16px 16px !important; box-sizing: border-box; }
  .sg-adband > div { max-width: 100% !important; }
  .sg-adband .sg-adframe { width: 100% !important; border-radius: 16px !important; }
  .sg-adband > div > div:first-child { justify-content: center !important; min-height: 16px !important; }
  .sg-adlabel { font-size: 9.5px !important; letter-spacing: .18em !important; color: #8A8381 !important; }
  .sg-adband .sg-adctl { display: none !important; }
  .sg-adband .sg-ad { border-radius: 16px !important; }
  .sg-addock { padding: 4px 8px 6px !important; background: #FFFFFF !important; }
  .sg-addock > div > div:first-child { position: absolute; top: -26px; right: 8px; min-height: 0 !important; }
  .sg-addock .sg-adlabel, .sg-addock .sg-adctl > button:not([aria-label="Tutup iklan"]) { display: none !important; }
  .sg-addock .sg-adctl button[aria-label="Tutup iklan"] { width: 26px !important; height: 26px !important; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
  .sg-addock > div { max-width: 320px !important; position: relative; }
  body:has(.sg-addock) { padding-bottom: 66px; }

  /* ---------- ticker peluang di Home ---------- */
  [style*="border-radius: 12px; overflow: hidden"] > a[style*="flex-shrink: 0; background: #ED1C24"], [style*="border-radius: 12px; overflow: hidden"] > a[style*="flex-shrink: 0; background: rgb(237, 28, 36)"] { display: none !important; }
  [style*="border-radius: 12px; overflow: hidden"] > a[style*="white-space: nowrap; overflow: hidden"] { white-space: normal !important; display: block !important; padding: 10px 12px !important; font-size: 13.5px !important; line-height: 1.35; }
  [style*="border-radius: 12px; overflow: hidden"] > a[style*="white-space: nowrap; overflow: hidden"] > span { display: block; margin-bottom: 2px; }
  [style*="border-radius: 12px; overflow: hidden"] > button[aria-label^="Peluang"] { width: 38px !important; }

  /* ---------- halaman artikel: nyaman dibaca ---------- */
  .sg-art { gap: 18px !important; }
  .sg-art h1 { font-size: 27px !important; line-height: 1.22 !important; letter-spacing: -0.01em; }
  .sg-art > p { font-size: 16.5px !important; line-height: 1.6 !important; }
  .sg-abody { font-size: 17.5px !important; line-height: 1.78 !important; gap: 20px !important; color: #1F1B1C; }
  .sg-abody h2 { font-size: 21px !important; margin-top: 10px !important; }
  .sg-shwrap { width: 100%; }
  .sg-shwrap > button { flex: 1 1 0; padding: 9px 10px !important; text-align: center; }
  .sg-share { flex: 1 1 100% !important; display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 0 !important; margin: 0 calc(50% - 50vw); }
  .sg-share a { width: auto !important; height: 46px !important; border-radius: 0 !important; }
  .sg-share a svg { width: 22px; height: 22px; }

  /* ---------- footer: bertumpuk ke bawah, tautan dalam grid 2 kolom ---------- */
  .sg-foot > div { padding: 32px 20px 26px !important; gap: 0 !important; }
  .sg-foot > div > div:first-child { flex-direction: column; gap: 0 !important; }
  .sg-foot > div > div:first-child > div:first-child { flex: none !important; align-items: center; text-align: center; gap: 12px !important; padding-bottom: 26px; }
  .sg-foot > div > div:first-child > div:first-child > a { align-self: center !important; }
  .sg-foot > div > div:first-child > div:first-child > a:last-child { width: 100%; max-width: 320px; box-sizing: border-box; text-align: center; margin-top: 4px; }
  .sg-foot > div > div:first-child > div:first-child p { max-width: 320px !important; font-size: 13.5px !important; }
  .sg-foot [style*="gap: 40px"] { display: flex !important; flex-direction: column !important; gap: 0 !important; width: 100%; }
  .sg-foot [style*="gap: 40px"] > div { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px 16px !important; padding: 18px 0; border-top: 1px solid #3B3536; font-size: 14.5px; }
  .sg-foot [style*="gap: 40px"] > div > span { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #A8A19E !important; margin-bottom: 2px; }
  .sg-foot [style*="gap: 40px"] > div > a { color: #E9E4E2 !important; }
  .sg-foot [style*="gap: 40px"] > div:last-child > a { border: 1px solid #4A4344; border-radius: 10px; padding: 10px 12px; text-align: center; font-size: 13.5px; }
  .sg-foot [style*="gap: 40px"] > div:last-child > a:last-child:nth-child(even) { grid-column: 1 / -1; }
  .sg-foot > div > div:last-child { flex-direction: column; align-items: center; text-align: center; gap: 10px !important; padding-top: 20px !important; font-size: 12.5px !important; }
  .sg-foot > div > div:last-child > span:last-child { flex-wrap: wrap; justify-content: center; gap: 4px 0 !important; }
  .sg-foot > div > div:last-child > span:last-child a { text-decoration: none; padding: 0 10px; }
  .sg-foot > div > div:last-child > span:last-child a + a { border-left: 1px solid #4A4344; }

  /* ---------- dashboard member ---------- */
  .sg-dtop > div { padding: 0 12px !important; height: 56px !important; gap: 8px !important; }
  .sg-dtop .sg-hide-m { display: none !important; }
  .sg-dtop a[href="Main.dc.html"] strong { font-size: 20px !important; }
  .sg-dtop a[href="Main.dc.html"] > span { font-size: 11.5px !important; }
  .sg-dtop button { padding: 7px 12px !important; }
  .sg-dwrap { padding: 0 12px 40px !important; gap: 14px !important; }
  .sg-dside { min-width: 0 !important; max-width: calc(100% + 24px); flex: 1 1 100% !important; position: sticky !important; top: 56px !important; z-index: 40; margin: 0 -12px; gap: 0 !important; }
  .sg-dside > div:first-child, .sg-dside > span { display: none !important; }
  .sg-dside > nav { flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; border-radius: 0 !important; border-width: 0 0 1px !important; padding: 8px 10px !important; gap: 6px !important; box-shadow: 0 6px 14px rgba(35,31,32,.06); }
  .sg-dside > nav::-webkit-scrollbar { display: none; }
  .sg-dside > nav > span, .sg-dside > nav > button { display: none !important; }
  .sg-dside > nav a { white-space: nowrap; flex: 0 0 auto; border-radius: 999px !important; padding: 8px 14px !important; border: 1px solid #E6E3E1 !important; gap: 6px !important; }
  .sg-dside > nav a[aria-current="page"] { background: #231F20 !important; color: #FFFFFF !important; border-color: #231F20 !important; box-shadow: none !important; }
  .sg-dmain { flex: 1 1 100% !important; gap: 14px !important; }
  .sg-dmain section, .sg-dmain > div > section { border-radius: 12px; }
  .sg-dmain [style*="padding: 20px"][style*="border-radius: 12px"], .sg-dmain [style*="padding: 22px"][style*="border-radius"] { padding: 16px !important; }
  .sg-dmain [style*="grid-template-columns: repeat(auto-fit, minmax(1"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .sg-dmain [style*="grid-template-columns: repeat(auto-fit, minmax(2"], .sg-dmain [style*="grid-template-columns: repeat(auto-fill, minmax(2"] { grid-template-columns: 1fr !important; }

  /* ---------- backend ---------- */
  .sg-bmain [style*="padding: 20px 24px"], .sg-bmain [style*="padding: 14px 24px"], .sg-bmain [style*="padding: 0 24px"], .sg-bmain [style*="padding: 0px 24px"] { padding-left: 12px !important; padding-right: 12px !important; }
  .sg-bmain nav[aria-label="Halaman dalam modul ini"] { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  .sg-bmain nav[aria-label="Halaman dalam modul ini"] a { white-space: nowrap; }
  .sg-bmain [style*="grid-template-columns: repeat(auto-fit, minmax(1"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .sg-bmain [style*="justify-content: flex-end"] { flex: 1 1 100% !important; max-width: 100%; min-width: 0; justify-content: flex-start !important; }
  .sg-bmain [style*="justify-content: flex-end"] div { min-width: 0; max-width: 100%; }
  .sg-bmain [style*="justify-content: flex-end"] div:has(> button) { max-width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
  .sg-bmain [style*="justify-content: flex-end"] div:has(> button) > button { flex: 0 0 auto; white-space: nowrap; }
  .sg-bmain label { min-width: 0; max-width: 100%; }
  .sg-bmain [style*="flex: 1 1 3"] { flex-basis: 100% !important; }
  .sg-bmain select, .sg-bmain input { max-width: 100%; min-width: 0; box-sizing: border-box; }
}

/* Slot iklan yang disembunyikan (tanpa iklan berbayar): pita pembungkusnya ikut hilang, tanpa ruang kosong. */
[style*="align-items: center; gap: 4px"]:has(> .sc-host:only-child:empty) { display: none !important; }
/* Teks khusus pembaca layar & mesin pencari. */
.sg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ Halaman Mitra — hero di HP: label ringkas, tombol sama lebar, gambar utuh (3:2), kartu laporan di bawah gambar ============ */
@media (max-width: 760px) {
  section[aria-labelledby="mitra-hero"] > div { padding-top: 28px !important; padding-bottom: 36px !important; gap: 28px !important; }
  section[aria-labelledby="mitra-hero"] > div > div:first-child { gap: 16px !important; }
  section[aria-labelledby="mitra-hero"] > div > div:first-child > span:first-child { font-size: 10.5px !important; letter-spacing: .08em !important; line-height: 1.5; border-radius: 10px !important; padding: 5px 10px !important; }
  section[aria-labelledby="mitra-hero"] h1 { font-size: clamp(28px, 8.2vw, 34px) !important; line-height: 1.12 !important; }
  section[aria-labelledby="mitra-hero"] p { font-size: 16px !important; }
  section[aria-labelledby="mitra-hero"] a[href="#kontak"], section[aria-labelledby="mitra-hero"] a[href="#format"] { flex: 1 1 100%; text-align: center; box-sizing: border-box; }
  section[aria-labelledby="mitra-hero"] a[href="#iklan"] { margin: 4px auto 0; }
  section[aria-labelledby="mitra-hero"] > div > div:last-child { flex: 1 1 100% !important; min-height: 0 !important; display: flex; flex-direction: column; }
  section[aria-labelledby="mitra-hero"] > div > div:last-child > img { position: static !important; height: auto !important; aspect-ratio: 3 / 2; border-radius: 16px !important; }
  section[aria-labelledby="mitra-hero"] > div > div:last-child > div { position: relative !important; left: auto !important; right: auto !important; bottom: auto !important; margin: -36px 12px 0; padding: 14px 16px !important; }
}

/* ============ Filter daftar (Event, Kelas, Peluang, Komunitas) di HP: label di atas, dropdown sama lebar 2 kolom, jumlah hasil di baris sendiri ============ */
@media (max-width: 760px) {
  div:has(> h1):has(> div > label > select) { flex-direction: column; align-items: stretch !important; }
  div:has(> label > select) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; width: 100%; align-items: end !important; }
  div:has(> label > select) > label { flex-direction: column !important; align-items: stretch !important; gap: 4px !important; min-width: 0; font-size: 11.5px !important; }
  div:has(> label > select) > label > select { width: 100% !important; min-width: 0 !important; height: 42px !important; padding: 0 30px 0 12px !important; box-sizing: border-box; text-overflow: ellipsis;
    -webkit-appearance: none; appearance: none; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23231F20' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px !important; }
  div:has(> label > select) > label:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
  div:has(> label > select) > label:only-of-type { grid-column: 1 / -1; }
  div:has(> label > select) > span, div:has(> label > select) > .sc-host { grid-column: 1 / -1; padding-left: 0 !important; }
}

/* ============ Hero dengan gambar latar (mis. Komunitas): di HP gambar hanya tampil di bagian bawah, area teks bersih supaya judul terbaca ============ */
@media (max-width: 760px) {
  section[style*="position: relative"] > img:first-child[style*="position: absolute"][style*="opacity"] {
    left: 0 !important; right: 0 !important; width: 100% !important; object-position: center bottom; opacity: .7 !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent calc(100% - 170px), #000 calc(100% - 70px)); mask-image: linear-gradient(to bottom, transparent calc(100% - 170px), #000 calc(100% - 70px)); }
  section[style*="position: relative"]:has(> img:first-child[style*="opacity"]) > div { padding-bottom: 150px !important; }
  section[style*="position: relative"]:has(> img:first-child[style*="opacity"]) > div > div[style*="0.92)"] { background: transparent !important; padding: 0 !important; }
  /* tombol hero: sama lebar, bertumpuk */
  section[style*="position: relative"]:has(> img:first-child[style*="opacity"]) div:has(> a + a, > a + button) > * { flex: 1 1 100%; text-align: center; box-sizing: border-box; }
}
@media (max-width: 760px) {
  /* Belajar: ilustrasi meja terlalu kecil di HP, hero cukup gelap polos */
  section[style*="position: relative"] > img:first-child[src*="5cf7e2273e168c0e"] { display: none; }
  section[style*="position: relative"]:has(> img:first-child[src*="5cf7e2273e168c0e"]) > div { padding-bottom: 36px !important; padding-top: 32px !important; }
}

/* Bagian detail (kelas/event) yang belum diisi redaksi tidak ditampilkan: judul tanpa isi terlihat seperti halaman rusak. */
section:has(> h2):not(:has(> :not(h2):not(:empty))) { display: none !important; }
section:has(> h2:first-child + div:last-child > span[style*="padding-right: 4px"]:only-child) { display: none !important; }
div:has(> span[style*="padding-right: 4px"]:only-child) { display: none !important; }
