/* Approved mobile Scripture Connections: preserve reading order and existing theme colors. */
@layer ar-explorer-connections-phone {
  html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #panel-connections #connection-detail .cx-reading-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: calc(12px * var(--ar-drawer-fit, 2.5)) !important;
    align-items: start !important;
  }

  html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #panel-connections #connection-detail .cx-reading-grid > .cx-passage {
    min-inline-size: 0;
  }

  html[data-ar-explorer-handheld][data-ar-explorer-wide-fit] #panel-connections #connection-detail .cx-reading-grid > .cx-passage > header .ref-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-block-size: calc(45px * var(--ar-drawer-fit, 2.5)) !important;
    max-inline-size: 100%;
    padding-inline: calc(11px * var(--ar-drawer-fit, 2.5)) !important;
    font-size: calc(14px * var(--ar-drawer-fit, 2.5)) !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }
}
