/* The browser and app canvas follow IWA's existing blue-green identity.
   The content surface includes breadcrumbs so every route stays readable. */
@media screen {
  html:root {
    --iwa-browser-chrome: #153541;
    background-color: var(--iwa-browser-chrome);
    color-scheme: light;
  }
  html body { background-color: var(--iwa-browser-chrome); }
  html .site-header.portal-header { background-color: var(--paper); }
  .iwa-page-surface {
    background-color: var(--paper);
    display: flow-root;
  }
  .iwa-page-surface>main { display: flow-root; }
  .iwa-page-surface:only-child { min-height: 100svh; }

  /* Opaque, non-interactive edges also supply Safari's viewport sampling.
     They stay below the mobile dock and modal dialogs while scrolling. */
  body::before, body::after {
    content: "";
    position: fixed;
    inset-inline: 0;
    z-index: 31;
    pointer-events: none;
    background-color: var(--iwa-browser-chrome);
  }
  body::before {
    top: 0;
    height: max(6px, env(safe-area-inset-top, 0px));
  }
  body::after {
    bottom: 0;
    height: max(6px, env(safe-area-inset-bottom, 0px));
  }
}
