/* Reading space and a familiar pull-to-close gesture for small-screen sheets. */
.gm-drag-handle{display:none}
@media (max-width: 899px) {
  #gmDialog .gm-sheet:has(.sg-person-heading) {
    top: max(8px, env(safe-area-inset-top));
    bottom: 0;
    max-height: none;
    box-sizing: border-box;
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
  #gmDialog .gm-drag-handle{display:flex;justify-content:center;align-items:center;height:24px;margin:-16px -22px 2px;touch-action:pan-y}
  #gmDialog .gm-drag-handle span{display:block;width:42px;height:4px;border-radius:4px;background:#a0bca8}
  #gmDialog .gm-sheet-tools{margin-inline:-22px;padding-inline:22px;background:#e8f4ea}
  #gmDialog .gm-sheet-tools .x{width:auto;min-width:60px;padding:0 12px;border-radius:999px;font-size:0}
  #gmDialog .gm-sheet-tools .x::after{content:'Tutup';font-size:13px;font-weight:800}
  html[lang=en] #gmDialog .gm-sheet-tools .x::after{content:'Close'}
}

/* Android phone only: compact headings and edge-to-edge detail sheets. */
@media (pointer:coarse) and (max-device-width:600px), (pointer:coarse) and (max-device-height:600px) {
  html.jejak-app .gm-page .gm-hero-top{padding:0 0 8px}
  html.jejak-app .gm-page .gm-hero-top .eyebrow,html.jejak-app .gm-page .gm-hero-sub{display:none}
  html.jejak-app .gm-page .gm-ar-title{margin:0;font-size:22px;line-height:1.35}
  html.jejak-app .gm-page h1{margin:0 auto 6px;font-size:26px;line-height:1.12}
  html.jejak-app .gm-page .gm-tabs{gap:8px;padding:4px 0}
  html.jejak-app .gm-page .gm-tabs button{flex:1;min-width:0;min-height:44px;height:44px;padding:8px 12px}
  html.jejak-app #gmDialog .gm-sheet{top:max(8px,env(safe-area-inset-top));left:0;right:0;bottom:0;width:100%;max-width:none;max-height:none;box-sizing:border-box;border-radius:30px 30px 0 0;padding-bottom:calc(30px + env(safe-area-inset-bottom));overscroll-behavior:contain}
  html.jejak-app #gmDialog .gm-sheet:focus{outline:none}
  html.jejak-app #gmDialog .gm-sheet-tools .x{display:none!important}
  /* Keep the sheet itself visually continuous; the invisible, accessible
     touch target remains available for the phone's swipe-down gesture. */
  html.jejak-app #gmDialog .gm-sheet-tools{min-height:12px;height:12px;margin-top:-24px;margin-bottom:0;background:transparent;pointer-events:none}
  html.jejak-app #gmDialog .gm-sheet-tools:has(.back){min-height:44px;height:44px}
  html.jejak-app #gmDialog .gm-sheet-tools .back{pointer-events:auto}
  html.jejak-app #gmDialog .gm-drag-handle{display:flex;justify-content:center;align-items:center;position:absolute;left:50%;top:0;transform:translateX(-50%);width:72px;height:44px;margin:0;padding:0;border:0;border-radius:12px;background:transparent;box-shadow:none;touch-action:none;pointer-events:auto}
  html.jejak-app #gmDialog .gm-drag-handle span{display:block;width:42px;height:4px;border-radius:4px;background:transparent}
  html.jejak-app #gmDialog .gm-drag-handle:focus-visible{outline:3px solid #b67b1f;outline-offset:-4px}
}
