
/* MTsN DS46 • Neumorphism exact follow-up fixes V4
   Focus:
   1) all actionable buttons remain embossed
   2) footer/drawer/menu text keep readable contrast on light surfaces
   3) login email/password fields stay normal when browser/password manager autofill is used
*/
:root{
  --nm-fix-bg:#e7ebf0;
  --nm-fix-ink:#2f3943;
  --nm-fix-muted:#6f7a86;
  --nm-fix-blue:#006cff;
  --nm-fix-raise:8px 8px 16px rgba(163,177,198,.65),-8px -8px 16px rgba(255,255,255,.95);
  --nm-fix-raise-soft:6px 6px 13px rgba(163,177,198,.42),-6px -6px 13px rgba(255,255,255,.95);
  --nm-fix-recess:inset 6px 6px 12px rgba(163,177,198,.55),inset -6px -6px 12px rgba(255,255,255,.95);
  --nm-fix-recess-small:inset 3px 3px 7px rgba(163,177,198,.55),inset -3px -3px 7px rgba(255,255,255,.95);
}

/* 1) Keep all buttons/interactive pills raised by default across public/admin/footer/navigation. */
body :is(
  button:not(.nm-upload-dropzone),
  .button,.btn,.icon-button,.c-link,.page-button,.action-button,.portal-button,.karya-primary,
  .mobile-bottom-nav__item,.drawer-close-button,.drawer-footer a,.drawer-panel a.button,
  .footer-links a,.social-links a,.official-social-button,.back-to-top,.whatsapp-float,
  .header-actions>a,.header-actions>button,.portal-header-actions>a,.portal-header-actions>button,
  .admin-nav a,.admin-nav summary,.portal-nav a,.portal-nav summary,.site-nav a,.tv-nav a,
  .filter-tabs>a,.pagination>a,.pagination button,.account36-google,.auth-help>a
){
  background:var(--nm-fix-bg)!important;
  color:var(--nm-fix-blue)!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:var(--nm-fix-raise)!important;
}
body :is(
  button:not(.nm-upload-dropzone),.button,.btn,.icon-button,.mobile-bottom-nav__item,.drawer-close-button,
  .footer-links a,.social-links a,.official-social-button,.back-to-top,.whatsapp-float,
  .admin-nav a,.admin-nav summary,.portal-nav a,.portal-nav summary,.site-nav a,.tv-nav a,
  .filter-tabs>a,.pagination>a,.pagination button,.account36-google,.auth-help>a
):hover{box-shadow:10px 10px 20px rgba(163,177,198,.62),-10px -10px 20px rgba(255,255,255,.98)!important;}
body :is(
  button,.button,.btn,.icon-button,.mobile-bottom-nav__item,.drawer-close-button,
  .footer-links a,.social-links a,.official-social-button,.back-to-top,.whatsapp-float,
  .admin-nav a,.admin-nav summary,.portal-nav a,.portal-nav summary,.site-nav a,.tv-nav a,
  .filter-tabs>a,.pagination>a,.pagination button,.account36-google
):is(:active,.is-active,[aria-current="page"],[aria-selected="true"]){
  background:var(--nm-fix-bg)!important;box-shadow:var(--nm-fix-recess)!important;color:var(--nm-fix-blue)!important;
}

/* 2) Footer, drawer and light-menu text visibility. */
body :is(.site-footer,.portal-footer,.c-footer,.drawer-panel,.mobile-drawer,.footer-grid,.footer-brand,.drawer-footer,.official-social-shell,.official-social-grid){
  background:var(--nm-fix-bg)!important;
  color:var(--nm-fix-ink)!important;
}
body :is(.site-footer,.portal-footer,.c-footer,.drawer-panel,.mobile-drawer) :is(
  h1,h2,h3,h4,strong,b,p,small,span,li,a,label,summary,div
){
  color:var(--nm-fix-ink)!important;
  opacity:1!important;
  text-shadow:none!important;
}
body :is(.site-footer,.portal-footer,.c-footer,.drawer-panel,.mobile-drawer) :is(.footer-links a,.social-links a,.drawer-footer a,.drawer-panel nav a,.drawer-panel li a,.drawer-panel summary,.drawer-close-button,.mobile-bottom-nav__item){
  color:var(--nm-fix-blue)!important;
}
body .site-footer :is(.footer-meta,.footer-brand p,.footer-links li,.footer-links a,.social-links a,small,span,p,h2,strong){color:var(--nm-fix-ink)!important;}
body .drawer-panel :is(.ds20-menu-status,.menu-service-state,.drawer-header h2,.drawer-header p,.drawer-panel p,.drawer-panel li,.drawer-panel span,.drawer-panel small){color:var(--nm-fix-ink)!important;}
body .drawer-panel .ds35-menu-input{background:var(--nm-fix-bg)!important;border-radius:18px!important;box-shadow:var(--nm-fix-recess)!important;}
body .drawer-panel .ds35-menu-input input{background:transparent!important;color:var(--nm-fix-ink)!important;box-shadow:none!important;border:0!important;}
body .mobile-bottom-nav,
body .mobile-bottom-nav__item{
  background:var(--nm-fix-bg)!important;
  color:var(--nm-fix-blue)!important;
}
body .mobile-bottom-nav__item small,
body .mobile-bottom-nav__item span,
body .mobile-bottom-nav__item svg{color:inherit!important;fill:currentColor!important;stroke:currentColor!important;opacity:1!important;}

/* 3) Login email/password autofill fix and normalize filled fields. */
html body.auth-body .auth-login-form .input-icon{
  position:relative!important;
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:74px!important;
  padding:10px 16px!important;
  border-radius:22px!important;
  background:var(--nm-fix-bg)!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:var(--nm-fix-recess)!important;
  overflow:hidden!important;
}
html body.auth-body .auth-login-form .input-icon::before,
html body.auth-body .auth-login-form .input-icon::after{content:none!important;display:none!important;}
html body.auth-body .auth-login-form .input-icon > svg{position:static!important;flex:0 0 auto!important;color:#647386!important;z-index:2!important;}
html body.auth-body .auth-login-form .input-icon > button[data-password-toggle]{position:static!important;align-self:center!important;justify-self:end!important;min-width:46px!important;height:46px!important;padding:0!important;z-index:2!important;}
html body.auth-body .auth-login-form .input-icon > input{
  position:relative!important;z-index:1!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:50px!important;min-height:50px!important;line-height:1.2!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;outline:none!important;background:transparent!important;box-shadow:none!important;
  color:var(--nm-fix-ink)!important;-webkit-text-fill-color:var(--nm-fix-ink)!important;appearance:none!important;-webkit-appearance:none!important;
}
html body.auth-body .auth-login-form .input-icon > input::placeholder{color:#8b95a3!important;opacity:1!important;}
html body.auth-body .auth-login-form .input-icon:focus-within{box-shadow:var(--nm-fix-recess-small),0 0 0 2px rgba(0,108,255,.14)!important;}
html body.auth-body .auth-login-form .input-icon > input:-webkit-autofill,
html body.auth-body .auth-login-form .input-icon > input:-webkit-autofill:hover,
html body.auth-body .auth-login-form .input-icon > input:-webkit-autofill:focus,
html body.auth-body .auth-login-form .input-icon > input:-webkit-autofill:active{
  -webkit-text-fill-color:var(--nm-fix-ink)!important;
  caret-color:var(--nm-fix-ink)!important;
  border:0!important;
  box-shadow:0 0 0 1000px var(--nm-fix-bg) inset!important;
  -webkit-box-shadow:0 0 0 1000px var(--nm-fix-bg) inset!important;
  background-clip:content-box!important;
  transition:background-color 999999s ease-in-out 0s!important;
}
html body.auth-body .auth-login-form .input-icon > input:-internal-autofill-selected{
  appearance:menulist-button!important;
  background-image:none!important;
  background-color:transparent!important;
  color:var(--nm-fix-ink)!important;
}
/* keep captcha/authenticator wells already good */
html body.auth-body .auth-login-form .auth-captcha-row input,
html body.auth-body .two-factor-card #two-factor-code,
html body.auth-body .nm-otp-cell{color:var(--nm-fix-ink)!important;-webkit-text-fill-color:var(--nm-fix-ink)!important;}

/* General light cards: ensure inner descriptive texts are readable. */
body :is(.app-card,.quick-card,.service-card,.facility-card,.dashboard-card,.content-card,.portal-card,.official-social-button,.shortcut-grid>a,.app-grid-card,.menu-card,.contact-card,.card) :is(p,small,span,li){
  color:var(--nm-fix-ink)!important;
  opacity:.9!important;
}


/* ===== V8: true raised surfaces for Home / Layanan / Admin dashboard =====
   Supports the existing DS46 layout and links; no content or behaviour changed. */
:root {
 --nm-v8-surface:#e7ebf0;
 --nm-v8-ink:#293b43;
 --nm-v8-muted:#526774;
 --nm-v8-raised:8px 8px 16px rgba(163,177,198,.60), -8px -8px 16px rgba(255,255,255,.96);
 --nm-v8-raised-hover:10px 10px 20px rgba(163,177,198,.66), -10px -10px 20px rgba(255,255,255,.98);
 --nm-v8-pressed:inset 5px 5px 11px rgba(163,177,198,.48),inset -5px -5px 11px rgba(255,255,255,.98);
}
/* Home: quick-action cards and latest-information cards become raised, while
   maintaining the existing 2-column quick grid / article image geometry. */
body.public-site-body.page-home .ds18-task-grid > a,
body.public-site-body.page-home .ds35-news-grid > a.ds35-news-card,
body.public-site-body.page-home .ds35-identity,
body.public-site-body.page-home .ds35-section-head > a,
body.public-site-body.page-home .ds35-hero-actions > a.ds35-action {
 background:var(--nm-v8-surface)!important;
 border:1px solid rgba(255,255,255,.83)!important;
 border-radius:18px!important;
 box-shadow:var(--nm-v8-raised)!important;
 color:var(--nm-v8-ink)!important;
 text-decoration:none!important;
}
body.public-site-body.page-home .ds18-task-grid > a,
body.public-site-body.page-home .ds35-news-card {
 transition:box-shadow .20s ease,transform .20s ease,background-color .20s ease!important;
}
body.public-site-body.page-home .ds18-task-grid > a:is(:hover,:focus-visible),
body.public-site-body.page-home .ds35-news-card:is(:hover,:focus-visible){
 background:var(--nm-v8-surface)!important;
 box-shadow:var(--nm-v8-raised-hover)!important;
}
body.public-site-body.page-home .ds18-task-grid > a:active,
body.public-site-body.page-home .ds35-news-card:active,
body.public-site-body.page-home .ds35-section-head > a:active{
 box-shadow:var(--nm-v8-pressed)!important;transform:translateY(1px);
}
body.public-site-body.page-home .ds18-task-grid > a > svg:first-child {
 border-radius:13px!important;
 background:linear-gradient(150deg,#e5f5ef,#cfe9df)!important;
 box-shadow:4px 4px 9px rgba(163,177,198,.40),-4px -4px 9px rgba(255,255,255,.92)!important;
 color:#0f806c!important;
}
body.public-site-body.page-home .ds18-task-grid > a > span,
body.public-site-body.page-home .ds18-task-grid > a strong{min-width:0; color:var(--nm-v8-ink)!important;}
body.public-site-body.page-home .ds35-news-grid > a.ds35-news-card {overflow:hidden;}
body.public-site-body.page-home .ds35-news-copy h3{color:#173d35!important;overflow-wrap:break-word;}
body.public-site-body.page-home .ds35-news-meta,
body.public-site-body.page-home .ds35-news-meta time{color:var(--nm-v8-muted)!important;}
body.public-site-body.page-home .ds35-news-read{color:#126758!important;}
body.public-site-body.page-home .ds35-identity{padding-block:12px;border-radius:18px!important;}
body.public-site-body.page-home .ds35-identity strong{color:#173d35!important;}
body.public-site-body.page-home .ds35-identity span{color:var(--nm-v8-muted)!important;}
body.public-site-body.page-home .ds35-section-head > a {padding:10px 13px;min-height:42px;}
/* Keep text contrast on the dark photographic home hero if its actions are raised. */
body.public-site-body.page-home .ds35-hero-actions > a.ds35-action {padding:10px 15px;}

/* Layanan: make every service card a true clickable Neumorphism tile. */
body.public-site-body .service-hub-grid > a.service-hub-card {
 display:grid;align-items:center;
 background:var(--nm-v8-surface)!important;
 border:1px solid rgba(255,255,255,.82)!important;
 border-radius:22px!important;
 box-shadow:var(--nm-v8-raised)!important;
 text-decoration:none!important;
 color:var(--nm-v8-ink)!important;
 min-width:0;
 transition:box-shadow .20s ease,transform .20s ease!important;
}
body.public-site-body .service-hub-grid > a.service-hub-card:is(:hover,:focus-visible){
 box-shadow:var(--nm-v8-raised-hover)!important;
}
body.public-site-body .service-hub-grid > a.service-hub-card:active {box-shadow:var(--nm-v8-pressed)!important; transform:translateY(1px)!important;}
body.public-site-body .service-hub-card > span:first-child {
 display:grid;place-items:center;
 background:linear-gradient(150deg,#e0f5ee,#cbe8dd)!important;
 border:1px solid rgba(255,255,255,.78)!important;
 border-radius:14px!important;
 box-shadow:5px 5px 10px rgba(163,177,198,.38),-5px -5px 10px rgba(255,255,255,.94)!important;
 color:#117b69!important;
}
body.public-site-body .service-hub-card > div{min-width:0;}
body.public-site-body .service-hub-card h2{color:var(--nm-v8-ink)!important;line-height:1.24!important;overflow-wrap:anywhere;}
body.public-site-body .service-hub-card p{color:var(--nm-v8-muted)!important;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.4;}
body.public-site-body .service-hub-card > svg:last-child{color:#27635b!important;max-width:100%;}

/* Administrator dashboard: raised action tiles and distinct raised icons. */
body.admin-body .atlas-action-grid > a.atlas-action-tile,
body.admin-body .admin-portal-grid > a.admin-portal-card,
body.admin-body .admin-priority-board{
 background:var(--nm-v8-surface)!important;
 border:1px solid rgba(255,255,255,.84)!important;
 border-radius:22px!important;
 box-shadow:var(--nm-v8-raised)!important;
 color:var(--nm-v8-ink)!important;
}
body.admin-body .atlas-action-grid > a.atlas-action-tile,
body.admin-body .admin-portal-grid > a.admin-portal-card{
 text-decoration:none!important;min-width:0;
 transition:box-shadow .20s ease,transform .20s ease!important;
}
body.admin-body .atlas-action-grid > a.atlas-action-tile:is(:hover,:focus-visible),
body.admin-body .admin-portal-grid > a.admin-portal-card:is(:hover,:focus-visible){
 background:var(--nm-v8-surface)!important;box-shadow:var(--nm-v8-raised-hover)!important;
}
body.admin-body .atlas-action-grid > a.atlas-action-tile:active,
body.admin-body .admin-portal-grid > a.admin-portal-card:active{
 box-shadow:var(--nm-v8-pressed)!important;transform:translateY(1px)!important;
}
body.admin-body .atlas-action-tile > span,
body.admin-body .admin-portal-card > span:first-child{
 background:linear-gradient(145deg,#e1f4ed,#cce8df)!important;
 border:1px solid rgba(255,255,255,.86)!important;
 border-radius:13px!important;
 box-shadow:4px 4px 9px rgba(163,177,198,.42),-4px -4px 9px rgba(255,255,255,.92)!important;
 color:#0d7b64!important;
}
body.admin-body .atlas-action-tile > strong,
body.admin-body .admin-portal-card strong{color:var(--nm-v8-ink)!important;}
body.admin-body .atlas-action-tile > small,
body.admin-body .admin-portal-card small {color:var(--nm-v8-muted)!important;line-height:1.48;}
body.admin-body .atlas-page-heading h2{color:#1c3933!important;}
body.admin-body .atlas-page-heading p{color:var(--nm-v8-muted)!important;}
body.admin-body .admin-priority-board :is(header h2,article h3){color:var(--nm-v8-ink)!important;}
body.admin-body .admin-priority-board :is(p,small){color:var(--nm-v8-muted)!important;}

/* Accessible focus ring, preserve application navigation and normal keyboard flow. */
body :is(.ds18-task-grid>a,.ds35-news-card,.ds35-section-head>a,.service-hub-card,.atlas-action-tile,.admin-portal-card):focus-visible{
 outline:3px solid #287ad2!important;outline-offset:4px!important;
}
/* CSS only: no change to anchors, targets, source images, or component scripts. */
@media(max-width:600px){
 body.public-site-body.page-home .ds18-task-grid {gap:12px!important;}
 body.public-site-body.page-home .ds18-task-grid > a {padding:12px!important;min-height:65px!important;gap:9px!important;}
 body.public-site-body.page-home .ds18-task-grid strong{font-size:clamp(12px,3.4vw,14px)!important;}
 body.public-site-body.page-home .ds35-news-grid{gap:16px!important;}
 body.public-site-body.page-home .ds35-news-copy{min-width:0;}
 body.public-site-body .service-hub-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
 body.public-site-body .service-hub-card{padding:14px!important;min-height:92px!important;}
 body.admin-body .atlas-action-grid{gap:16px!important;}
 body.admin-body .atlas-action-tile{padding:17px!important;gap:12px!important;}
}
@media(prefers-reduced-motion:reduce){
 body.public-site-body .ds18-task-grid>a,
 body.public-site-body .ds35-news-card,
 body.public-site-body .service-hub-card,
 body.admin-body .atlas-action-tile,
 body.admin-body .admin-portal-card {transition:none!important;transform:none!important;}
}
