/* Gateway state presentation lives in shell.css; this file keeps the outage notice policy. */

/* The header owns transport notices. Resource errors remain visible when the
   gateway is connected; action/transaction feedback is never hidden here. */
html[data-gateway-state]:not([data-gateway-state="connected"]) :is(
  [data-gateway-notice="true"],
  #trading-connection, #trading-book-status,
  #sn-list-status,
  #ad-status, #ad-data-connection, #ad-data-error, #ad-data-issue-count,
  #ad-overview-errors, #ad-staking-error, #ad-treasury-error, #ad-insurance-error,
  #ad-proposals-error, #ad-proposal-error, #ad-index-progress,
  #pf-status[data-state="stale"],
  #sc-state, #sc-retry
) { display: none !important; }

/* A statistic whose value is a hidden connection notice shows the unknown placeholder instead. */
html[data-gateway-state]:not([data-gateway-state="connected"]) .moc-stat-value:has(> [data-gateway-notice="true"])::before { content: "—"; }
