/* Portal Native V18 — adaptive public portals, mobile app shell, compact navigation. */
:root{
  --app-bg:#f3f7f5;
  --app-surface:#ffffff;
  --app-surface-soft:#eef7f3;
  --app-ink:#15231f;
  --app-muted:#60716a;
  --app-line:rgba(10,75,57,.13);
  --app-green:#0b6b52;
  --app-green-dark:#064e3b;
  --app-gold:#e6ae13;
  --app-shadow:0 18px 50px rgba(5,55,41,.10);
  --app-radius:24px;
  --app-bar-h:74px;
  --app-bottom-h:72px;
  --app-safe-bottom:env(safe-area-inset-bottom,0px);
}
html{background:var(--app-bg);scroll-padding-top:calc(var(--app-bar-h) + 12px)}
body.portal-native-v18{
  min-height:100dvh;background:linear-gradient(180deg,#f8fbfa 0%,var(--app-bg) 100%);
  color:var(--app-ink);overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
body.portal-native-v18 *{min-width:0}
body.portal-native-v18 :where(p,li,.section-desc,.desc,.hint,.brand-sub){overflow-wrap:break-word;word-break:normal;hyphens:auto}
body.portal-native-v18 :where(button,a,input,select,textarea,summary){-webkit-tap-highlight-color:transparent}
body.portal-native-v18 main{min-height:calc(100dvh - var(--app-bar-h));padding-bottom:22px}
body.portal-native-v18 main>.app-screen[hidden]{display:none!important}
body.portal-native-v18 main>.app-screen.is-active{animation:portal-screen-in .34s cubic-bezier(.2,.8,.2,1) both}
@keyframes portal-screen-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* Dedicated vector portal identities. */
body.portal-native-v18 .brand-logo{
  width:58px!important;height:58px!important;flex:0 0 58px!important;padding:0!important;border:0!important;
  border-radius:18px!important;background:transparent!important;box-shadow:0 10px 26px rgba(6,78,59,.13)!important;overflow:hidden!important;
}
body.portal-native-v18 .brand-logo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
body.portal-native-v18 .brand-title,body.portal-native-v18 .brand h1{letter-spacing:-.02em}

/* Compact portal switch and header. */
body.portal-native-v18 .top-strip{font-size:12px}
body.portal-native-v18 .portal-switcher{border-radius:999px;background:rgba(255,255,255,.94);padding:3px;box-shadow:0 8px 20px rgba(5,40,30,.08)}
body.portal-native-v18 .portal-switcher a{border-radius:999px!important;padding:7px 12px!important;text-decoration:none!important;font-weight:850!important}
body.portal-native-v18 .site-header{isolation:isolate}
body.portal-native-v18 .navbar{min-height:var(--app-bar-h)}
body.portal-native-v18 .mobile-toggle{position:relative;overflow:hidden}
body.portal-native-v18 .mobile-toggle::marker{display:none}

/* App screen title and desktop destinations. */
.portal-screen-toolbar{display:none}
.portal-screen-tabs{width:min(1220px,calc(100% - 32px));margin:12px auto 0;display:flex;gap:8px;overflow:auto;padding:5px 2px 9px;scrollbar-width:none}
.portal-screen-tabs::-webkit-scrollbar{display:none}
.portal-screen-tab{border:1px solid var(--app-line);background:rgba(255,255,255,.82);color:#385149;border-radius:999px;padding:10px 14px;white-space:nowrap;font-size:12px;font-weight:850;cursor:pointer;transition:.2s ease}
.portal-screen-tab:hover{transform:translateY(-1px);background:#fff}
.portal-screen-tab.is-active{background:var(--app-green-dark);border-color:var(--app-green-dark);color:#fff;box-shadow:0 10px 24px rgba(6,78,59,.18)}

/* Shorter, clearer home screen. */
body.portal-native-v18 .hero-shell,body.portal-native-v18 .hero-card{box-shadow:0 22px 55px rgba(6,78,59,.16)}
body.portal-native-v18 .hero-desc,body.portal-native-v18 .hero p{max-width:68ch}
body.portal-native-v18 .hero-scroll-cue{display:none!important}
body.portal-native-v18 .service-ticker{display:none!important}
body.portal-native-v18 .quick-heading{grid-template-columns:minmax(0,1fr) minmax(240px,.42fr)}
body.portal-native-v18 .quick-heading p{max-width:46ch}
body.portal-native-v18 .quick-card p,body.portal-native-v18 .card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.portal-native-v18 .content-card .section-desc,body.portal-native-v18 .form-shell .section-desc,body.portal-native-v18 .ppid-standard-card p{display:block;-webkit-line-clamp:unset;overflow:visible}
body.portal-native-v18 .section{padding-block:22px}
body.portal-native-v18 .section-title{letter-spacing:-.035em}
body.portal-native-v18 .card,body.portal-native-v18 .quick-card,body.portal-native-v18 .form-shell{box-shadow:0 12px 36px rgba(5,55,41,.07)}

/* Mobile bottom navigation. */
.portal-bottom-nav{display:none}
.portal-bottom-nav button,.portal-bottom-nav a{font:inherit}
.portal-nav-icon{width:22px;height:22px;display:grid;place-items:center}
.portal-nav-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.portal-nav-label{font-size:10px;font-weight:800;line-height:1}

/* Drawer and backdrop — always independently scrollable. */
.portal-drawer-backdrop{position:fixed;inset:0;z-index:118;background:rgba(2,24,18,.38);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .24s ease}
body.portal-drawer-open .portal-drawer-backdrop{opacity:1;pointer-events:auto}
body.portal-drawer-open{overflow:hidden;touch-action:none}
body.portal-drawer-open .mobile-panel{touch-action:pan-y}
body.portal-native-v18 .mobile-panel .inner{overscroll-behavior:contain}
.portal-drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--app-line)}
.portal-drawer-action{border:1px solid var(--app-line);background:#fff;border-radius:14px;min-height:46px;padding:10px 12px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--app-green-dark);font-weight:850;cursor:pointer;text-decoration:none}
.portal-drawer-action.primary{background:var(--app-green-dark);color:#fff;border-color:var(--app-green-dark)}
.portal-drawer-action[hidden]{display:none!important}

/* Remove overlapping legacy floating controls. Accessibility stays in the menu on phones. */
body.portal-native-v18 .ui-scroll-top{display:none!important}
body.portal-native-v18 .social-toast:empty{display:none!important}
body.portal-native-v18 .social-toast:not(.show){opacity:0!important;pointer-events:none!important}
body.portal-native-v18 .back-to-top{right:18px;bottom:18px}

/* Social buttons: app-tile treatment. */
body.portal-native-v18 .social-hub-shell{box-shadow:var(--app-shadow)}
body.portal-native-v18 .social-card{border-radius:20px;min-height:112px}
body.portal-native-v18 .social-card:active{transform:scale(.98)}
body.portal-native-v18 .social-icon{box-shadow:0 8px 18px rgba(0,0,0,.10)}

/* Compact footer; no technical instructions. */
body.portal-native-v18 .footer{margin-top:12px}
body.portal-native-v18 .footer-bottom{font-size:11px;opacity:.88}
body.portal-native-v18 .footer-bottom>div:last-child{display:none!important}

/* Program kerja modal: full-screen app reader on compact devices, scroll stays functional. */
body[data-portal="wakama-public"] .detail-backdrop{height:100dvh;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
body[data-portal="wakama-public"] .detail-shell{max-height:none!important}
body[data-portal="wakama-public"] .detail-bar{padding-top:max(12px,env(safe-area-inset-top));box-shadow:0 8px 24px rgba(0,0,0,.08)}
body[data-portal="wakama-public"] .detail-bar button,body[data-portal="wakama-public"] .detail-bar a{min-height:42px}
body[data-portal="wakama-public"] .toast:empty{display:none}

@media (max-width:960px){
  :root{--app-bar-h:72px;--app-bottom-h:72px}
  body.portal-native-v18{padding-bottom:calc(var(--app-bottom-h) + var(--app-safe-bottom) + 12px)}
  body.portal-native-v18 .top-strip{display:none!important}
  body.portal-native-v18 .site-header{position:sticky!important;top:0!important;z-index:120!important;background:rgba(250,253,252,.94)!important;backdrop-filter:blur(20px) saturate(1.2)!important}
  body.portal-native-v18 .navbar{width:calc(100% - 24px)!important;padding:8px 0!important;gap:10px!important;min-height:var(--app-bar-h)!important}
  body.portal-native-v18 .brand{gap:10px!important;max-width:calc(100% - 58px)!important}
  body.portal-native-v18 .brand-logo{width:50px!important;height:50px!important;flex-basis:50px!important;border-radius:15px!important}
  body.portal-native-v18 .brand-kicker{font-size:9px!important;letter-spacing:.18em!important;margin-bottom:1px!important}
  body.portal-native-v18 .brand-title,body.portal-native-v18 .brand h1{font-size:17px!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.portal-native-v18 .brand-sub{font-size:11px!important;line-height:1.2!important;max-width:58vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.portal-native-v18 .mobile-toggle{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;flex:0 0 48px!important;border-radius:16px!important;font-size:0!important;z-index:122!important}
  body.portal-native-v18 .mobile-toggle span,body.portal-native-v18 .mobile-toggle::before,body.portal-native-v18 .mobile-toggle::after{width:22px!important}
  body[data-portal="humas"].portal-native-v18 .mobile-toggle::before,body[data-portal="humas"].portal-native-v18 .mobile-toggle::after{content:"";display:block;width:22px;height:2px;background:#17312a;border-radius:99px;transition:.2s ease}
  body[data-portal="humas"].portal-native-v18 .mobile-toggle::before{transform:translateY(-4px)}
  body[data-portal="humas"].portal-native-v18 .mobile-toggle::after{transform:translateY(4px)}
  body[data-portal="humas"].portal-native-v18 .mobile-toggle.active::before{transform:translateY(1px) rotate(45deg)}
  body[data-portal="humas"].portal-native-v18 .mobile-toggle.active::after{transform:translateY(-1px) rotate(-45deg)}

  .portal-screen-tabs{display:none}
  .portal-screen-toolbar{display:flex;align-items:center;gap:12px;width:calc(100% - 24px);margin:12px auto 2px;padding:10px 12px;border:1px solid var(--app-line);border-radius:18px;background:rgba(255,255,255,.9);box-shadow:0 10px 30px rgba(5,55,41,.07);position:sticky;top:calc(var(--app-bar-h) + 6px);z-index:70;backdrop-filter:blur(16px)}
  .portal-screen-toolbar[hidden]{display:none!important}
  .portal-screen-back{width:38px;height:38px;border:0;border-radius:12px;background:var(--app-surface-soft);color:var(--app-green-dark);display:grid;place-items:center;font-size:19px;font-weight:900;cursor:pointer}
  .portal-screen-copy{flex:1;min-width:0}.portal-screen-copy small{display:block;color:var(--app-muted);font-size:9px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.portal-screen-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;margin-top:2px}
  .portal-screen-menu{width:38px;height:38px;border:0;border-radius:12px;background:var(--app-green-dark);color:#fff;font-size:20px;display:grid;place-items:center;cursor:pointer}

  .portal-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;left:10px;right:10px;bottom:max(8px,var(--app-safe-bottom));height:var(--app-bottom-h);z-index:125;border:1px solid rgba(6,78,59,.14);border-radius:24px;background:rgba(255,255,255,.94);box-shadow:0 18px 48px rgba(3,45,33,.20);backdrop-filter:blur(22px) saturate(1.2);padding:6px 5px}
  .portal-bottom-item{position:relative;border:0;background:transparent;color:#61736c;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:56px;text-decoration:none;cursor:pointer;transition:.2s ease}
  .portal-bottom-item::before{content:"";position:absolute;inset:5px 7px;border-radius:16px;background:var(--app-surface-soft);transform:scale(.72);opacity:0;transition:.2s ease;z-index:-1}
  .portal-bottom-item.is-active{color:var(--app-green-dark)}
  .portal-bottom-item.is-active::before{transform:scale(1);opacity:1}
  .portal-bottom-item:active{transform:scale(.96)}

  body.portal-native-v18 .mobile-panel{display:block!important;position:fixed!important;z-index:120!important;top:calc(var(--app-bar-h) + 8px)!important;bottom:calc(var(--app-bottom-h) + var(--app-safe-bottom) + 18px)!important;left:12px!important;right:12px!important;width:auto!important;max-height:none!important;border:1px solid var(--app-line)!important;border-radius:24px!important;background:rgba(255,255,255,.98)!important;box-shadow:0 24px 70px rgba(2,35,26,.25)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-10px) scale(.98)!important;transition:opacity .22s ease,transform .22s ease,visibility .22s!important}
  body.portal-native-v18 .mobile-panel.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
  body.portal-native-v18 .mobile-panel .inner{width:auto!important;padding:12px 14px max(18px,var(--app-safe-bottom))!important}
  body.portal-native-v18 .mobile-panel details{border-bottom:1px solid #e9f0ed!important}
  body.portal-native-v18 .mobile-panel details summary{min-height:52px;padding:14px 2px!important;font-size:16px!important}
  body.portal-native-v18 .mobile-panel details .links{grid-template-columns:1fr!important}
  body.portal-native-v18 .mobile-panel details .links a{min-height:46px;display:flex;align-items:center;padding:12px 14px!important}

  body.portal-native-v18 .hero,body.portal-native-v18 .section{padding-block:14px!important}
  body.portal-native-v18 .hero-shell,body.portal-native-v18 .hero-card{border-radius:26px!important;padding:24px 18px!important;min-height:0!important}
  body.portal-native-v18 .hero-grid{display:block!important}
  body.portal-native-v18 .hero-title,body.portal-native-v18 .hero h2{font-size:clamp(30px,9vw,42px)!important;line-height:1.02!important;margin:10px 0!important}
  body.portal-native-v18 .hero-desc,body.portal-native-v18 .hero p{font-size:14px!important;line-height:1.55!important;margin-bottom:0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  body.portal-native-v18 .hero-status-time,body.portal-native-v18 .hero-trust,body.portal-native-v18 .badges,body.portal-native-v18 .hero-panel{display:none!important}
  body.portal-native-v18 .hero-cta,body.portal-native-v18 .hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:18px!important}
  body.portal-native-v18 .hero-cta .btn,body.portal-native-v18 .hero-actions .btn{width:100%!important;min-height:46px!important;padding:11px 10px!important;font-size:12px!important}
  body.portal-native-v18 .quick-links{margin-top:0!important}
  body.portal-native-v18 .quick-heading{display:block!important;margin-bottom:14px!important}
  body.portal-native-v18 .quick-heading p{display:none!important}
  body.portal-native-v18 .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.portal-native-v18 .quick-card{min-height:150px!important;padding:15px!important;border-radius:20px!important}
  body.portal-native-v18 .quick-card-wide{grid-column:1/-1!important;min-height:132px!important}
  body.portal-native-v18 .quick-card .icon{width:42px!important;height:42px!important;border-radius:13px!important;margin-bottom:12px!important}
  body.portal-native-v18 .quick-card h3{font-size:15px!important;line-height:1.18!important}
  body.portal-native-v18 .quick-card p{font-size:11px!important;line-height:1.45!important;-webkit-line-clamp:2!important}
  body.portal-native-v18 .quick-card a{font-size:11px!important}
  body.portal-native-v18 .grid-2,body.portal-native-v18 .grid-3,body.portal-native-v18 .grid-4,body.portal-native-v18 .stats-grid,body.portal-native-v18 .service-grid,body.portal-native-v18 .unit-grid,body.portal-native-v18 .flow-grid,body.portal-native-v18 .faq-grid,body.portal-native-v18 .highlights-grid{grid-template-columns:1fr!important}
  body.portal-native-v18 .container{width:calc(100% - 24px)!important}
  body.portal-native-v18 .card,body.portal-native-v18 .content-card,body.portal-native-v18 .form-shell{padding:18px!important;border-radius:22px!important}
  body.portal-native-v18 .section-title{font-size:clamp(27px,8.5vw,36px)!important;line-height:1.04!important}
  body.portal-native-v18 .section-desc{font-size:13px!important;line-height:1.55!important}
  body.portal-native-v18 .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.portal-native-v18 .stat-card{padding:15px!important}.stat-card .value{font-size:28px!important;margin-block:8px 2px!important}.stat-card .note{font-size:10px!important}
  body.portal-native-v18 .accessibility-fab{display:none!important}
  body.portal-native-v18 .accessibility-panel{position:fixed!important;z-index:130!important;left:12px!important;right:12px!important;top:auto!important;bottom:calc(var(--app-bottom-h) + var(--app-safe-bottom) + 18px)!important;width:auto!important;max-height:70dvh!important;overflow:auto!important;border:1px solid var(--app-line)!important;border-radius:24px!important;padding:18px!important}
  body.portal-native-v18 .back-to-top{display:none!important}
  body.portal-native-v18 .footer{margin-bottom:0!important}
  body.portal-native-v18 .footer-grid{grid-template-columns:1fr 1fr!important;gap:18px!important}
  body.portal-native-v18 .footer-grid>div:first-child{grid-column:1/-1}
  body.portal-native-v18 .footer p{font-size:12px!important;line-height:1.5!important}
  body.portal-native-v18 .footer ul{font-size:12px!important}
  body.portal-native-v18 .social-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.portal-native-v18 .social-card{min-height:106px!important;padding:13px!important}
  body.portal-native-v18 .social-copy span{display:none!important}
  body.portal-native-v18 .social-copy strong{font-size:13px!important}
  body.portal-native-v18 .social-hub-head{display:block!important}.social-hub-head>p{display:none!important}

  /* Program reader is a native-like full screen surface. */
  body[data-portal="wakama-public"]{padding-bottom:0!important}
  body[data-portal="wakama-public"] .detail-backdrop{padding:0!important;overflow-y:auto!important}
  body[data-portal="wakama-public"] .detail-shell{min-height:100dvh!important;border-radius:0!important;margin:0!important;overflow:visible!important}
  body[data-portal="wakama-public"] .detail-bar{position:sticky!important;top:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:10px!important;background:rgba(255,255,255,.98)!important}
  body[data-portal="wakama-public"] .detail-bar strong{grid-column:1/-1!important;font-size:13px!important;line-height:1.35!important;padding:2px 4px 6px!important}
  body[data-portal="wakama-public"] .detail-bar a,body[data-portal="wakama-public"] .detail-bar button{min-width:0!important;padding:9px 5px!important;font-size:10px!important;white-space:nowrap!important}
  body[data-portal="wakama-public"] .official-paper{min-height:0!important;padding:18px 13px 34px!important}
}

@media (max-width:420px){
  body.portal-native-v18 .brand-sub{max-width:52vw!important}
  body.portal-native-v18 .hero-cta,body.portal-native-v18 .hero-actions{grid-template-columns:1fr!important}
  body.portal-native-v18 .quick-grid{grid-template-columns:1fr 1fr!important}
  body.portal-native-v18 .quick-card{min-height:142px!important}
  body.portal-native-v18 .portal-bottom-nav{left:7px;right:7px;border-radius:22px}
  .portal-nav-label{font-size:9px}
  .portal-nav-icon svg{width:20px;height:20px}
  body.portal-native-v18 .footer-grid{grid-template-columns:1fr!important}.footer-grid>div:first-child{grid-column:auto}
}

@media (display-mode:standalone){
  body.portal-native-v18 .site-header{padding-top:env(safe-area-inset-top)}
  body.portal-native-v18 .portal-bottom-nav{bottom:max(6px,env(safe-area-inset-bottom))}
}

@media (prefers-reduced-motion:reduce){
  body.portal-native-v18 main>.app-screen.is-active{animation:none!important}
  .portal-bottom-item,.portal-screen-tab,body.portal-native-v18 .mobile-panel{transition:none!important}
}

/* V18 polish: vector service icons and compact snackbar. */
body.portal-native-v18 .icon-svg svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:960px){
  body.portal-drawer-open{touch-action:auto!important;overscroll-behavior:none}
  body.portal-native-v18 .social-toast{left:12px!important;right:12px!important;bottom:calc(var(--app-bottom-h) + var(--app-safe-bottom) + 16px)!important;width:auto!important;transform:translateY(14px)!important;border-radius:18px!important;padding:12px 14px!important;text-align:left!important;font-size:12px!important}
  body.portal-native-v18 .social-toast.show{transform:none!important}
}

/* Program kerja Wakamad: native-style public document app. */
body[data-portal="wakama-public"]{--wk-bottom:72px;min-height:100dvh;overflow-x:clip;background:linear-gradient(180deg,#f9fcfa,#f1f6f3);-webkit-font-smoothing:antialiased}
body[data-portal="wakama-public"] .site-header{background:rgba(255,255,255,.94);backdrop-filter:blur(20px) saturate(1.2)}
body[data-portal="wakama-public"] .public-brand img{width:52px;height:52px;object-fit:contain;border-radius:16px;filter:drop-shadow(0 9px 15px rgba(6,78,59,.16))}
body[data-portal="wakama-public"] .hero{background:linear-gradient(135deg,#064e3b 0%,#0b6b52 70%,#138363 100%)}
body[data-portal="wakama-public"] .hero-inner{min-height:350px;padding-block:56px}
body[data-portal="wakama-public"] .hero h1{letter-spacing:-.035em}
body[data-portal="wakama-public"] .hero-emblem{width:250px;padding:20px}
body[data-portal="wakama-public"] .hero-emblem img{width:120px;height:145px}
body[data-portal="wakama-public"] .content{padding-block:48px 76px}
body[data-portal="wakama-public"] .filters{position:sticky;top:78px;z-index:35;backdrop-filter:blur(14px);background:rgba(255,255,255,.94)}
body[data-portal="wakama-public"] .wakama-bottom-nav{display:none}
body[data-portal="wakama-public"] .menu-button{position:relative;font-size:0;place-items:center;overflow:hidden}
body[data-portal="wakama-public"] .menu-button span,
body[data-portal="wakama-public"] .menu-button::before,
body[data-portal="wakama-public"] .menu-button::after{content:"";position:absolute;width:21px;height:2px;background:#16362c;border-radius:99px;transition:.2s ease}
body[data-portal="wakama-public"] .menu-button::before{transform:translateY(-6px)}
body[data-portal="wakama-public"] .menu-button::after{transform:translateY(6px)}
body[data-portal="wakama-public"] .menu-button[aria-expanded="true"] span{opacity:0}
body[data-portal="wakama-public"] .menu-button[aria-expanded="true"]::before{transform:rotate(45deg)}
body[data-portal="wakama-public"] .menu-button[aria-expanded="true"]::after{transform:rotate(-45deg)}

@media (max-width:720px){
  body[data-portal="wakama-public"]{padding-bottom:calc(var(--wk-bottom) + env(safe-area-inset-bottom,0px) + 12px)}
  body[data-portal="wakama-public"] .header-inner{padding:8px 12px;min-height:70px}
  body[data-portal="wakama-public"] .public-brand{max-width:calc(100% - 52px)}
  body[data-portal="wakama-public"] .public-brand img{width:48px;height:48px;flex:0 0 48px}
  body[data-portal="wakama-public"] .public-brand small{font-size:8px}
  body[data-portal="wakama-public"] .public-brand strong{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:58vw}
  body[data-portal="wakama-public"] .menu-button{display:grid;width:46px;height:46px;border-radius:15px}
  body[data-portal="wakama-public"] .header-inner nav{display:grid!important;position:fixed;z-index:80;top:78px;bottom:calc(var(--wk-bottom) + env(safe-area-inset-bottom,0px) + 18px);left:12px;right:12px;padding:12px;border-radius:22px;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-8px) scale(.98);transition:.22s ease;background:rgba(255,255,255,.98)}
  body[data-portal="wakama-public"].menu-open .header-inner nav{opacity:1;visibility:visible;pointer-events:auto;transform:none}
  body[data-portal="wakama-public"] .header-inner nav a{display:flex;align-items:center;min-height:50px;padding:12px 14px;font-size:15px;border-bottom:1px solid #edf2ef;border-radius:12px}
  body[data-portal="wakama-public"] .hero-inner{padding:30px 15px 34px;min-height:0}
  body[data-portal="wakama-public"] .hero h1{font-size:clamp(30px,9vw,40px);line-height:1.02;margin:10px 0}
  body[data-portal="wakama-public"] .hero p{font-size:13px;line-height:1.55;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
  body[data-portal="wakama-public"] .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}
  body[data-portal="wakama-public"] .button{min-height:44px;padding:10px;font-size:11px}
  body[data-portal="wakama-public"] .content{padding:28px 12px 54px}
  body[data-portal="wakama-public"] .section-head{gap:8px}
  body[data-portal="wakama-public"] .section-head h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:29px;line-height:1.03;letter-spacing:-.04em;margin:6px 0}
  body[data-portal="wakama-public"] .section-head p{font-size:13px;line-height:1.5}
  body[data-portal="wakama-public"] .result-count{font-size:10px;padding:7px 10px}
  body[data-portal="wakama-public"] .filters{top:76px;margin:17px 0 10px;padding:9px;border-radius:18px;box-shadow:0 12px 34px rgba(5,55,41,.08)}
  body[data-portal="wakama-public"] .filters input,body[data-portal="wakama-public"] .filters select{height:44px;font-size:13px}
  body[data-portal="wakama-public"] .unit-tabs{padding-bottom:11px}
  body[data-portal="wakama-public"] .doc-card{min-height:218px;border-radius:21px;padding:17px}
  body[data-portal="wakama-public"] .doc-card h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:18px;letter-spacing:-.02em;margin:14px 0 7px}
  body[data-portal="wakama-public"] .doc-card p{font-size:11px;line-height:1.55}
  body[data-portal="wakama-public"] footer{display:none}
  body[data-portal="wakama-public"] .wakama-bottom-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;z-index:90;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom,0px));height:var(--wk-bottom);padding:6px;border:1px solid rgba(6,78,59,.14);border-radius:24px;background:rgba(255,255,255,.95);box-shadow:0 18px 48px rgba(3,45,33,.2);backdrop-filter:blur(22px) saturate(1.2)}
  body[data-portal="wakama-public"] .wakama-bottom-nav a{color:#65756f;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:17px;font-size:9px;font-weight:800;min-width:0}
  body[data-portal="wakama-public"] .wakama-bottom-nav a.active{color:#064e3b;background:#e9f4ef}
  body[data-portal="wakama-public"] .wakama-bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  body[data-portal="wakama-public"] .toast{left:12px;right:12px;bottom:calc(var(--wk-bottom) + env(safe-area-inset-bottom,0px) + 16px);width:auto;border-radius:17px;font-size:12px}
}

@media (max-width:430px){
  body[data-portal="wakama-public"] .hero-actions{grid-template-columns:1fr}
  body[data-portal="wakama-public"] .detail-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-portal="wakama-public"] .detail-bar strong{grid-column:1/-1!important}
  body[data-portal="wakama-public"] .detail-bar a,body[data-portal="wakama-public"] .detail-bar button{font-size:11px!important;min-height:43px!important}
}
@media (max-width:720px){
  body[data-portal="wakama-public"].menu-open::before{content:"";position:fixed;inset:0;z-index:70;background:rgba(2,24,18,.38);backdrop-filter:blur(4px)}
  body[data-portal="wakama-public"] .paper-table-wrap{overflow:visible!important}
  body[data-portal="wakama-public"] .paper-table{display:block!important;min-width:0!important;width:100%!important;font-size:9pt!important}
  body[data-portal="wakama-public"] .paper-table thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
  body[data-portal="wakama-public"] .paper-table tbody,body[data-portal="wakama-public"] .paper-table tr,body[data-portal="wakama-public"] .paper-table td{display:block!important;width:100%!important}
  body[data-portal="wakama-public"] .paper-table tr{margin:0 0 10px!important;border:1px solid #bdc9c2!important;border-radius:10px!important;overflow:hidden!important;background:#fff!important}
  body[data-portal="wakama-public"] .paper-table td{display:grid!important;grid-template-columns:minmax(92px,36%) minmax(0,1fr)!important;gap:8px!important;border:0!important;border-bottom:1px solid #dce3df!important;padding:8px!important;overflow-wrap:break-word!important}
  body[data-portal="wakama-public"] .paper-table td:last-child{border-bottom:0!important}
  body[data-portal="wakama-public"] .paper-table td::before{content:attr(data-label);font-family:Arial,sans-serif;font-weight:700;color:#24443a;font-size:8pt}
}
@media print{
  body[data-portal="wakama-public"] .paper-table{display:table!important;width:100%!important}
  body[data-portal="wakama-public"] .paper-table thead{position:static!important;width:auto!important;height:auto!important;overflow:visible!important;clip:auto!important;white-space:normal!important;display:table-header-group!important}
  body[data-portal="wakama-public"] .paper-table tbody{display:table-row-group!important}
  body[data-portal="wakama-public"] .paper-table tr{display:table-row!important;border:0!important}
  body[data-portal="wakama-public"] .paper-table td{display:table-cell!important;width:auto!important;border:1px solid #111!important;padding:1.5mm 1.2mm!important}
  body[data-portal="wakama-public"] .paper-table td::before{display:none!important}
  body[data-portal="wakama-public"] .wakama-bottom-nav{display:none!important}
}


/* ============================================================
   TAHAP 19 — SINGLE NATIVE DRAWER
   Drawer lives directly under <body>, above every stacking context.
   The legacy #mobilePanel is retained only as a source of menu links.
   ============================================================ */
body.portal-native-v19 #mobilePanel{display:none!important}
.portal-drawer-backdrop{
  position:fixed!important;inset:0!important;z-index:300!important;
  background:rgba(2,24,18,.48)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .22s ease,visibility .22s ease!important;
}
body.portal-drawer-open .portal-drawer-backdrop{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
.portal-native-drawer{
  position:fixed;z-index:301;top:max(10px,env(safe-area-inset-top,0px));
  right:10px;bottom:max(10px,env(safe-area-inset-bottom,0px));
  width:min(430px,calc(100vw - 20px));
  display:flex;flex-direction:column;overflow:hidden;
  border:1px solid rgba(6,78,59,.15);border-radius:30px;
  background:rgba(255,255,255,.99);color:#142620;
  box-shadow:0 30px 90px rgba(1,30,22,.32);
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateX(24px) scale(.985);
  transform-origin:right center;
  transition:opacity .24s ease,transform .28s cubic-bezier(.2,.8,.2,1),visibility .24s ease;
  isolation:isolate;
}
body.portal-drawer-open .portal-native-drawer{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;
}
.portal-native-drawer-head{
  flex:0 0 auto;display:flex;align-items:center;gap:12px;
  min-height:74px;padding:12px 14px 10px 18px;border-bottom:1px solid #e5eeea;
  background:linear-gradient(180deg,#fff,#fbfdfc);
}
.portal-native-drawer-brand{flex:1;min-width:0}
.portal-native-drawer-brand small{display:block;color:#287560;font-size:10px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.portal-native-drawer-brand strong{display:block;margin-top:3px;font-size:20px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-native-drawer-close{
  width:48px;height:48px;flex:0 0 48px;border:1px solid #dce8e3;border-radius:16px;
  background:#fff;color:#15342b;display:grid;place-items:center;cursor:pointer;
  box-shadow:0 8px 20px rgba(3,45,33,.08);font-size:0;
}
.portal-native-drawer-close::before,.portal-native-drawer-close::after{
  content:"";position:absolute;width:23px;height:2px;background:currentColor;border-radius:99px;
}
.portal-native-drawer-close::before{transform:rotate(45deg)}
.portal-native-drawer-close::after{transform:rotate(-45deg)}
.portal-native-drawer-scroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding:14px 14px max(22px,env(safe-area-inset-bottom,0px));
  touch-action:pan-y;
}
.portal-native-drawer-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.portal-native-drawer-shortcut{
  min-height:76px;border:1px solid #deebe5;border-radius:19px;background:#f5faf7;
  padding:13px;text-align:left;color:#17372e;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}
.portal-native-drawer-shortcut:hover{background:#eaf6f0;border-color:#bddbcc;transform:translateY(-2px)}
.portal-native-drawer-shortcut:active{transform:scale(.98)}
.portal-native-drawer-shortcut small{font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#5e786f}
.portal-native-drawer-shortcut strong{font-size:14px;line-height:1.2}
.portal-native-drawer .panel-group{border:1px solid #e5eeea;border-radius:18px;margin:9px 0;overflow:hidden;background:#fff}
.portal-native-drawer details{border:0!important}
.portal-native-drawer summary{min-height:54px!important;padding:15px 16px!important;font-size:15px!important;list-style:none;display:flex!important;align-items:center;justify-content:space-between;cursor:pointer;font-weight:850}
.portal-native-drawer summary::-webkit-details-marker{display:none}
.portal-native-drawer details[open] summary{background:#f4f9f6;color:#064e3b}
.portal-native-drawer .links{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:0 10px 10px!important}
.portal-native-drawer .links a{min-height:46px!important;display:flex!important;align-items:center!important;padding:11px 13px!important;border-radius:13px!important;background:#f6f9f8!important;color:#24443a!important;font-weight:750!important;text-decoration:none!important}
.portal-native-drawer .links a:active{background:#e8f3ee!important}
.portal-native-drawer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid #e3ece8}
.portal-native-drawer-action{min-height:48px;border:1px solid #dbe7e2;border-radius:15px;background:#fff;color:#0b5945;font-weight:850;cursor:pointer;padding:10px 12px}
.portal-native-drawer-action.primary{background:#064e3b;color:#fff;border-color:#064e3b}
.portal-native-drawer-action[hidden]{display:none!important}
body.portal-drawer-open{overscroll-behavior:none!important}
body.portal-drawer-open .portal-bottom-nav{z-index:299!important}
body.portal-native-v19 .mobile-toggle.active{background:#eef7f3!important;border-color:#bcd9cc!important}
body.portal-native-v19 .mobile-toggle.active span{opacity:0!important}
body.portal-native-v19 .mobile-toggle.active::before,body.portal-native-v19 .mobile-toggle.active::after{
  content:""!important;position:absolute!important;width:23px!important;height:2px!important;background:#17352c!important;border-radius:99px!important;display:block!important;
}
body.portal-native-v19 .mobile-toggle.active::before{transform:rotate(45deg)!important}
body.portal-native-v19 .mobile-toggle.active::after{transform:rotate(-45deg)!important}
@media (max-width:960px){
  .portal-native-drawer{
    top:max(8px,env(safe-area-inset-top,0px));left:8px;right:8px;
    bottom:calc(var(--app-bottom-h) + max(12px,var(--app-safe-bottom)) + 10px);
    width:auto;border-radius:27px;transform:translateY(18px) scale(.985);transform-origin:center bottom;
  }
  .portal-native-drawer-head{min-height:68px;padding:10px 10px 8px 16px}
  .portal-native-drawer-brand strong{font-size:18px}
  .portal-native-drawer-close{width:46px;height:46px;flex-basis:46px}
  .portal-native-drawer-scroll{padding:12px 12px max(18px,env(safe-area-inset-bottom,0px))}
  .portal-native-drawer-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .portal-native-drawer-shortcut{min-height:72px;border-radius:17px;padding:12px}
}
@media (max-width:380px){
  .portal-native-drawer{left:6px;right:6px;border-radius:23px}
  .portal-native-drawer-shortcut{min-height:66px;padding:10px}
  .portal-native-drawer-shortcut strong{font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .portal-native-drawer,.portal-drawer-backdrop,.portal-native-drawer-shortcut{transition:none!important}
}
