/* Local v348 clarity proposal. Navigation/publishing presentation only.
 * Preserve all routes, roles, handlers, form fields and media sizing.
 */
body[data-page="create"] #composer-submit { min-height: 48px; }
@media (max-width: 760px), (max-width: 1024px) and (max-height: 600px) and (pointer: coarse) {
  html.pwa-standalone { --pwa-dock-height: calc(76px + var(--pwa-safe-bottom, env(safe-area-inset-bottom, 0px))); }
  html body > nav.bottom-nav.mobile-bottom-nav > a {
    box-sizing: border-box;
    height: 64px !important;
    min-height: 64px !important;
    padding: 2px !important;
    gap: 2px !important;
  }
  html body > nav.bottom-nav.mobile-bottom-nav > a > b {
    margin: 0 !important;
    max-width: 100%;
    font-size: 11px !important;
    line-height: 1.15 !important;
    letter-spacing: 0;
    white-space: normal !important;
    overflow: visible;
    text-overflow: clip;
    text-align: center;
  }
  html body > nav.bottom-nav.mobile-bottom-nav > a.create-fab > span {
    width: 36px !important;
    height: 32px !important;
    min-height: 32px;
    flex-shrink: 0;
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1 !important;
  }
  /* The empty preview previously occupied 360px and used white on pale gray.
   * Do not shrink selected photos/videos, text cards, or colored previews. */
  body[data-page="create"] #creator-preview:not(.is-colored-preview):not(:has(img, video, canvas, [contenteditable])) {
    min-height: 64px;
    padding: 12px;
    color: var(--text-primary);
    touch-action: auto;
  }
}

/* Descriptive link text stays available to assistive technology. */
.discover-page .explore-grid > .explore-tile > .discover-accessible-label {
 position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; pointer-events:none;
}

/* Post audio credit: theme text, not immersive white-on-media text. */
body[data-page="post"] .shared-post .shared-sound {
    color: var(--text-primary);
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    body[data-page="post"] .shared-post .shared-sound span {
        animation: none;
    }
}
