/* C-arm Dock Plus · closable info blocks: layout only.
 * Each info block carries one <button class="ui-close" type="button" aria-label="Close">×</button> (hint, concept strip,
 * tablet peek, status pill / toasts, no-WebGL card, end card). This file only places the × in the block's top-right corner,
 * keeps a 48 px target and keeps text clear of it. Its look belongs to the button restyle: the fallback at the end uses
 * :where() (0 specificity), so any .ui-close rule overrides it.
 */

/* the pill sits in #under's flex column, so it needs a positioning context; the other blocks are already absolute / fixed */
#pill { position: relative; }
#pill .pc { display: contents; }   /* the glyph and text stay flex items of the pill */

/* the × */
#hint > .ui-close, #pill > .ui-close, #peek > .ui-close, #hpeek > .ui-close, #nogl > .ui-close, #endcard > .ui-close {
  position: absolute; top: 0; right: 0; z-index: 1; min-width: 48px; min-height: 48px; pointer-events: auto; }
#nogl > .ui-close, #endcard > .ui-close { top: 4px; right: 4px; }
.ui-close[hidden] { display: none !important; }

/* room for the ×, so it never covers text (#app: wins over the body.land variants in panels.css) */
#app #hint { min-height: 48px; padding-top: 13px; padding-bottom: 13px; padding-right: 52px; }
#app #pill.has-x { min-height: 48px; padding-right: 50px; }
#app #peek.peek { padding-right: 52px; }
#app #hpeek.hpeek { padding-right: 60px; }
#app #nogl.nogl-card { padding-right: 56px; }
#app #endcard.endcard { padding-right: 56px; }

/* fallback look, overridable by any .ui-close rule */
:where(.ui-close) { width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 12px; background: transparent; color: inherit;
  font: 400 1.5rem/1 'Inter', system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:where(.ui-close):hover { background: rgba(220, 230, 228, .08); }
:where(.ui-close):focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
