/* Centrl v1.0.31 - PDA notes rendering + button visibility + theme margins
   Only PDA; no Central Post/Point changes. */

/* WordPress block themes may preserve block gap/padding after header is hidden. */
@media (max-width: 780px){
 body:has(#centrl-pda) .wp-site-blocks{margin-block-start:0!important;padding-block-start:0!important;}
 body:has(#centrl-pda) .wp-site-blocks > main,
 body:has(#centrl-pda) main.wp-block-group,
 body:has(#centrl-pda) main.wp-block-post-content,
 body:has(#centrl-pda) .wp-block-post-content,
 body:has(#centrl-pda) .entry-content,
 body:has(#centrl-pda) .wp-site-blocks > .wp-block-group:has(#centrl-pda),
 body:has(#centrl-pda) .wp-block-group:has(> #centrl-pda){
   margin-block-start:0!important;padding-block-start:0!important;
   scroll-margin-top:0!important;
 }
 body:has(#centrl-pda) #centrl-pda,
 body:has(#centrl-pda) #centrl-pda .centrl-pda-shell{margin-top:0!important;padding-top:0!important;}
}

/* Strong, readable action irrespective of the selected theme. */
#centrl-pda .pda-note-detail .pda-note-buttons{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:9px!important;
 margin-top:15px!important;
 align-items:stretch!important;
}
#centrl-pda .pda-note-detail .pda-note-buttons > .centrl-btn{
 min-width:0!important;min-height:48px!important;
 font-size:12px!important;
 line-height:1.35!important;
 white-space:normal!important;
 text-align:center!important;
 padding:10px 9px!important;
}
#centrl-pda #pda-note-share.centrl-btn.pda-note-share-action{
 grid-column:1/-1!important;grid-row:1!important;
 width:100%!important;min-height:54px!important;
 display:inline-flex!important;justify-content:center!important;align-items:center!important;
 background:linear-gradient(110deg,#0075e9 0%,#1153d7 56%,#5634ce 100%)!important;
 border:1px solid #59cbff!important;
 border-radius:9px!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
 opacity:1!important;font-weight:850!important;
 box-shadow:0 0 0 1px rgba(70,176,255,.18),0 5px 12px rgba(0,27,78,.33)!important;
 text-shadow:none!important;
}
#centrl-pda #pda-note-share .pda-note-share-symbol{font-size:22px;line-height:1;color:#fff;flex-shrink:0}
#centrl-pda #pda-note-share:disabled{
 opacity:.82!important;cursor:wait!important;
 background:#245087!important;border-color:#48658d!important;
}
#centrl-pda [data-pda-theme="light"] #pda-note-share{background:linear-gradient(110deg,#1269b1,#3556a9)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#centrl-pda [data-pda-theme="tactical-green"] #pda-note-share{background:linear-gradient(110deg,#285a3b,#316b4e)!important;border-color:#80c694!important}
#centrl-pda [data-pda-theme="tactical-black"] #pda-note-share{background:linear-gradient(110deg,#20445f,#1c567d)!important;border-color:#79b6d6!important}
#centrl-pda [data-pda-theme="tactical-neon"] #pda-note-share{background:linear-gradient(110deg,#086ba7,#135ae0 52%,#6e30c9)!important;border-color:#5ce2ff!important;box-shadow:0 0 0 1px rgba(66,172,255,.25),0 0 12px rgba(27,106,210,.22)!important}
#centrl-pda .pda-note-detail .pda-note-buttons #pda-note-edit{grid-column:1;grid-row:2}
#centrl-pda .pda-note-detail .pda-note-buttons #pda-note-delete{grid-column:2;grid-row:2}

/* Known Android Chromium compositing issue: images in nested clipped + blurred GPU layers.
   In notes mode replace the expensive GPU-chrome by static CSS borders, without
   changing functionality or the cyberpunk colours elsewhere. */
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-device,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-command-frame,
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-header,
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-content,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-note-detail,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-note-media,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-note-media-grid{
 filter:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 transform:none!important;will-change:auto!important;
 isolation:auto!important;mix-blend-mode:normal!important;
}
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-command-frame,
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-header,
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-content{
 clip-path:none!important;-webkit-clip-path:none!important;
 border-radius:7px!important;
}
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-command-frame{
 background:linear-gradient(115deg,#23bbff,#2467ec 52%,#8448eb)!important;
 padding:2px!important;
 box-shadow:none!important;
}
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-content{
 overflow:visible!important;box-shadow:none!important;
}
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-command-frame::before,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-command-frame::after,
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-content::before,
#centrl-pda .centrl-pda-shell.pda-notes-view .centrl-pda-content::after,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-cyber-chrome,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-cyber-scan,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-cyber-core{display:none!important;}
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-note-media img,
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-note-thumbnail img{
 display:block!important;
 max-width:100%!important;max-height:240px!important;
 image-rendering:auto!important;
 filter:none!important;transform:none!important;
 border-radius:8px!important;
}
#centrl-pda .centrl-pda-shell.pda-notes-view .pda-note-media a{
 display:block;max-width:100%;min-width:0;overflow:hidden;border-radius:8px;
}
/* No CSS GPU animation when high-resolution camera photos are being displayed. */
#centrl-pda .centrl-pda-shell.pda-notes-view *,
#centrl-pda .centrl-pda-shell.pda-notes-view *::before,
#centrl-pda .centrl-pda-shell.pda-notes-view *::after{
 animation:none!important;
}
@media (max-width:420px){
  #centrl-pda .pda-note-detail .pda-note-buttons > .centrl-btn{font-size:11px!important;}
}
